STM32 uart: update after code review

pull/5570/head
jeromecoutant 2017-11-24 13:39:33 +01:00
parent 07e71d6ec8
commit 1cf47f6209
3 changed files with 2 additions and 6 deletions

View File

@ -33,7 +33,7 @@
#include "serial_api_hal.h"
#if defined (TARGET_STM32F031K6)
#define UART_NUM (1
#define UART_NUM (1)
#elif defined (TARGET_STM32F030R8) || defined (TARGET_STM32F051R8) || defined (TARGET_STM32F042K6)
#define UART_NUM (2)
#elif defined (TARGET_STM32F070RB) || defined (TARGET_STM32F072RB)

View File

@ -40,10 +40,8 @@
#define UART_NUM (6)
#elif defined (TARGET_STM32F429xI) || defined (TARGET_STM32F439xI) || defined (TARGET_STM32F437xG) || defined (TARGET_STM32F469xI)
#define UART_NUM (8)
#elif defined (TARGET_STM32F413xH)
#define UART_NUM (10)
#else
#define UART_NUM (10) // max value
#define UART_NUM (10) // max value // TARGET_STM32F413xH
#endif
uint32_t serial_irq_ids[UART_NUM] = {0};

View File

@ -37,8 +37,6 @@
#include "mbed_debug.h"
#include "mbed_error.h"
// #include "cmsis.h"
// #include "pinmap.h"
#include "PeripheralPins.h"
#ifdef __cplusplus