8000 stm32/mboot: Remove use of BSRRL/H for H7 MCUs due to stm32lib update. · guidebee/micropython@5a81d2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a81d2d

Browse files
committed
stm32/mboot: Remove use of BSRRL/H for H7 MCUs due to stm32lib update.
1 parent c8f19f1 commit 5a81d2d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ports/stm32/mboot/mphalport.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,8 @@
4848
#define mp_hal_pin_input(p) mp_hal_pin_config((p), MP_HAL_PIN_MODE_INPUT, MP_HAL_PIN_PULL_NONE, 0)
4949
#define mp_hal_pin_output(p) mp_hal_pin_config((p), MP_HAL_PIN_MODE_OUTPUT, MP_HAL_PIN_PULL_NONE, 0)
5050
#define mp_hal_pin_open_drain(p) mp_hal_pin_config((p), MP_HAL_PIN_MODE_OPEN_DRAIN, MP_HAL_PIN_PULL_NONE, 0)
51-
#if defined(STM32H7)
52-
#define mp_hal_pin_low(p) (((GPIO_TypeDef*)((p) & ~0xf))->BSRRH = 1 << ((p) & 0xf))
53-
#define mp_hal_pin_high(p) (((GPIO_TypeDef*)((p) & ~0xf))->BSRRL = 1 << ((p) & 0xf))
54-
#else
5551
#define mp_hal_pin_low(p) (((GPIO_TypeDef*)((p) & ~0xf))->BSRR = 0x10000 << ((p) & 0xf))
5652
#define mp_hal_pin_high(p) (((GPIO_TypeDef*)((p) & ~0xf))->BSRR = 1 << ((p) & 0xf))
57-
#endif
5853
#define mp_hal_pin_od_low(p) mp_hal_pin_low(p)
5954
#define mp_hal_pin_od_high(p) mp_hal_pin_high(p)
6055
#define mp_hal_pin_read(p) ((((GPIO_TypeDef*)((p) & ~0xf))->IDR >> ((p) & 0xf)) & 1)

0 commit comments

Comments
 (0)
0