diff options
author | Damien George <damien.p.george@gmail.com> | 2017-08-29 17:03:28 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-08-29 17:03:28 +1000 |
commit | 8388ec4e35142539fb09d2a9ef5981b5732a349f (patch) | |
tree | 7ae59d98af7d0238ef56fec5fea92d5e4361b506 /stmhal/modmachine.c | |
parent | fe6f0354f6c1392dbdcfc7d9331c6a5ef3b3773a (diff) |
stmhal: Update to new STM Cube HAL library.
This upgrades the HAL to the versions:
- F4 V1.16.0
- F7 V1.7.0
- L4 V1.8.1
The main changes were in the SD card driver. The vendor changed the SD
read/write functions to accept block number intead of byte address, so
there is no longer any need for a custom patch for this in stm32lib.
The CardType values also changed, so pyb.SDCard().info() will return
different values for the 3rd element of the tuple, but this function was
never documented.
Diffstat (limited to 'stmhal/modmachine.c')
-rw-r--r-- | stmhal/modmachine.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c index 81f82e191..2ff63617b 100644 --- a/stmhal/modmachine.c +++ b/stmhal/modmachine.c @@ -54,11 +54,7 @@ #include "wdt.h" #include "genhdr/pllfreqtable.h" -#if defined(MCU_SERIES_F4) -// the HAL does not define these constants -#define RCC_CSR_IWDGRSTF (0x20000000) -#define RCC_CSR_PINRSTF (0x04000000) -#elif defined(MCU_SERIES_L4) +#if defined(MCU_SERIES_L4) // L4 does not have a POR, so use BOR instead #define RCC_CSR_PORRSTF RCC_CSR_BORRSTF #endif |