21 lines
444 B
C
21 lines
444 B
C
#include "user_main.h"
|
|
|
|
void user_setup()
|
|
{
|
|
flash_fpga();
|
|
// ethernet_init();
|
|
HAL_TIM_Base_Start_IT(&htim4);
|
|
HAL_TIM_Base_Start(&htim3);
|
|
eem_power_init();
|
|
uint8_t str[10] = "start";
|
|
HAL_UART_Transmit(&huart4, str, 6, 100);
|
|
|
|
HAL_GPIO_WritePin(GND1_SW_GPIO_Port, GND1_SW_Pin, GPIO_PIN_SET);
|
|
HAL_GPIO_WritePin(GND2_SW_GPIO_Port, GND2_SW_Pin, GPIO_PIN_SET);
|
|
}
|
|
|
|
void user_loop()
|
|
{
|
|
hsadc();
|
|
key_events();
|
|
} |