journey of self discovery

This commit is contained in:
rusefillc 2021-01-14 23:34:10 -05:00
parent ea816c3536
commit e3e517f9a2
1 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,13 @@ static void sayHello(void) {
#if defined(STM32F4) || defined(STM32F7)
uint32_t *uid = ((uint32_t *)UID_BASE);
scheduleMsg(&logger, "UID=%x %x %x", uid[0], uid[1], uid[2]);
#define TM_ID_GetFlashSize() (*(__IO uint16_t *) (FLASHSIZE_BASE))
#define MCU_REVISION_MASK 0xfff
int mcuRevision = DBGMCU->IDCODE & MCU_REVISION_MASK;
scheduleMsg(&logger, "rev=%x size=%d", mcuRevision, TM_ID_GetFlashSize());
#endif