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-dev by
Diff: targets/TARGET_STM/serial_api_hal.h
- Revision:
- 180:96ed750bd169
- Parent:
- 167:e84263d55307
- Child:
- 187:0387e8f68319
--- a/targets/TARGET_STM/serial_api_hal.h Thu Dec 07 14:01:42 2017 +0000 +++ b/targets/TARGET_STM/serial_api_hal.h Wed Jan 17 15:23:54 2018 +0000 @@ -32,7 +32,12 @@ #define MBED_SERIAL_API_HAL_H #include "serial_api.h" +#include <string.h> +#include "mbed_assert.h" +#include "mbed_debug.h" +#include "mbed_error.h" +#include "PeripheralPins.h" #ifdef __cplusplus extern "C" { @@ -47,14 +52,12 @@ #define SERIAL_S(obj) (obj) #endif -extern UART_HandleTypeDef uart_handlers[]; - /** Initialize and configure the UART peripheral * * @param obj The serial object containing the configuration */ -void init_uart(serial_t *obj); +HAL_StatusTypeDef init_uart(serial_t *obj); #ifdef __cplusplus }