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.
Fork of football_project by
Diff: io/MySerial.h
- Revision:
- 6:ef758ac3c928
- Parent:
- 5:1b9734e68327
- Child:
- 7:205ef63d311a
--- a/io/MySerial.h Fri Apr 17 04:20:07 2015 +0000
+++ b/io/MySerial.h Fri Apr 17 20:55:25 2015 +0000
@@ -33,7 +33,10 @@
{
RxIrq = 0,
TxIrq,
- ErrIrq
+ ErrIrq,
+ RxtoIrq,
+ CtsIrq,
+ NctsIrq
};
/** Set the baud rate of the serial port
@@ -102,16 +105,17 @@
}
void my_serial_init( serial_t *obj, PinName tx, PinName rx, PinName rts, PinName cts, int baudrate );
-
+ void my_serial_irq_handler( serial_t *obj, uart_irq_handler handler, uint32_t id );
void my_serial_irq_set( serial_t *obj, IrqType irq, uint32_t enable );
void error_handler();
+ void cts_handler();
int _base_getc();
int _base_putc( int c );
serial_t _my_serial;
- FunctionPointer _my_irq[4];
+ FunctionPointer _my_irq[sizeof(IrqType)];
int _my_baud;
};
