furi-hal.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #include <furi-hal.h>
  2. #include <comp.h>
  3. #include <rtc.h>
  4. #include <tim.h>
  5. #include <gpio.h>
  6. void furi_hal_init() {
  7. furi_hal_clock_init();
  8. furi_hal_console_init();
  9. furi_hal_interrupt_init();
  10. furi_hal_delay_init();
  11. MX_GPIO_Init();
  12. FURI_LOG_I("HAL", "GPIO OK");
  13. MX_RTC_Init();
  14. FURI_LOG_I("HAL", "RTC OK");
  15. furi_hal_boot_init();
  16. furi_hal_version_init();
  17. furi_hal_spi_init();
  18. MX_TIM1_Init();
  19. FURI_LOG_I("HAL", "TIM1 OK");
  20. MX_TIM2_Init();
  21. FURI_LOG_I("HAL", "TIM2 OK");
  22. MX_TIM16_Init();
  23. FURI_LOG_I("HAL", "TIM16 OK");
  24. MX_COMP1_Init();
  25. FURI_LOG_I("HAL", "COMP1 OK");
  26. furi_hal_crypto_init();
  27. // VCP + USB
  28. furi_hal_vcp_init();
  29. furi_hal_usb_init();
  30. furi_hal_usb_set_config(UsbModeVcpSingle);
  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. }