* Improve uart dma ring buffer. Sending dma still missing
* Add digio module for controlling LEDs, Loudspeaker, and the Digital IOs * General code improvements
This commit is contained in:
14
stm-firmware/include/helper-macros/helper-macros.h
Normal file
14
stm-firmware/include/helper-macros/helper-macros.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __HELPER_MACROS_H__
|
||||
#define __HELPER_MACROS_H__
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define xstr(x) str(x)
|
||||
#define str(x) #x
|
||||
|
||||
#define CONCATX(x,y) CONCAT(x,y)
|
||||
#define CONCAT(x,y) x##y
|
||||
|
||||
#define COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))
|
||||
|
||||
#endif /* __HELPER_MACROS_H__ */
|
Reference in New Issue
Block a user