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
messages.h
#ifndef _messages #define _messages #include <stdint.h> #include <stdlib.h> #define MSG_INACTIVE 0 #define MSG_SENT 1 #define MSG_ACTIVE 2 #define MSG_INVALID 255 typedef struct { uint8_t *data; uint8_t size; } Messages; void msg_init(uint8_t size); void msg_destroy(); int8_t msg_send(uint8_t id); void msg_process(); uint8_t msg_get(uint8_t id); #endif
Report a bug