forked from ROMEO/obsw
19 lines
453 B
C
19 lines
453 B
C
/******************************************************************************
|
|
* Copyright (c) 2021 Xilinx, Inc. All rights reserved.
|
|
* SPDX-License-Identifier: MIT
|
|
******************************************************************************/
|
|
#include "xparameters.h"
|
|
#include "xuartps_hw.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
char inbyte(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
char inbyte(void) {
|
|
return XUartPs_RecvByte(STDIN_BASEADDRESS);
|
|
}
|