upiwin/src/main.c

17 lines
242 B
C

#include <stdlib.h>
#include "gpio.h"
#include "log.h"
int main(int argc, char *argv[])
{
if (Gpio_setup() != 0)
return EXIT_FAILURE;
atexit(Gpio_cleanup);
Log(LINFO, "System ready.");
for (;;) {
Gpio_poll_buttons();
}
}