p_uart_gpio.h
来自「PNX1500系列没有串口」· C头文件 代码 · 共 34 行
H
34 行
#ifndef _UART_GPIO_H_
#define _UART_GPIO_H_
#ifdef __cplusplus
extern "C" {
#endif
int UartGPIO_Init();
int UartGPIO_Deinit();
void UartGPIO_WriteChar(char c);
U8 UartGPIO_ReadChar();
// return 1, ok. 0, fifo full
int UartGPIO_TryWriteChar(unsigned char data);
// return 1, ok, 0, fifo empty
int UartGPIO_TryReadChar(unsigned char *data);
void UartGPIO_WriteBuf(unsigned char *data, int len);
void UartGPIO_WriteString(unsigned char *data);
void UartGPIO_WriteU32(unsigned long v);
void UartGPIO_ReadBuf(unsigned char *data, int len);
#ifndef _BOOT_
int UartGPIO_TryReadBuf(unsigned char *data, int len);
#endif
#ifdef __cplusplus
}
#endif
#endif //_UART_GPIO_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?