fix #59 incorrect button mapping for feather nrf52840
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -251,6 +251,8 @@ CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
 | 
				
			|||||||
CFLAGS += -fno-builtin --short-enums -fstack-usage
 | 
					CFLAGS += -fno-builtin --short-enums -fstack-usage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Defined Symbol (MACROS)
 | 
					# Defined Symbol (MACROS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# TODO use GIT_VERSION (numberic format)
 | 
				
			||||||
CFLAGS += -DMK_BOOTLOADER_VERSION=0x0$(SD_VER1)0$(SD_VER2)0$(SD_VER3)UL
 | 
					CFLAGS += -DMK_BOOTLOADER_VERSION=0x0$(SD_VER1)0$(SD_VER2)0$(SD_VER3)UL
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CFLAGS += -D__HEAP_SIZE=0
 | 
					CFLAGS += -D__HEAP_SIZE=0
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,8 +53,8 @@
 | 
				
			|||||||
/* BUTTON
 | 
					/* BUTTON
 | 
				
			||||||
 *------------------------------------------------------------------*/
 | 
					 *------------------------------------------------------------------*/
 | 
				
			||||||
#define BUTTONS_NUMBER        2
 | 
					#define BUTTONS_NUMBER        2
 | 
				
			||||||
#define BUTTON_1              _PINNUM(0, 15)
 | 
					#define BUTTON_1              _PINNUM(1, 02)
 | 
				
			||||||
#define BUTTON_2              _PINNUM(0, 19)
 | 
					#define BUTTON_2              _PINNUM(0, 10)
 | 
				
			||||||
#define BUTTON_PULL           NRF_GPIO_PIN_PULLUP
 | 
					#define BUTTON_PULL           NRF_GPIO_PIN_PULLUP
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*------------------------------------------------------------------*/
 | 
					/*------------------------------------------------------------------*/
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user