#include "usr.h" #include "system.h" #include "bsp_time.h" //Add your code here... #include "hal_ble_client.h" #include "hal_ble_host.h" #include "hal_mt.h" #include "hal_battery.h" #include "hal_led.h" #include "app_overturn.h" #include "app_charge.h" #include "app_power.h" #include "app_client.h" #include "app_host.h" #include "app_game.h" #include "app_config.h" #include "app_ota.h" #include "app_connect_manage.h" #include "app_organ.h" #include "ble_comm.h" #include "exception.h" #include "bsp_pwm.h" #include "bsp_wdt.h" #include "hal_wearshoes.h" #include "app_math.h" #include "app_losspack.h" #include "app_pair_chargerpin.h" #include "app_switchimu.h" #include "exception.h" #include "app_data_transfer.h" #include "app_safe.h" #include "bll_imu.h" #include "app_flash.h" #include "app_step.h" #include "hal_qma.h" #include "app_detectIsHost.h" #include "hal_charge.h" #include "app_Authen.h" #include "fml_adc.h" void usr1_Init(void) { slave_init(BLE_Client_Push); host_init(BLE_Host_Push); } void PRE_Init(void) { usr1_Init(); PWR_Init(); LED_Init(); MT_Init(); Flash_Initialize(); Exception_Init(); } void USR_Init(void) { //Add your code here... TIME_Init(); fml_adc_Init(); bll_imu_Init(); hal_battery_init(); BLE_Client_Initialize(); BLE_Host_Initialize(); hal_wearshoes_Init(); hal_qma_Init(); hal_charge_init(); //APP app_detect_Init(); app_client_Initialize(); app_host_Initialize(); app_overturn_Init(); app_charge_Init(); app_step_Init(); app_game_Init(); app_math_Init(); app_ota_Init(); app_connect_manage_Init(); app_switchimu_Init(); app_data_transfer_Init(); app_safe_Init(); app_Authen_Init(); #if LOSSPACK_ENANBLE app_losspack_Init(); #endif #if !BleNameHoldOn_ENANBLE app_pair_chargerpin_Init(); #endif watchdog_init(); feed_watchdog(); }