Cordio H4: Added some comments explaining the use of RawSerial as opposed to using Serial

pull/7075/head
Donatien Garnier 2018-05-31 11:11:28 -05:00
parent 0cb86ded76
commit 5da5ef45c0
1 changed files with 4 additions and 0 deletions

View File

@ -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;