Files

copied
Last update 8 years 4 months
Files
tests
.gitignore
.travis.yml
Makefile
README.md
button_fsm.c
button_fsm.h
hall_fsm.c
hall_fsm.h
light-control.brd
light-control.sch
main.c
messages.c
messages.h
port.c
port.h
room_fsm.c
room_fsm.h
timers.c
timers.h
hall_fsm.h
#include "port.h" #define STATE_HALL_DARK 0 #define STATE_HALL_KITCHEN_LIGHTS 1 #define STATE_HALL_LIGHTS 2 typedef struct { uint8_t msg_id_hall; uint8_t msg_id_kitchen; uint8_t msg_id_off; Port *port_kitchen; Port *port_hall; } Hall; uint8_t hall_fsm(uint8_t state, Hall *hall);
Report a bug