[FL-1009, FL-1118] Better initialization sequence and V8 hardware support (#406)

* Interrupt manager: add memory barriers.
* ISRs: remove TIM17 dead code.
* API HAL Delay: rename initialization routine and move to API-HAL
* Main: move FURI initialization to the start.
* API HAL GPIO: drop CC1101 shenanigans, COMP inversion for new boards.
* IButton: migrate Cyfral and Metakom to RFID comp routine, make it compatible with new boards.
* RFID: Better keyboard handling and shutdown routines
This commit is contained in:
あく
2021-04-11 16:47:36 +03:00
committed by GitHub
parent 2fe44e1b11
commit 5d08b35b54
16 changed files with 75 additions and 80 deletions

View File

@@ -23,11 +23,13 @@
void SystemClock_Config(void);
void MX_FREERTOS_Init(void);
int main(void)
{
int main(void) {
// Initialize FURI layer
furi_init();
// Initialize ST HAL hardware
HAL_Init();
SystemClock_Config();
MX_GPIO_Init();
MX_ADC1_Init();
MX_RTC_Init();
@@ -46,11 +48,12 @@ int main(void)
MX_AES2_Init();
MX_CRC_Init();
delay_us_init_DWT();
// Flipper API HAL
api_hal_init();
// 3rd party
MX_FATFS_Init();
furi_init();
// CMSIS initialization
osKernelInitialize();
// Init flipper