⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p_uart_gpio.h

📁 PNX1500系列没有串口
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -