Browse Source

add @DirectCall to Serial

Signed-off-by: surenyi <surenyi82@qq.com>
master
surenyi 6 years ago
parent
commit
675d572f5e
  1. 7
      packages/vsky/libdsp/Serial.xdc

7
packages/vsky/libdsp/Serial.xdc

@ -23,26 +23,31 @@ instance:
* }
* @p
*/
@DirectCall
create(Int port);
/*!
* read a byte from serial.
*/
@DirectCall
UInt8 read();
/*!
* write a byte to serial.
*/
@DirectCall
void write(UInt8 ch);
/*!
* data is comming.
*
*/
@DirectCall
Bool isReady();
/*!
* get the lowlevel uart handle.
*/
@DirectCall
Ptr getUart();
internal:

Loading…
Cancel
Save