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%
This commit is contained in:
parent
b1fa1e2e88
commit
d44c03a1b7
|
|
@ -44,7 +44,6 @@
|
||||||
#ifdef __ARM_STM32F411__
|
#ifdef __ARM_STM32F411__
|
||||||
#include "mbed-pinmap.h"
|
#include "mbed-pinmap.h"
|
||||||
#include "mbed-PortNames_stm32.h"
|
#include "mbed-PortNames_stm32.h"
|
||||||
#include "mbed-mbed_error.h"
|
|
||||||
|
|
||||||
// GPIO mode look-up table
|
// GPIO mode look-up table
|
||||||
static const uint32_t gpio_mode[13] = {
|
static const uint32_t gpio_mode[13] = {
|
||||||
|
|
@ -129,7 +128,6 @@ uint32_t Set_GPIO_Clock(uint32_t port_idx)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
error("Pinmap error: wrong port number.");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return gpio_add;
|
return gpio_add;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@
|
||||||
#include "mbed-pinmap.h"
|
#include "mbed-pinmap.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "mbed-PeripheralPins_stm32.h"
|
#include "mbed-PeripheralPins_stm32.h"
|
||||||
#include "mbed-mbed_error.h"
|
|
||||||
|
|
||||||
#define UART_NUM (8)
|
#define UART_NUM (8)
|
||||||
|
|
||||||
|
|
@ -84,7 +83,6 @@ static void mbed_init_uart(serial_t *obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HAL_UART_Init(&UartHandle) != HAL_OK) {
|
if (HAL_UART_Init(&UartHandle) != HAL_OK) {
|
||||||
error("Cannot initialize UART");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue