This commit is contained in:
hathach 2019-04-24 12:08:58 +07:00
parent bcbd3fa089
commit ca400565b3
2 changed files with 3 additions and 3 deletions

View File

@ -194,6 +194,8 @@ endif
# src
IPATH += $(SRC_PATH)
IPATH += $(SRC_PATH)/boards/$(BOARD)
IPATH += $(SRC_PATH)/cmsis/include
IPATH += $(SRC_PATH)/usb
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 += -DBOARD_$(shell echo $(BOARD) | tr '[:lower:]' '[:upper:]')
CFLAGS += -DBOARD_HEADER_FILE='"$(BOARD)/board.h"'
ifneq ($(IS_52832),)
CFLAGS += -DNRF52

View File

@ -30,8 +30,7 @@
#include <string.h>
#include "nrf_gpio.h"
#include BOARD_HEADER_FILE
#include "board.h"
#ifndef BUTTON_DFU
#define BUTTON_DFU BUTTON_1