Skip to content

Commit a4e3830

Browse files
iabdalkaderdpgeorge
authored andcommitted
stm32/boards/ARDUINO_PORTENTA_H7: Update board config files.
Changes are: - Add pre/post stop mode entry macros. - Make SE05X pin accessible. - Remove duplicate HAL macros. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
1 parent fc006a0 commit a4e3830

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void PORTENTA_board_low_power(int mode);
4949
#define MICROPY_BOARD_ENTER_STANDBY PORTENTA_board_low_power(2);
5050

5151
void PORTENTA_board_osc_enable(int enable);
52-
#define MICROPY_BOARD_OSC_ENABLE PORTENTA_board_osc_enable(1);
53-
#define MICROPY_BOARD_OSC_DISABLE PORTENTA_board_osc_enable(0);
52+
#define MICROPY_BOARD_PRE_STOP PORTENTA_board_osc_enable(0);
53+
#define MICROPY_BOARD_POST_STOP PORTENTA_board_osc_enable(1);
5454

5555
// PLL1 400MHz/50MHz for SDMMC and FDCAN
5656
// USB and RNG are clocked from the HSI48

ports/stm32/boards/ARDUINO_PORTENTA_H7/pins.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@ I2C3_SCL,PH7
265265
-QSPI2_D1,PD12
266266
-QSPI2_D2,-PF7
267267
-QSPI2_D3,PD13
268-
-SE05X_EN,-PI12
268+
SE05X_EN,-PI12

ports/stm32/boards/ARDUINO_PORTENTA_H7/stm32h7xx_hal_conf.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#define HSE_STARTUP_TIMEOUT (5000)
1515
#define LSE_STARTUP_TIMEOUT (5000)
1616

17-
#define DATA_CACHE_ENABLE 1
18-
#define INSTRUCTION_CACHE_ENABLE 1
1917
#define DATA_CACHE_ENABLE 1
2018
#define INSTRUCTION_CACHE_ENABLE 1
2119
#define PREFETCH_ENABLE 1

0 commit comments

Comments
 (0)