mirror of https://github.com/ARMmbed/mbed-os.git
Cordio H4: Added some comments explaining the use of RawSerial as opposed to using Serial
parent
0cb86ded76
commit
5da5ef45c0
|
@ -69,6 +69,10 @@ public:
|
|||
private:
|
||||
void on_controller_irq();
|
||||
|
||||
// Use RawSerial as opposed to Serial as we don't require the locking primitives
|
||||
// provided by the Serial class (access to the UART should be exclusive to this driver)
|
||||
// Furthermore, we access the peripheral in interrupt context which would clash
|
||||
// with Serial's locking facilities
|
||||
RawSerial uart;
|
||||
PinName cts;
|
||||
PinName rts;
|
||||
|
|
Loading…
Reference in New Issue