[target][dartuino] slight cleanup of rules and some unused code
This commit is contained in:
@@ -115,23 +115,8 @@ void target_early_init(void)
|
||||
target_set_debug_led(3, false);
|
||||
}
|
||||
|
||||
static uint8_t* gen_mac_address(void)
|
||||
{
|
||||
static uint8_t mac_addr[6];
|
||||
|
||||
for (size_t i = 0; i < sizeof(mac_addr); i++) {
|
||||
mac_addr[i] = rand() & 0xff;
|
||||
}
|
||||
mac_addr[5] += 1;
|
||||
/* unicast and locally administered */
|
||||
mac_addr[0] &= ~(1<<0);
|
||||
mac_addr[0] |= (1<<1);
|
||||
return mac_addr;
|
||||
}
|
||||
|
||||
void target_init(void)
|
||||
{
|
||||
|
||||
stm32_debug_init();
|
||||
|
||||
qspi_flash_init(N25Q128A_FLASH_SIZE);
|
||||
|
||||
@@ -32,29 +32,26 @@ MODULE_SRCS += \
|
||||
$(LOCAL_DIR)/usb.c \
|
||||
$(LOCAL_DIR)/memory_lcd.c \
|
||||
|
||||
ifeq ($(DISPLAY),LS013B7DH06)
|
||||
|
||||
ifneq ($(DISPLAY),)
|
||||
MODULE_DEPS += \
|
||||
lib/gfx
|
||||
|
||||
MODULE_SRCS += \
|
||||
$(LOCAL_DIR)/memory_lcd.c
|
||||
endif
|
||||
|
||||
ifeq ($(DISPLAY),LS013B7DH06)
|
||||
GLOBAL_DEFINES += \
|
||||
LCD_LS013B7DH06=1
|
||||
|
||||
MODULE_SRCS += \
|
||||
$(LOCAL_DIR)/memory_lcd.c \
|
||||
$(LOCAL_DIR)/display/LS013B7DH06.c \
|
||||
|
||||
$(LOCAL_DIR)/display/LS013B7DH06.c
|
||||
else ifeq ($(DISPLAY),LS027B7DH01)
|
||||
|
||||
MODULE_DEPS += \
|
||||
lib/gfx
|
||||
|
||||
GLOBAL_DEFINES += \
|
||||
LCD_LS027B7DH01=1
|
||||
|
||||
MODULE_SRCS += \
|
||||
$(LOCAL_DIR)/memory_lcd.c \
|
||||
$(LOCAL_DIR)/display/LS027B7DH01.c \
|
||||
|
||||
$(LOCAL_DIR)/display/LS027B7DH01.c
|
||||
endif
|
||||
|
||||
include make/module.mk
|
||||
|
||||
Reference in New Issue
Block a user