mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			[Nuvoton] Add button names BUTTON1/BUTTON2
							parent
							
								
									f1e664be82
								
							
						
					
					
						commit
						be96ade527
					
				| 
						 | 
				
			
			@ -170,7 +170,9 @@ typedef enum {
 | 
			
		|||
    // Button naming
 | 
			
		||||
    SW2 = PB_0,
 | 
			
		||||
    SW3 = PB_1,
 | 
			
		||||
    
 | 
			
		||||
    BUTTON1 = SW2,
 | 
			
		||||
    BUTTON2 = SW3,
 | 
			
		||||
 | 
			
		||||
} PinName;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -131,7 +131,9 @@ typedef enum {
 | 
			
		|||
    // Button naming
 | 
			
		||||
    SW2 = PA_15,
 | 
			
		||||
    SW3 = PA_14,
 | 
			
		||||
    
 | 
			
		||||
    BUTTON1 = SW2,
 | 
			
		||||
    BUTTON2 = SW3,
 | 
			
		||||
 | 
			
		||||
} PinName;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -136,8 +136,9 @@ typedef enum {
 | 
			
		|||
    SW2 = PF_11,
 | 
			
		||||
    SW3 = PG_5,
 | 
			
		||||
#endif
 | 
			
		||||
    
 | 
			
		||||
    
 | 
			
		||||
    BUTTON1 = SW2,
 | 
			
		||||
    BUTTON2 = SW3,
 | 
			
		||||
 | 
			
		||||
} PinName;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -128,7 +128,9 @@ typedef enum {
 | 
			
		|||
    // Button naming
 | 
			
		||||
    SW1 = PE_5,
 | 
			
		||||
    SW2 = PE_6,
 | 
			
		||||
    
 | 
			
		||||
    BUTTON1 = SW1,
 | 
			
		||||
    BUTTON2 = SW2,
 | 
			
		||||
 | 
			
		||||
} PinName;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -134,7 +134,9 @@ typedef enum {
 | 
			
		|||
    // Button naming
 | 
			
		||||
    SW1 = PC_12,
 | 
			
		||||
    SW2 = PC_13,
 | 
			
		||||
    
 | 
			
		||||
    BUTTON1 = SW1,
 | 
			
		||||
    BUTTON2 = SW2,
 | 
			
		||||
 | 
			
		||||
} PinName;
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue