From d44c03a1b74d4e4f383781ecd4e00df489c70783 Mon Sep 17 00:00:00 2001 From: Nico Tonnhofer Date: Sat, 7 Nov 2015 00:18:20 +0100 Subject: [PATCH] STM32F411: get rid of mbed-error.c and mbed-mbed_error.h SIZES ARM... stm32f411 FLASH : 5252 bytes 2% RAM : 404 bytes 1% EEPROM : 0 bytes 0% --- mbed-pinmap_stm32.c | 2 -- mbed-serial_api_stm32.c | 2 -- 2 files changed, 4 deletions(-) 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"); } }