aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates')
-rw-r--r--os/hal/templates/adc_lld.c2
-rw-r--r--os/hal/templates/adc_lld.h2
-rw-r--r--os/hal/templates/can_lld.c2
-rw-r--r--os/hal/templates/can_lld.h2
-rw-r--r--os/hal/templates/hal_lld.c2
-rw-r--r--os/hal/templates/hal_lld.h2
-rw-r--r--os/hal/templates/halconf.h151
-rw-r--r--os/hal/templates/i2c_lld.c2
-rw-r--r--os/hal/templates/i2c_lld.h2
-rw-r--r--os/hal/templates/mac_lld.c2
-rw-r--r--os/hal/templates/mac_lld.h2
-rw-r--r--os/hal/templates/meta/driver_lld.c2
-rw-r--r--os/hal/templates/meta/driver_lld.h2
-rw-r--r--os/hal/templates/pal_lld.c2
-rw-r--r--os/hal/templates/pal_lld.h2
-rw-r--r--os/hal/templates/pwm_lld.c2
-rw-r--r--os/hal/templates/pwm_lld.h6
-rw-r--r--os/hal/templates/serial_lld.c2
-rw-r--r--os/hal/templates/serial_lld.h2
-rw-r--r--os/hal/templates/spi_lld.c2
-rw-r--r--os/hal/templates/spi_lld.h2
-rw-r--r--os/hal/templates/uart_lld.c2
-rw-r--r--os/hal/templates/uart_lld.h2
23 files changed, 104 insertions, 95 deletions
diff --git a/os/hal/templates/adc_lld.c b/os/hal/templates/adc_lld.c
index 38a1915eb..5ea8e9585 100644
--- a/os/hal/templates/adc_lld.c
+++ b/os/hal/templates/adc_lld.c
@@ -21,7 +21,7 @@
* @file templates/adc_lld.c
* @brief ADC Driver subsystem low level driver source template.
*
- * @addtogroup ADC_LLD
+ * @addtogroup ADC
* @{
*/
diff --git a/os/hal/templates/adc_lld.h b/os/hal/templates/adc_lld.h
index 9f436ffbc..dc2c76f07 100644
--- a/os/hal/templates/adc_lld.h
+++ b/os/hal/templates/adc_lld.h
@@ -21,7 +21,7 @@
* @file templates/adc_lld.h
* @brief ADC Driver subsystem low level driver header template.
*
- * @addtogroup ADC_LLD
+ * @addtogroup ADC
* @{
*/
diff --git a/os/hal/templates/can_lld.c b/os/hal/templates/can_lld.c
index dca401bd4..ae5fab9d7 100644
--- a/os/hal/templates/can_lld.c
+++ b/os/hal/templates/can_lld.c
@@ -21,7 +21,7 @@
* @file templates/can_lld.c
* @brief CAN Driver subsystem low level driver source template.
*
- * @addtogroup CAN_LLD
+ * @addtogroup CAN
* @{
*/
diff --git a/os/hal/templates/can_lld.h b/os/hal/templates/can_lld.h
index afca6821e..312a664f6 100644
--- a/os/hal/templates/can_lld.h
+++ b/os/hal/templates/can_lld.h
@@ -21,7 +21,7 @@
* @file templates/can_lld.h
* @brief CAN Driver subsystem low level driver header template.
*
- * @addtogroup CAN_LLD
+ * @addtogroup CAN
* @{
*/
diff --git a/os/hal/templates/hal_lld.c b/os/hal/templates/hal_lld.c
index 3531f16c0..c0e561337 100644
--- a/os/hal/templates/hal_lld.c
+++ b/os/hal/templates/hal_lld.c
@@ -21,7 +21,7 @@
* @file templates/hal_lld.c
* @brief HAL Driver subsystem low level driver source template.
*
- * @addtogroup HAL_LLD
+ * @addtogroup HAL
* @{
*/
diff --git a/os/hal/templates/hal_lld.h b/os/hal/templates/hal_lld.h
index dc8b3f143..ad78ba56b 100644
--- a/os/hal/templates/hal_lld.h
+++ b/os/hal/templates/hal_lld.h
@@ -21,7 +21,7 @@
* @file templates/hal_lld.h
* @brief HAL subsystem low level driver header template.
*
- * @addtogroup HAL_LLD
+ * @addtogroup HAL
* @{
*/
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index dda173a31..20cd4c54e 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -37,10 +37,6 @@
#include "mcuconf.h"
-/*===========================================================================*/
-/* PAL driver related settings. */
-/*===========================================================================*/
-
/**
* @brief Enables the PAL subsystem.
*/
@@ -48,10 +44,6 @@
#define CH_HAL_USE_PAL TRUE
#endif
-/*===========================================================================*/
-/* ADC driver related settings. */
-/*===========================================================================*/
-
/**
* @brief Enables the ADC subsystem.
*/
@@ -60,17 +52,6 @@
#endif
/**
- * @brief Inclusion of the @p adcWaitConversion() function.
- */
-#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
-#define ADC_USE_WAIT TRUE
-#endif
-
-/*===========================================================================*/
-/* CAN driver related settings. */
-/*===========================================================================*/
-
-/**
* @brief Enables the CAN subsystem.
*/
#if !defined(CH_HAL_USE_CAN) || defined(__DOXYGEN__)
@@ -78,27 +59,12 @@
#endif
/**
- * @brief Sleep mode related APIs inclusion switch.
- */
-#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
-#define CAN_USE_SLEEP_MODE TRUE
-#endif
-
-/*===========================================================================*/
-/* MAC driver related settings. */
-/*===========================================================================*/
-
-/**
* @brief Enables the MAC subsystem.
*/
#if !defined(CH_HAL_USE_MAC) || defined(__DOXYGEN__)
#define CH_HAL_USE_MAC TRUE
#endif
-/*===========================================================================*/
-/* PWM driver related settings. */
-/*===========================================================================*/
-
/**
* @brief Enables the PWM subsystem.
*/
@@ -106,10 +72,6 @@
#define CH_HAL_USE_PWM TRUE
#endif
-/*===========================================================================*/
-/* SERIAL driver related settings. */
-/*===========================================================================*/
-
/**
* @brief Enables the SERIAL subsystem.
*/
@@ -118,63 +80,65 @@
#endif
/**
- * @brief Default bit rate.
- * @details Configuration parameter, this is the baud rate selected for the
- * default configuration.
+ * @brief Enables the SPI subsystem.
*/
-#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
-#define SERIAL_DEFAULT_BITRATE 38400
+#if !defined(CH_HAL_USE_SPI) || defined(__DOXYGEN__)
+#define CH_HAL_USE_SPI TRUE
#endif
/**
- * @brief Serial buffers size.
- * @details Configuration parameter, you can change the depth of the queue
- * buffers depending on the requirements of your application.
- * @note The default is 64 bytes for both the transmission and receive
- * buffers.
+ * @brief Enables the MMC_SPI subsystem.
*/
-#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
-#define SERIAL_BUFFERS_SIZE 16
+#if !defined(CH_HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
+#define CH_HAL_USE_MMC_SPI TRUE
#endif
-/*===========================================================================*/
-/* SPI driver related settings. */
-/*===========================================================================*/
-
/**
- * @brief Enables the SPI subsystem.
+ * @brief Enables the UART subsystem.
*/
-#if !defined(CH_HAL_USE_SPI) || defined(__DOXYGEN__)
-#define CH_HAL_USE_SPI TRUE
+#if !defined(CH_HAL_USE_UART) || defined(__DOXYGEN__)
+#define CH_HAL_USE_UART TRUE
#endif
+/*===========================================================================*/
+/* ADC driver related settings. */
+/*===========================================================================*/
+
/**
- * @brief Enables the "wait" APIs.
+ * @brief Enables synchronous APIs.
* @note Disabling this option saves both code and data space.
*/
-#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
-#define SPI_USE_WAIT TRUE
+#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
+#define ADC_USE_WAIT TRUE
#endif
/**
- * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
+ * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
* @note Disabling this option saves both code and data space.
*/
-#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
-#define SPI_USE_MUTUAL_EXCLUSION TRUE
+#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define ADC_USE_MUTUAL_EXCLUSION TRUE
#endif
/*===========================================================================*/
-/* MMC_SPI driver related settings. */
+/* CAN driver related settings. */
/*===========================================================================*/
/**
- * @brief Enables the MMC_SPI subsystem.
+ * @brief Sleep mode related APIs inclusion switch.
*/
-#if !defined(CH_HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
-#define CH_HAL_USE_MMC_SPI TRUE
+#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
+#define CAN_USE_SLEEP_MODE TRUE
#endif
+/*===========================================================================*/
+/* MAC driver related settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* MMC_SPI driver related settings. */
+/*===========================================================================*/
+
/**
* @brief Block size for MMC transfers.
*/
@@ -210,16 +174,61 @@
#endif
/*===========================================================================*/
-/* UART driver related settings. */
+/* PAL driver related settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* PWM driver related settings. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* SERIAL driver related settings. */
/*===========================================================================*/
/**
- * @brief Enables the UART subsystem.
+ * @brief Default bit rate.
+ * @details Configuration parameter, this is the baud rate selected for the
+ * default configuration.
*/
-#if !defined(CH_HAL_USE_UART) || defined(__DOXYGEN__)
-#define CH_HAL_USE_UART TRUE
+#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
+#define SERIAL_DEFAULT_BITRATE 38400
+#endif
+
+/**
+ * @brief Serial buffers size.
+ * @details Configuration parameter, you can change the depth of the queue
+ * buffers depending on the requirements of your application.
+ * @note The default is 64 bytes for both the transmission and receive
+ * buffers.
+ */
+#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
+#define SERIAL_BUFFERS_SIZE 16
+#endif
+
+/*===========================================================================*/
+/* SPI driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
+#define SPI_USE_WAIT TRUE
+#endif
+
+/**
+ * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define SPI_USE_MUTUAL_EXCLUSION TRUE
#endif
+/*===========================================================================*/
+/* UART driver related settings. */
+/*===========================================================================*/
+
#endif /* _HALCONF_H_ */
/** @} */
diff --git a/os/hal/templates/i2c_lld.c b/os/hal/templates/i2c_lld.c
index 479c9a3cc..8c8e47b76 100644
--- a/os/hal/templates/i2c_lld.c
+++ b/os/hal/templates/i2c_lld.c
@@ -21,7 +21,7 @@
* @file templates/i2c_lld.c
* @brief I2C Driver subsystem low level driver source template.
*
- * @addtogroup I2C_LLD
+ * @addtogroup I2C
* @{
*/
diff --git a/os/hal/templates/i2c_lld.h b/os/hal/templates/i2c_lld.h
index bf7a64082..29914705d 100644
--- a/os/hal/templates/i2c_lld.h
+++ b/os/hal/templates/i2c_lld.h
@@ -21,7 +21,7 @@
* @file templates/i2c_lld.h
* @brief I2C Driver subsystem low level driver header template.
*
- * @addtogroup I2C_LLD
+ * @addtogroup I2C
* @{
*/
diff --git a/os/hal/templates/mac_lld.c b/os/hal/templates/mac_lld.c
index 864cb76c0..b1fb040e6 100644
--- a/os/hal/templates/mac_lld.c
+++ b/os/hal/templates/mac_lld.c
@@ -21,7 +21,7 @@
* @file templates/mac_lld.c
* @brief MAC Driver subsystem low level driver source template.
*
- * @addtogroup MAC_LLD
+ * @addtogroup MAC
* @{
*/
diff --git a/os/hal/templates/mac_lld.h b/os/hal/templates/mac_lld.h
index ecd1b4339..0d3a68696 100644
--- a/os/hal/templates/mac_lld.h
+++ b/os/hal/templates/mac_lld.h
@@ -21,7 +21,7 @@
* @file templates/mac_lld.h
* @brief MAC Driver subsystem low level driver header template.
*
- * @addtogroup MAC_LLD
+ * @addtogroup MAC
* @{
*/
diff --git a/os/hal/templates/meta/driver_lld.c b/os/hal/templates/meta/driver_lld.c
index b1129f2d2..bbac5511e 100644
--- a/os/hal/templates/meta/driver_lld.c
+++ b/os/hal/templates/meta/driver_lld.c
@@ -21,7 +21,7 @@
* @file templates/xxx_lld.c
* @brief XXX Driver subsystem low level driver source template.
*
- * @addtogroup XXX_LLD
+ * @addtogroup XXX
* @{
*/
diff --git a/os/hal/templates/meta/driver_lld.h b/os/hal/templates/meta/driver_lld.h
index 967da13a7..d57504373 100644
--- a/os/hal/templates/meta/driver_lld.h
+++ b/os/hal/templates/meta/driver_lld.h
@@ -21,7 +21,7 @@
* @file templates/xxx_lld.h
* @brief XXX Driver subsystem low level driver header template.
*
- * @addtogroup XXX_LLD
+ * @addtogroup XXX
* @{
*/
diff --git a/os/hal/templates/pal_lld.c b/os/hal/templates/pal_lld.c
index 9a2abb6b2..2b2d17459 100644
--- a/os/hal/templates/pal_lld.c
+++ b/os/hal/templates/pal_lld.c
@@ -21,7 +21,7 @@
* @file templates/pal_lld.c
* @brief PAL subsystem low level driver template.
*
- * @addtogroup PAL_LLD
+ * @addtogroup PAL
* @{
*/
diff --git a/os/hal/templates/pal_lld.h b/os/hal/templates/pal_lld.h
index 7025bdbc6..38990ddd9 100644
--- a/os/hal/templates/pal_lld.h
+++ b/os/hal/templates/pal_lld.h
@@ -21,7 +21,7 @@
* @file templates/pal_lld.h
* @brief PAL subsystem low level driver header template.
*
- * @addtogroup PAL_LLD
+ * @addtogroup PAL
* @{
*/
diff --git a/os/hal/templates/pwm_lld.c b/os/hal/templates/pwm_lld.c
index d71427cb2..2fa907ec1 100644
--- a/os/hal/templates/pwm_lld.c
+++ b/os/hal/templates/pwm_lld.c
@@ -21,7 +21,7 @@
* @file templates/pwm_lld.c
* @brief PWM Driver subsystem low level driver source template.
*
- * @addtogroup PWM_LLD
+ * @addtogroup PWM
* @{
*/
diff --git a/os/hal/templates/pwm_lld.h b/os/hal/templates/pwm_lld.h
index 07ce6eb06..499d6e11c 100644
--- a/os/hal/templates/pwm_lld.h
+++ b/os/hal/templates/pwm_lld.h
@@ -21,7 +21,7 @@
* @file templates/pwm_lld.h
* @brief PWM Driver subsystem low level driver header template.
*
- * @addtogroup PWM_LLD
+ * @addtogroup PWM
* @{
*/
@@ -148,7 +148,7 @@ struct PWMDriver {
*
* @api
*/
-#define PWM_DEGREES_TO_WIDTH(pwpm, degrees) 0
+#define PWM_DEGREES_TO_WIDTH(pwmp, degrees) 0
/**
* @brief Converts from percentage to pulse width.
@@ -163,7 +163,7 @@ struct PWMDriver {
*
* @api
*/
-#define PWM_PERCENTAGE_TO_WIDTH(pwpm, percentage) 0
+#define PWM_PERCENTAGE_TO_WIDTH(pwmp, percentage) 0
/*===========================================================================*/
/* External declarations. */
diff --git a/os/hal/templates/serial_lld.c b/os/hal/templates/serial_lld.c
index 39b1f6bc4..6bb863362 100644
--- a/os/hal/templates/serial_lld.c
+++ b/os/hal/templates/serial_lld.c
@@ -21,7 +21,7 @@
* @file templates/serial_lld.c
* @brief Serial Driver subsystem low level driver source template.
*
- * @addtogroup SERIAL_LLD
+ * @addtogroup SERIAL
* @{
*/
diff --git a/os/hal/templates/serial_lld.h b/os/hal/templates/serial_lld.h
index fe05d864b..5e225f962 100644
--- a/os/hal/templates/serial_lld.h
+++ b/os/hal/templates/serial_lld.h
@@ -21,7 +21,7 @@
* @file templates/serial_lld.h
* @brief Serial Driver subsystem low level driver header template.
*
- * @addtogroup SERIAL_LLD
+ * @addtogroup SERIAL
* @{
*/
diff --git a/os/hal/templates/spi_lld.c b/os/hal/templates/spi_lld.c
index d2a9f9557..1fca51d41 100644
--- a/os/hal/templates/spi_lld.c
+++ b/os/hal/templates/spi_lld.c
@@ -21,7 +21,7 @@
* @file templates/spi_lld.c
* @brief SPI Driver subsystem low level driver source template.
*
- * @addtogroup SPI_LLD
+ * @addtogroup SPI
* @{
*/
diff --git a/os/hal/templates/spi_lld.h b/os/hal/templates/spi_lld.h
index a9aeca56f..7fff799d1 100644
--- a/os/hal/templates/spi_lld.h
+++ b/os/hal/templates/spi_lld.h
@@ -21,7 +21,7 @@
* @file templates/spi_lld.h
* @brief SPI Driver subsystem low level driver header template.
*
- * @addtogroup SPI_LLD
+ * @addtogroup SPI
* @{
*/
diff --git a/os/hal/templates/uart_lld.c b/os/hal/templates/uart_lld.c
index 3180ee8e7..2c317b677 100644
--- a/os/hal/templates/uart_lld.c
+++ b/os/hal/templates/uart_lld.c
@@ -21,7 +21,7 @@
* @file templates/uart_lld.c
* @brief UART Driver subsystem low level driver source template.
*
- * @addtogroup UART_LLD
+ * @addtogroup UART
* @{
*/
diff --git a/os/hal/templates/uart_lld.h b/os/hal/templates/uart_lld.h
index 0b9a934f2..617c56166 100644
--- a/os/hal/templates/uart_lld.h
+++ b/os/hal/templates/uart_lld.h
@@ -21,7 +21,7 @@
* @file templates/uart_lld.h
* @brief UART Driver subsystem low level driver header template.
*
- * @addtogroup UART_LLD
+ * @addtogroup UART
* @{
*/