usr.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #include "usr.h"
  2. #include "system.h"
  3. #include "bsp_time.h"
  4. //Add your code here...
  5. #include "hal_ble_client.h"
  6. #include "hal_ble_host.h"
  7. #include "hal_mt.h"
  8. #include "hal_battery.h"
  9. #include "hal_led.h"
  10. #include "app_overturn.h"
  11. #include "app_charge.h"
  12. #include "app_power.h"
  13. #include "app_client.h"
  14. #include "app_host.h"
  15. #include "app_game.h"
  16. #include "app_config.h"
  17. #include "app_ota.h"
  18. #include "app_connect_manage.h"
  19. #include "app_organ.h"
  20. #include "ble_comm.h"
  21. #include "exception.h"
  22. #include "bsp_pwm.h"
  23. #include "bsp_wdt.h"
  24. #include "hal_wearshoes.h"
  25. #include "app_math.h"
  26. #include "app_losspack.h"
  27. #include "app_pair_chargerpin.h"
  28. #include "app_switchimu.h"
  29. #include "exception.h"
  30. #include "app_data_transfer.h"
  31. #include "app_safe.h"
  32. #include "bll_imu.h"
  33. #include "app_flash.h"
  34. #include "app_step.h"
  35. #include "hal_qma.h"
  36. #include "app_detectIsHost.h"
  37. #include "hal_charge.h"
  38. #include "app_Authen.h"
  39. #include "fml_adc.h"
  40. #include "app_pair.h"
  41. #include "selfcheck.h"
  42. #include "drv_trigger.h"
  43. void usr1_Init(void)
  44. {
  45. slave_init(BLE_Client_Push);
  46. host_init(BLE_Host_Push);
  47. }
  48. void PRE_Init(void)
  49. {
  50. usr1_Init();
  51. PWR_Init();
  52. LED_Init();
  53. MT_Init();
  54. Flash_Initialize();
  55. Exception_Init();
  56. selfcheck_trigger_Init();
  57. }
  58. void USR_Init(void)
  59. {
  60. //Add your code here...
  61. TIME_Init();
  62. fml_adc_Init();
  63. bll_imu_Init();
  64. hal_battery_init();
  65. BLE_Client_Initialize();
  66. BLE_Host_Initialize();
  67. hal_wearshoes_Init();
  68. hal_qma_Init();
  69. hal_charge_init();
  70. //APP
  71. app_detect_Init();
  72. app_client_Initialize();
  73. app_host_Initialize();
  74. app_overturn_Init();
  75. app_charge_Init();
  76. app_step_Init();
  77. app_game_Init();
  78. app_math_Init();
  79. app_ota_Init();
  80. app_connect_manage_Init();
  81. app_switchimu_Init();
  82. app_data_transfer_Init();
  83. app_safe_Init();
  84. app_Authen_Init();
  85. #if LOSSPACK_ENANBLE
  86. app_losspack_Init();
  87. #endif
  88. #if !BleNameHoldOn_ENANBLE
  89. drv_TriggerInit();
  90. app_pair_Initialize();
  91. #endif
  92. watchdog_init();
  93. feed_watchdog();
  94. }