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.
25 lines
1.1 KiB
25 lines
1.1 KiB
#pragma once
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include "main.h"
|
|
#include "usart.h"
|
|
|
|
uint32_t sys_haspassedms(uint32_t ticket);
|
|
|
|
/***********************************************************************************************************************
|
|
* ====================================================调试指示灯===================================================== *
|
|
***********************************************************************************************************************/
|
|
void port_do_debug_light_state(void);
|
|
|
|
/***********************************************************************************************************************
|
|
* *******************************************************串口******************************************************** *
|
|
***********************************************************************************************************************/
|
|
typedef struct
|
|
{
|
|
UART_HandleTypeDef *uarthandler;
|
|
uint8_t rxbuf;
|
|
} uart_t;
|
|
|
|
void port_mock_on_uart_rx(uart_t *uart);
|
|
void port_uart_start_all_uart_receive(void);
|