#include <string.h>
#if ! (BSP430_CONSOLE - 0)
#error Console is not configured correctly
#endif
#if ! (BSP430_UPTIME - 0)
#error Uptime is not configured correctly
#endif
#if ! (BSP430_TIMER_CCACLK - 0)
#error Application requires CCACLK support
#endif
#ifndef APP_HH10D_PORT_PERIPH_HANDLE
#error No HH10D port specified
#endif
#ifndef APP_HH10D_INTERVAL_S
#define APP_HH10D_INTERVAL_S 2
#endif
void main ()
{
unsigned long uptime_Hz;
int rc;
cprintf(
"\nhh10d " __DATE__
" " __TIME__
"\n");
if (NULL == hh10d_port) {
cprintf(
"\nERROR: No port HAL; did you enable configBSP430_HAL_%s?\n",
xBSP430portName(APP_HH10D_PORT_PERIPH_HANDLE) ?:
"whatever");
return;
}
memset(&hh10d, 0, sizeof(hh10d));
cprintf(
"HH10D I2C on %s at %p, bus rate %lu Hz, address 0x%02x\n",
APP_HH10D_I2C_ADDRESS);
#if BSP430_PLATFORM_PERIPHERAL_HELP
#endif
cprintf(
"Monitoring HH10D on %s.%u using timer %s\n",
cprintf(
"Uptime CC block %s.%u at %lu Hz sample duration %u ticks for interval %us\n",
APP_HH10D_UPTIME_CC_INDEX, uptime_Hz,
0, 0);
if (! i2c) {
return;
}
if (0 != rc) {
cprintf(
"ERR: getCalibration returned %d\n", rc);
return;
}
next_ni);
while (1) {
unsigned long now_utt;
unsigned int lpc;
int hum_ppth;
do {
} while (0);
cprintf(
"%s: Count %u ; humidity %u ppth\n",
}
}