mbed
Fork of mbed-dev by
Diff: targets/TARGET_STM/serial_api_hal.h
- Revision:
- 181:96ed750bd169
- Parent:
- 167:e84263d55307
diff -r b0033dcd6934 -r 96ed750bd169 targets/TARGET_STM/serial_api_hal.h --- 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 }