You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
738 B
35 lines
738 B
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include "cmsis_os.h"
|
|
#include "config.h"
|
|
#include "iwdg.h"
|
|
#include "lwip.h"
|
|
#include "main.h"
|
|
#include "zport.h"
|
|
#include "usart.h"
|
|
#include "zboard.h"
|
|
#include "protocol.h"
|
|
#include "encoder_acquistion_service.h"
|
|
//
|
|
#include "iflytop_microcontroller/sdk/stm32/stm32sdk.h"
|
|
|
|
#define TAG "USER_MAIN"
|
|
|
|
void user_main() {
|
|
ZLOGI(TAG, "==============ethernet_sound_acquisition_card=============");
|
|
ZLOGI(TAG, "version %d.%d", VERSION_MAIN_ID, VERSION_SUB_ID);
|
|
config_init();
|
|
|
|
/**
|
|
* @brief 初始化编码器采集UDP服务
|
|
*/
|
|
encoder_acquistion_service_init();
|
|
|
|
while (1) {
|
|
port_do_debug_light_state();
|
|
HAL_IWDG_Refresh(&hiwdg);
|
|
}
|
|
}
|