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.
|
|
|
/*
|
|
|
|
* @Author: your name
|
|
|
|
* @Date: 2021-06-01 17:05:15
|
|
|
|
* @LastEditTime: 2021-09-08 10:53:16
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
* @FilePath: \flow-radar-convertor\BSP\bsp_common.h
|
|
|
|
*/
|
|
|
|
#ifndef __BSP_COMMON_H
|
|
|
|
#define __BSP_COMMON_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
#define USART_INSTANCE_U1 1
|
|
|
|
#define USART_INSTANCE_U2 2
|
|
|
|
|
|
|
|
#define RANGE_FINDER_ID 13
|
|
|
|
|
|
|
|
extern uint8_t usart_rev_data;
|
|
|
|
extern uint32_t usart_rev_tick;
|
|
|
|
|
|
|
|
void open_timer(TIM_HandleTypeDef *htim);
|
|
|
|
void close_timer(TIM_HandleTypeDef *htim);
|
|
|
|
void USAR_UART_IDLECallback(UART_HandleTypeDef *huart);
|
|
|
|
void USER_UART_IRQHandler(UART_HandleTypeDef *huart);
|
|
|
|
|
|
|
|
void action_do_uasrt1_sigle_data(uint8_t data);
|
|
|
|
void usart1_IRQ_action(void);
|
|
|
|
void active_uasrt_irq(uint8_t instance);
|
|
|
|
void action_rev_usart(uint8_t data);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|