Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
BufferSerial.cpp
- Committer:
- tetsu_0207
- Date:
- 2020-11-10
- Revision:
- 0:07be23bfcae4
- Child:
- 1:476b874003d8
File content as of revision 0:07be23bfcae4:
#include "BufferSerial.h"
BufferSerial::BufferSerial(PinName tx, PinName rx) :
serial(tx,rx)
{
// initialize functions
_rx_buffer_head(0);
_rx_buhher_tail(0);
// attach
serial.attach(this,&BufferSerial::serial_rx, Serial::RxIrq);
}
int BufferSerial::available(void){
}
unsigned char BufferSirial::read(void){
}
void BufferSerial::erial_rx(){
while(serial.readable()){
}
}