/* this implements d0034_efm32tg_reference_manual.pdf's 7.3.4 "Device Revision" * section */ #ifndef LIBOPENCM3_EFM32_TINYGECKO_DEVICEREVISION_H #define LIBOPENCM3_EFM32_TINYGECKO_DEVICEREVISION_H #include #define DEVICEREVISION_PID2 MMIO32(0xE00FFFE8) #define DEVICEREVISION_PID3 MMIO32(0xE00FFFEC) /* devicerevision_revision_get has a comment that would make these definitions * obsolete; i'm not sure how far it is reasonable to parameterize everythin * g*/ #define DEVICEREVISION_REVISION_LENGTH 4 #define DEVICEREVISION_REVISION_SHIFT 4 #define DEVICEREVISION_REVISION_MASK (~(~0<