Introduce CPP macros for AVR IN/OUT registers

This commit is contained in:
2020-11-23 18:51:44 +01:00
parent 1e9512925d
commit 8a13a13a7c
7 changed files with 41 additions and 38 deletions

View File

@@ -6,4 +6,12 @@
#define __PROJ_DATE__ "2020"
#define __PROJ_REV__ "rev:1.0"
#define R_PORT(P) __R_PORT(P)
#define R_DDR(P) __R_DDR(P)
#define R_PIN(P) __R_PIN(P)
#define __R_PORT(P) (PORT ## P)
#define __R_DDR(P) (DDR ## P)
#define __R_PIN(P) (PIN ## P)
#endif