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
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (C) EdgeTx
* Copyright (C) EdgeTx
*
* Based on code named
* opentx - https://github.com/opentx/opentx
@@ -63,4 +63,4 @@ uint32_t rgbGetLedColor(uint8_t led)
{
uint8_t* pixel = &_led_colors[led * WS2812_BYTES_PER_LED];
return (pixel[1] << 16) + (pixel[0] << 8) + pixel[2];
}
}
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright (C) EdgeTX
*
* Based on code named
* opentx - https://github.com/opentx/opentx
* th9x - http://code.google.com/p/th9x
* er9x - http://code.google.com/p/er9x
* gruvin9x - http://code.google.com/p/gruvin9x
*
* License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#pragma once
#define __CCMRAM
#define __DMA
#define __DMA_NO_CACHE
#define __IRAM
#define __SDRAM
#define __SDRAMFONTS
+1 -9
View File
@@ -494,14 +494,6 @@ void setSelectedUsbMode(int mode) {}
void delay_ms(uint32_t ms) { }
void delay_us(uint16_t us) { }
void unlockFlash()
{
}
void lockFlash()
{
}
void flashWrite(uint32_t *address, const uint32_t *buffer)
{
simuSleep(10);
@@ -529,7 +521,7 @@ void boardOff()
void hapticOff() {}
#if defined(PCBFRSKY) || defined(PCBNV14)
#if defined(HAS_HARDWARE_OPTIONS)
HardwareOptions hardwareOptions;
#endif
+3 -3
View File
@@ -61,7 +61,7 @@ static uint8_t get_switch_index(uint8_t cat, uint8_t idx)
}
}
SwitchHwPos boardSwitchGetPosition(uint8_t cat, uint8_t idx)
SwitchHwPos boardSwitchGetPosition(SwitchCategory cat, uint8_t idx)
{
idx = get_switch_index(cat, idx);
@@ -80,13 +80,13 @@ SwitchHwPos boardSwitchGetPosition(uint8_t cat, uint8_t idx)
return SWITCH_HW_DOWN;
}
const char* boardSwitchGetName(uint8_t cat, uint8_t idx)
const char* boardSwitchGetName(SwitchCategory cat, uint8_t idx)
{
idx = get_switch_index(cat, idx);
return _switch_defs[idx].name;
}
SwitchHwType boardSwitchGetType(uint8_t cat, uint8_t idx)
SwitchHwType boardSwitchGetType(SwitchCategory cat, uint8_t idx)
{
idx = get_switch_index(cat, idx);
return _switch_defs[idx].type;