STM8_samples/SNIPPETS/usefull_macros.h
2019-01-05 19:59:37 +03:00

5 lines
140 B
C

// macro for using in port constructions like PORT(LED_PORT, ODR) = xx
#define CONCAT(a,b) a##_##b
#define PORT(a,b) CONCAT(a,b)