Merge pull request #7075 from donatieng/fix_cordio_h4_serial

BLE: Replace Serial with RawSerial in Cordio H4 Transport Driver
pull/7094/head
Cruz Monrreal 2018-06-02 19:54:42 -05:00 committed by GitHub
commit 0aeb15037d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -69,7 +69,11 @@ public:
private:
void on_controller_irq();
Serial uart;
// 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;
};