S105: initial support (#4925)
* Makefile: show CPU_HWLAYER directory * s105: support
This commit is contained in:
parent
92545e38ff
commit
31982de89c
|
@ -223,6 +223,7 @@ endif
|
||||||
|
|
||||||
$(info PROJECT_BOARD: $(PROJECT_BOARD))
|
$(info PROJECT_BOARD: $(PROJECT_BOARD))
|
||||||
$(info PROJECT_CPU: $(PROJECT_CPU))
|
$(info PROJECT_CPU: $(PROJECT_CPU))
|
||||||
|
$(info CPU_HWLAYER: $(CPU_HWLAYER))
|
||||||
$(info CONFDIR: $(CONFDIR))
|
$(info CONFDIR: $(CONFDIR))
|
||||||
$(info LDSCRIPT: $(LDSCRIPT))
|
$(info LDSCRIPT: $(LDSCRIPT))
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
BOARD_DIR = $(PROJECT_DIR)/config/boards/$(PROJECT_BOARD)
|
||||||
|
|
||||||
|
HALCONFDIR = $(BOARD_DIR)
|
||||||
|
|
||||||
|
# List of all the board related files.
|
||||||
|
BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp
|
||||||
|
|
||||||
|
#This board has no LED
|
||||||
|
DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::Unassigned
|
||||||
|
|
||||||
|
#This board has no USB wired out
|
||||||
|
DDEFS += -DSTM32_USB_USE_OTG1=FALSE
|
||||||
|
DDEFS += -DSTM32_USB_USE_OTG2=FALSE
|
||||||
|
|
||||||
|
# This board has no storage
|
||||||
|
DDEFS += -DEFI_FILE_LOGGING=FALSE
|
||||||
|
USE_FATFS = no
|
||||||
|
|
||||||
|
DDEFS += -DFIRMWARE_ID=\"s105\"
|
||||||
|
DDEFS += -DDEFAULT_ENGINE_TYPE=MINIMAL_PINS
|
||||||
|
|
||||||
|
# Required include directories
|
||||||
|
BOARDINC = $(BOARD_DIR)
|
||||||
|
|
||||||
|
# Shared variables
|
||||||
|
# Add board's directory first in include dir list so files in board directory will be included instead of default
|
||||||
|
ALLINC += $(BOARDINC)
|
|
@ -0,0 +1,12 @@
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Board-specific configuration defaults.
|
||||||
|
* @todo Add your board-specific code, if any.
|
||||||
|
*/
|
||||||
|
void setBoardDefaultConfiguration() {
|
||||||
|
/* No LEDs on this board */
|
||||||
|
engineConfiguration->communicationLedPin = Gpio::Unassigned;
|
||||||
|
engineConfiguration->runningLedPin = Gpio::Unassigned;
|
||||||
|
engineConfiguration->warningLedPin = Gpio::Unassigned;
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export EXTRA_PARAMS="-DDUMMY"
|
||||||
|
|
||||||
|
bash ../common_make.sh s105 ARCH_STM32F4
|
|
@ -0,0 +1,19 @@
|
||||||
|
/**
|
||||||
|
* @file boards/S105/efifeatures.h
|
||||||
|
*
|
||||||
|
* @brief In this header we can override efifeatures.h.
|
||||||
|
*
|
||||||
|
* @date Jan 01, 2023
|
||||||
|
* @author Andrey Gusakov, 2023
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "../../stm32f4ems/efifeatures.h"
|
||||||
|
|
||||||
|
#ifndef EFIFEATURES_S105_H_
|
||||||
|
#define EFIFEATURES_S105_H_
|
||||||
|
|
||||||
|
/* This board has no USB wired out */
|
||||||
|
#undef EFI_USB_SERIAL
|
||||||
|
#define EFI_USB_SERIAL FALSE
|
||||||
|
|
||||||
|
#endif /* EFIFEATURES_S105_H_ */
|
Loading…
Reference in New Issue