mbed lib with startup delay fixed for Nucleo401RE
Fork of mbed-src by
Diff: common/SerialBase.cpp
- Revision:
- 563:536c9fb088a0
- Parent:
- 525:c320967f86b9
--- a/common/SerialBase.cpp Tue Jun 09 15:30:08 2015 +0100 +++ b/common/SerialBase.cpp Wed Jun 10 10:00:08 2015 +0100 @@ -110,7 +110,7 @@ #if DEVICE_SERIAL_ASYNCH -int SerialBase::write(uint8_t *buffer, int length, const event_callback_t& callback, int event) +int SerialBase::write(const uint8_t *buffer, int length, const event_callback_t& callback, int event) { if (serial_tx_active(&_serial)) { return -1; // transaction ongoing @@ -119,7 +119,7 @@ return 0; } -int SerialBase::write(uint16_t *buffer, int length, const event_callback_t& callback, int event) +int SerialBase::write(const uint16_t *buffer, int length, const event_callback_t& callback, int event) { if (serial_tx_active(&_serial)) { return -1; // transaction ongoing @@ -128,7 +128,7 @@ return 0; } -void SerialBase::start_write(void *buffer, int buffer_size, char buffer_width, const event_callback_t& callback, int event) +void SerialBase::start_write(const void *buffer, int buffer_size, char buffer_width, const event_callback_t& callback, int event) { _tx_callback = callback;