forked from xuos/xiuos
repair the uart input of gd32fv103_rvstar
This commit is contained in:
parent
b1264ad3c9
commit
19bd5a4705
|
@ -215,9 +215,8 @@ static int SerialPutChar(struct SerialHardwareDevice *serial_dev, char c)
|
|||
|
||||
static int SerialGetChar(struct SerialHardwareDevice *serial_dev)
|
||||
{
|
||||
char ch = -1;
|
||||
int ch = -1;
|
||||
struct SerialCfgParam *serial_cfg = (struct SerialCfgParam *)serial_dev->private_data;
|
||||
// struct UsartHwCfg *serial_hw_cfg = (struct UsartHwCfg *)serial_cfg->hw_cfg.private_data;
|
||||
|
||||
if (RESET != usart_flag_get(serial_cfg->hw_cfg.serial_register_base, USART_FLAG_RBNE))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue