Skip to content

Commit

Permalink
STM32 Use UID_BASE to get MAC address
Browse files Browse the repository at this point in the history
  • Loading branch information
pmantoine committed Oct 29, 2023
1 parent 9437945 commit 645c9f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DCCTimerSTM32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ void DCCTimer::clearPWM() {
}

void DCCTimer::getSimulatedMacAddress(byte mac[6]) {
volatile uint32_t *serno1 = (volatile uint32_t *)0x1FFF7A10;
volatile uint32_t *serno2 = (volatile uint32_t *)0x1FFF7A14;
// volatile uint32_t *serno3 = (volatile uint32_t *)0x1FFF7A18;
volatile uint32_t *serno1 = (volatile uint32_t *)UID_BASE;
volatile uint32_t *serno2 = (volatile uint32_t *)UID_BASE+4;
// volatile uint32_t *serno3 = (volatile uint32_t *)UID_BASE+8;

volatile uint32_t m1 = *serno1;
volatile uint32_t m2 = *serno2;
Expand Down

0 comments on commit 645c9f9

Please sign in to comment.