2f3ea9494e
* gpio, hsem, crypto: switch from HAL to LL/registers * Moved GPIO initialization to furi_hal * More HAL removed * All HAL modules disabled * HAL is finally removed * hal_gpio -> furi_hal_gpio, main.h removed * Bootloader build fix * RTOS config moved to freertos-glue * delay -> furi_hal_delay Co-authored-by: あく <alleteam@gmail.com>
30 lines
451 B
C
30 lines
451 B
C
#include <furi.h>
|
|
#include <furi_hal.h>
|
|
#include <flipper.h>
|
|
|
|
#define TAG "Main"
|
|
|
|
int main(void) {
|
|
// Flipper critical FURI HAL
|
|
furi_hal_init_critical();
|
|
|
|
// Initialize FURI layer
|
|
furi_init();
|
|
|
|
// Flipper FURI HAL
|
|
furi_hal_init();
|
|
|
|
// CMSIS initialization
|
|
osKernelInitialize();
|
|
FURI_LOG_I(TAG, "KERNEL OK");
|
|
|
|
// Init flipper
|
|
flipper_init();
|
|
|
|
// Start kernel
|
|
osKernelStart();
|
|
|
|
while(1) {
|
|
}
|
|
}
|