2021-07-26 17:17:04 +08:00
|
|
|
#include "user_main.h"
|
|
|
|
|
2021-07-27 09:58:57 +08:00
|
|
|
void user_setup()
|
2021-07-26 17:17:04 +08:00
|
|
|
{
|
2021-08-31 17:38:28 +08:00
|
|
|
flash_fpga();
|
|
|
|
// ethernet_init();
|
2021-07-26 17:17:04 +08:00
|
|
|
HAL_TIM_Base_Start_IT(&htim4);
|
2021-08-31 17:38:28 +08:00
|
|
|
HAL_TIM_Base_Start(&htim3);
|
|
|
|
eem_power_init();
|
|
|
|
uint8_t str[10] = "test";
|
|
|
|
HAL_UART_Transmit(&huart4, str, 5, 100);
|
2021-07-26 17:17:04 +08:00
|
|
|
}
|
|
|
|
|
2021-07-27 09:58:57 +08:00
|
|
|
void user_loop()
|
2021-07-26 17:17:04 +08:00
|
|
|
{
|
2021-08-31 17:38:28 +08:00
|
|
|
key_events();
|
2021-07-26 17:17:04 +08:00
|
|
|
}
|