feat: H7 support (#5738)

Co-authored-by: Richard Li <richard.li@ces.hk>
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
Malte Langermann
2025-01-18 10:08:13 +01:00
committed by GitHub
co-authored by Richard Li philmoz raphaelcoeffic
parent 5a15ffb017
commit 3d25c2a0f8
458 changed files with 441554 additions and 2410 deletions
+5 -4
View File
@@ -94,7 +94,6 @@ uint8_t heartbeat;
safetych_t safetyCh[MAX_OUTPUT_CHANNELS];
#endif
// __DMA for the MSC_BOT_Data member
union ReusableBuffer reusableBuffer __DMA;
#if defined(DEBUG_LATENCY)
@@ -143,6 +142,8 @@ void checkValidMCU(void)
#define TARGET_IDCODE 0x463
#elif defined(STM32H750xx) || defined(STM32H747xx)
#define TARGET_IDCODE 0x450
#elif defined(STM32H7RS)
#define TARGET_IDCODE 0x485
#else
// Ensure new radio get registered :)
#warning "Target MCU code undefined"
@@ -208,7 +209,7 @@ void timer_10ms()
evalFunctionSwitches();
#endif
#if defined(ROTARY_ENCODER_NAVIGATION) && !defined(LIBOPENUI)
#if defined(ROTARY_ENCODER_NAVIGATION) && !defined(COLORLCD)
if (rotaryEncoderPollingCycle()) {
inactivityTimerReset(ActivitySource::Keys);
}
@@ -1123,7 +1124,7 @@ void edgeTxResume()
{
TRACE("edgeTxResume");
sdMount();
if (!sdMounted()) sdInit();
#if defined(COLORLCD) && defined(LUA)
// reload widgets
luaInitThemesAndWidgets();
@@ -1596,7 +1597,7 @@ int main()
checkValidMCU();
#endif
#if defined(PCBHORUS)
#if defined(IS_FIRMWARE_COMPATIBLE_WITH_BOARD)
if (!IS_FIRMWARE_COMPATIBLE_WITH_BOARD()) {
runFatalErrorScreen(STR_WRONG_PCBREV);
}