chargeController/APP/businessLogic/Src/Init.c

45 lines
878 B
C
Raw Normal View History

#include "Init.h"
#include "capture.h"
#include "inFlash.h"
#include "FM_GPIO.h"
#include "FM_TIM.h"
#include "uart_dev.h"
#include "parameter.h"
#include "abnormalManage.h"
2024-12-18 09:43:14 +00:00
#include "pDebug.h"
#include "interruptSend.h"
/**
* @brief
* @param None
* @retval None
*
*/
void Init(void)
{
2024-12-18 09:43:14 +00:00
HAL_Delay(10000);
config_info_start();
ADC_Capture_Init();
2024-12-18 09:43:14 +00:00
proportionalInt(g_cfgParameter.onlyPower);
FM_GPIO_Init();
tim_Init();
Init_debug_uart();
2024-12-16 09:28:12 +00:00
Init_BAT485_uart(g_cfgParameter.bat485_Baud);
Init_GW485_uart(g_cfgParameter.gw485_Baud);
// Init_BAT485_uart(115200);
// Init_GW485_uart(115200);
start_gw485Rx_It();
start_bat485Rx_It();
2024-12-11 09:51:48 +00:00
2024-12-18 09:43:14 +00:00
send_init();
// POW_FF_PCON_Open();
// POW_OUT_PCON_Open();
2024-12-18 09:43:14 +00:00
HAL_Delay(100);
setPowerOutput(TRUE);
}