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 mbed-stm32l0l1-src-1 by
Diff: api/SerialBase.h
- Revision:
- 563:536c9fb088a0
- Parent:
- 531:47d2b67c511f
- Child:
- 564:24a7119bd73a
--- a/api/SerialBase.h Tue Jun 09 15:30:08 2015 +0100 +++ b/api/SerialBase.h Wed Jun 10 10:00:08 2015 +0100 @@ -135,7 +135,7 @@ * @param callback The event callback function * @param event The logical OR of TX events */ - int write(uint8_t *buffer, int length, const event_callback_t& callback, int event = SERIAL_EVENT_TX_COMPLETE); + int write(const uint8_t *buffer, int length, const event_callback_t& callback, int event = SERIAL_EVENT_TX_COMPLETE); /** Begin asynchronous write using 16bit buffer. The completition invokes registered TX event callback * @@ -144,7 +144,7 @@ * @param callback The event callback function * @param event The logical OR of TX events */ - int write(uint16_t *buffer, int length, const event_callback_t& callback, int event = SERIAL_EVENT_TX_COMPLETE); + int write(const uint16_t *buffer, int length, const event_callback_t& callback, int event = SERIAL_EVENT_TX_COMPLETE); /** Abort the on-going write transfer */ @@ -190,7 +190,7 @@ protected: void start_read(void *buffer, int buffer_size, char buffer_width, const event_callback_t& callback, int event, unsigned char char_match); - void start_write(void *buffer, int buffer_size, char buffer_width, const event_callback_t& callback, int event); + void start_write(const void *buffer, int buffer_size, char buffer_width, const event_callback_t& callback, int event); void interrupt_handler_asynch(void); #endif