furi-hal.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #include <furi-hal.h>
  2. #include <comp.h>
  3. #include <rtc.h>
  4. #include <tim.h>
  5. #include <usb_device.h>
  6. #include <gpio.h>
  7. void furi_hal_init() {
  8. furi_hal_clock_init();
  9. furi_hal_console_init();
  10. furi_hal_interrupt_init();
  11. furi_hal_delay_init();
  12. MX_GPIO_Init();
  13. FURI_LOG_I("HAL", "GPIO OK");
  14. MX_RTC_Init();
  15. FURI_LOG_I("HAL", "RTC OK");
  16. furi_hal_boot_init();
  17. furi_hal_version_init();
  18. furi_hal_spi_init();
  19. MX_TIM1_Init();
  20. FURI_LOG_I("HAL", "TIM1 OK");
  21. MX_TIM2_Init();
  22. FURI_LOG_I("HAL", "TIM2 OK");
  23. MX_TIM16_Init();
  24. FURI_LOG_I("HAL", "TIM16 OK");
  25. MX_COMP1_Init();
  26. FURI_LOG_I("HAL", "COMP1 OK");
  27. furi_hal_crypto_init();
  28. // VCP + USB
  29. furi_hal_vcp_init();
  30. MX_USB_Device_Init();
  31. FURI_LOG_I("HAL", "USB OK");
  32. furi_hal_i2c_init();
  33. // High Level
  34. furi_hal_power_init();
  35. furi_hal_light_init();
  36. furi_hal_vibro_init();
  37. furi_hal_subghz_init();
  38. furi_hal_nfc_init();
  39. furi_hal_rfid_init();
  40. furi_hal_bt_init();
  41. // FreeRTOS glue
  42. furi_hal_os_init();
  43. }