aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/templates/halconf.h16
-rw-r--r--os/hal/templates/platform.mk20
2 files changed, 28 insertions, 8 deletions
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index f05719132..d98142128 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -69,28 +69,28 @@
* @brief Enables the EXT subsystem.
*/
#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
-#define HAL_USE_EXT FALSE
+#define HAL_USE_EXT TRUE
#endif
/**
* @brief Enables the GPT subsystem.
*/
#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
-#define HAL_USE_GPT FALSE
+#define HAL_USE_GPT TRUE
#endif
/**
* @brief Enables the I2C subsystem.
*/
#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
-#define HAL_USE_I2C FALSE
+#define HAL_USE_I2C TRUE
#endif
/**
* @brief Enables the ICU subsystem.
*/
#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
-#define HAL_USE_ICU FALSE
+#define HAL_USE_ICU TRUE
#endif
/**
@@ -118,14 +118,14 @@
* @brief Enables the RTC subsystem.
*/
#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
-#define HAL_USE_RTC FALSE
+#define HAL_USE_RTC TRUE
#endif
/**
* @brief Enables the SDC subsystem.
*/
#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
-#define HAL_USE_SDC FALSE
+#define HAL_USE_SDC TRUE
#endif
/**
@@ -229,7 +229,7 @@
* @brief Enables an event sources for incoming packets.
*/
#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
-#define MAC_USE_ZERO_COPY FALSE
+#define MAC_USE_ZERO_COPY TRUE
#endif
/**
@@ -281,7 +281,7 @@
* at @p FALSE.
*/
#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
-#define SDC_MMC_SUPPORT FALSE
+#define SDC_MMC_SUPPORT TRUE
#endif
/**
diff --git a/os/hal/templates/platform.mk b/os/hal/templates/platform.mk
new file mode 100644
index 000000000..6c81166bb
--- /dev/null
+++ b/os/hal/templates/platform.mk
@@ -0,0 +1,20 @@
+# List of all the template platform files.
+PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/templates/hal_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/adc_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/can_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/ext_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/gpt_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/i2c_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/icu_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/mac_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/pal_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/pwm_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/rtc_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/sdc_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/serial_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/spi_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/uart_lld.c \
+ ${CHIBIOS}/os/hal/platforms/templates/usb_lld.c
+
+# Required include directories
+PLATFORMINC = ${CHIBIOS}/os/hal/platforms/templates