usr.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. void usr1_Init(void)
  43. {
  44. slave_init(BLE_Client_Push);
  45. host_init(BLE_Host_Push);
  46. }
  47. void PRE_Init(void)
  48. {
  49. usr1_Init();
  50. PWR_Init();
  51. LED_Init();
  52. MT_Init();
  53. Flash_Initialize();
  54. Exception_Init();
  55. selfcheck_trigger_Init();
  56. }
  57. void USR_Init(void)
  58. {
  59. //Add your code here...
  60. TIME_Init();
  61. fml_adc_Init();
  62. bll_imu_Init();
  63. hal_battery_init();
  64. BLE_Client_Initialize();
  65. BLE_Host_Initialize();
  66. hal_wearshoes_Init();
  67. hal_qma_Init();
  68. hal_charge_init();
  69. //APP
  70. app_detect_Init();
  71. app_client_Initialize();
  72. app_host_Initialize();
  73. app_overturn_Init();
  74. app_charge_Init();
  75. app_step_Init();
  76. app_game_Init();
  77. app_math_Init();
  78. app_ota_Init();
  79. app_connect_manage_Init();
  80. app_switchimu_Init();
  81. app_data_transfer_Init();
  82. app_safe_Init();
  83. app_Authen_Init();
  84. #if LOSSPACK_ENANBLE
  85. app_losspack_Init();
  86. #endif
  87. #if !BleNameHoldOn_ENANBLE
  88. #if ONE_WIRE_ENABLE
  89. app_pair_chargerpin_Init();
  90. #endif
  91. app_pair_Initialize();
  92. #endif
  93. watchdog_init();
  94. feed_watchdog();
  95. }