clean up
This commit is contained in:
parent
bcbd3fa089
commit
ca400565b3
3
Makefile
3
Makefile
@ -194,6 +194,8 @@ endif
|
|||||||
|
|
||||||
# src
|
# src
|
||||||
IPATH += $(SRC_PATH)
|
IPATH += $(SRC_PATH)
|
||||||
|
IPATH += $(SRC_PATH)/boards/$(BOARD)
|
||||||
|
|
||||||
IPATH += $(SRC_PATH)/cmsis/include
|
IPATH += $(SRC_PATH)/cmsis/include
|
||||||
IPATH += $(SRC_PATH)/usb
|
IPATH += $(SRC_PATH)/usb
|
||||||
IPATH += $(SRC_PATH)/boards
|
IPATH += $(SRC_PATH)/boards
|
||||||
@ -260,7 +262,6 @@ CFLAGS += -DDFU_APP_DATA_RESERVED=7*4096
|
|||||||
|
|
||||||
CFLAGS += -DUF2_VERSION='"$(GIT_VERSION) $(GIT_SUBMODULE_VERSIONS) $(SD_NAME) $(SD_VERSION)"'
|
CFLAGS += -DUF2_VERSION='"$(GIT_VERSION) $(GIT_SUBMODULE_VERSIONS) $(SD_NAME) $(SD_VERSION)"'
|
||||||
CFLAGS += -DBOARD_$(shell echo $(BOARD) | tr '[:lower:]' '[:upper:]')
|
CFLAGS += -DBOARD_$(shell echo $(BOARD) | tr '[:lower:]' '[:upper:]')
|
||||||
CFLAGS += -DBOARD_HEADER_FILE='"$(BOARD)/board.h"'
|
|
||||||
|
|
||||||
ifneq ($(IS_52832),)
|
ifneq ($(IS_52832),)
|
||||||
CFLAGS += -DNRF52
|
CFLAGS += -DNRF52
|
||||||
|
@ -30,8 +30,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "nrf_gpio.h"
|
#include "nrf_gpio.h"
|
||||||
|
|
||||||
|
#include "board.h"
|
||||||
#include BOARD_HEADER_FILE
|
|
||||||
|
|
||||||
#ifndef BUTTON_DFU
|
#ifndef BUTTON_DFU
|
||||||
#define BUTTON_DFU BUTTON_1
|
#define BUTTON_DFU BUTTON_1
|
||||||
|
Loading…
Reference in New Issue
Block a user