IOTON boards API using mbed SDK - http://ioton.cc/plataforma-ton
Dependents: ton_demo ton_template
USBTon.cpp
- Committer:
- krebyy
- Date:
- 2017-06-29
- Revision:
- 3:9c7195d31602
- Parent:
- 2:3a73d77c2cef
File content as of revision 3:9c7195d31602:
#include "stdint.h"
#include "USBTon.h"
int USBTon::_putc(int c) {
VCP_write((uint8_t *)&c, 1);
return 1;
}
int USBTon::_getc() {
uint8_t c = 0;
VCP_read((uint8_t *)&c, 1);
return c;
}
uint8_t USBTon::available() {
return 1;
}
Kleber Silva