File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed 
targets/hal/TARGET_NORDIC/TARGET_NRF5 Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 18981898            "lf_clock_src" : {
18991899                "value" : " NRF_LF_SRC_XTAL"  ,
19001900                "macro_name" : " MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC" 
1901+             },
1902+             "uart_hwfc" : {
1903+                 "help" : " Value: 1 for enable, 0 for disable"  ,
1904+                 "value" : 1 ,
1905+                 "macro_name" : " MBED_CONF_NORDIC_UART_HWFC" 
19011906            }
19021907        }
19031908    },
19431948            "lf_clock_src" : {
19441949                "value" : " NRF_LF_SRC_XTAL"  ,
19451950                "macro_name" : " MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC" 
1951+             },
1952+             "uart_hwfc" : {
1953+                 "help" : " Value: 1 for enable, 0 for disable"  ,
1954+                 "value" : 1 ,
1955+                 "macro_name" : " MBED_CONF_NORDIC_UART_HWFC" 
19461956            }
19471957        }
19481958    },
Original file line number Diff line number Diff line change 5858
5959#define  UART_DEFAULT_BAUDRATE    UART0_CONFIG_BAUDRATE
6060#define  UART_DEFAULT_PARITY      UART0_CONFIG_PARITY
61- #define  UART_DEFAULT_HWFC        UART0_CONFIG_HWFC
61+ 
62+ // expected the macro from mbed configuration system 
63+ #ifndef  MBED_CONF_NORDIC_UART_HWFC 
64+     #define  MBED_CONF_NORDIC_UART_HWFC  1
65+     #warning  None of UART flow control configuration (expected macro MBED_CONF_NORDIC_UART_HWFC). The RTSCTS flow control is used by default .
66+ #endif 
67+ 
68+ #if  MBED_CONF_NORDIC_UART_HWFC  ==  1 
69+     #define  UART_DEFAULT_HWFC        UART0_CONFIG_HWFC
70+ #else 
71+     #define  UART_DEFAULT_HWFC   NRF_UART_HWFC_DISABLED
72+ #endif 
73+ 
6274#define  UART_DEFAULT_CTS         UART0_CONFIG_PSEL_CTS
6375#define  UART_DEFAULT_RTS         UART0_CONFIG_PSEL_RTS
6476
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments