Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.5.1] Fix hard-coded TARGET_IO_PORT* defines. #13605

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/main/target/STM32H730/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down