DBGMCU->IDCODE
This commit is contained in:
parent
c0b0c371d4
commit
ea816c3536
|
@ -18,7 +18,10 @@ static uint8_t bootloaderVirtualPageBuffer[BOOTLOADER_SIZE];
|
||||||
|
|
||||||
// needed by DFU protocol (DFU_DEVICE_ID_CMD)
|
// needed by DFU protocol (DFU_DEVICE_ID_CMD)
|
||||||
static uint32_t getMcuRevision() {
|
static uint32_t getMcuRevision() {
|
||||||
return DBGMCU->IDCODE & MCU_REVISION_MASK; // =0x413 for F407, =0x434 for F469.
|
// =0x413 for F407
|
||||||
|
// =0x419 for F42xxx and F43xxx
|
||||||
|
// =0x434 for F469
|
||||||
|
return DBGMCU->IDCODE & MCU_REVISION_MASK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool getByte(uint8_t *b) {
|
static bool getByte(uint8_t *b) {
|
||||||
|
|
Loading…
Reference in New Issue