mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			STM32 uart: update after code review
							parent
							
								
									07e71d6ec8
								
							
						
					
					
						commit
						1cf47f6209
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,8 +37,6 @@
 | 
			
		|||
#include "mbed_debug.h"
 | 
			
		||||
#include "mbed_error.h"
 | 
			
		||||
 | 
			
		||||
// #include "cmsis.h"
 | 
			
		||||
// #include "pinmap.h"
 | 
			
		||||
#include "PeripheralPins.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue