diff --git a/mbed-pinmap_stm32.c b/mbed-pinmap_stm32.c index 4c9ef62..8d80fb2 100644 --- a/mbed-pinmap_stm32.c +++ b/mbed-pinmap_stm32.c @@ -44,7 +44,6 @@ #ifdef __ARM_STM32F411__ #include "mbed-pinmap.h" #include "mbed-PortNames_stm32.h" -#include "mbed-mbed_error.h" // GPIO mode look-up table static const uint32_t gpio_mode[13] = { @@ -129,7 +128,6 @@ uint32_t Set_GPIO_Clock(uint32_t port_idx) break; #endif default: - error("Pinmap error: wrong port number."); break; } return gpio_add; diff --git a/mbed-serial_api_stm32.c b/mbed-serial_api_stm32.c index 5f90639..8dbbdec 100644 --- a/mbed-serial_api_stm32.c +++ b/mbed-serial_api_stm32.c @@ -52,7 +52,6 @@ #include "mbed-pinmap.h" #include #include "mbed-PeripheralPins_stm32.h" -#include "mbed-mbed_error.h" #define UART_NUM (8) @@ -84,7 +83,6 @@ static void mbed_init_uart(serial_t *obj) } if (HAL_UART_Init(&UartHandle) != HAL_OK) { - error("Cannot initialize UART"); } }