forked from ROMEO/obsw
inertial commit, libxil built externally
This commit is contained in:
18
bsp_z7/coraZ7-10/inbyte.c
Normal file
18
bsp_z7/coraZ7-10/inbyte.c
Normal file
@ -0,0 +1,18 @@
|
||||
/******************************************************************************
|
||||
* 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);
|
||||
}
|
Reference in New Issue
Block a user