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);
log(LINFO, "System ready.");
for (;;) {
Gpio_poll_buttons();
}
}