1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 03:20:00 +03:00

Fix stm32h730 hardcoded target IO (#13604)

Fix hard-coded TARGET_IO_PORT* defines.

This should be able to be overridden by targets.  e.g. ones that  use
octospi IO lines 4-7 instead of 0-3.
This commit is contained in:
Dominic Clifton 2024-04-29 16:56:35 +02:00 committed by GitHub
parent 59c93bad6e
commit a000913ed4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,14 +87,30 @@
// Disable OCTOSPI pins PB2/CLK, PB6/NCS, PD11/IO0, PD12/IO1, PD13/IO3, PE2/IO2
// PE7/IO4, PE8/IO5, PE9/IO6, PE10/IO7
#if !defined(TARGET_IO_PORTA)
#define TARGET_IO_PORTA 0xffff
#endif
#if !defined(TARGET_IO_PORTB)
#define TARGET_IO_PORTB (0xffff & ~(BIT(2)|BIT(6)))
#endif
#if !defined(TARGET_IO_PORTC)
#define TARGET_IO_PORTC 0xffff
#endif
#if !defined(TARGET_IO_PORTD)
#define TARGET_IO_PORTD (0xffff & ~(BIT(11)|BIT(12)|BIT(13)))
#endif
#if !defined(TARGET_IO_PORTE)
#define TARGET_IO_PORTE (0xffff & ~(BIT(2)|BIT(7)|BIT(8)|BIT(9)|BIT(10)))
#endif
#if !defined(TARGET_IO_PORTF)
#define TARGET_IO_PORTF 0xffff
#endif
#if !defined(TARGET_IO_PORTG)
#define TARGET_IO_PORTG 0xffff
#endif
#if !defined(TARGET_IO_PORTH)
#define TARGET_IO_PORTH 0xffff
#endif
#define USE_BEEPER