first submission

This commit is contained in:
qiyongshuang
2023-02-01 14:19:13 +08:00
parent d534aad004
commit b79c6ac80d
3711 changed files with 745432 additions and 2 deletions
@@ -0,0 +1,34 @@
/********************************** (C) COPYRIGHT *******************************
* File Name : uart.h
* Author : WCH
* Version : V1.0
* Date : 2022/06/30
* Description :
*********************************************************************************
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Attention: This software (modified or not) and binary are used for
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/
#ifndef BLE_DIRECTTEST_APP_INCLUDE_UART_H
#define BLE_DIRECTTEST_APP_INCLUDE_UART_H
#include "config.h"
#include "buf.h"
#define UART_PROCESS_EVT 1
/*process events*/
#define UART_RECEIVE_POLL_EVT (1<<0)
struct uart_process_msg {
tmos_event_hdr_t hdr;
uint8_t *data;
};
int uart_send(struct simple_buf *buf);
int uart_start_receiving(void);
void uart_task_init(void);
#endif /* BLE_DIRECTTEST_APP_INCLUDE_UART_H */