upiwin/src/main.c

17 lines
242 B
C
Raw Normal View History

2019-11-29 02:05:30 -07:00
#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);
2019-11-29 02:18:02 -07:00
Log(LINFO, "System ready.");
2019-11-29 02:05:30 -07:00
for (;;) {
Gpio_poll_buttons();
}
}