diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2018-01-20 22:33:54 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2018-01-20 22:33:54 +0000 |
commit | 282bc3a8f0c8357737dda060c24abb439763ffd6 (patch) | |
tree | e88d9a5b4ae6ab463a7fc42c47ebb290b240597c /os/hal/ports/AVR/XMEGA | |
parent | 386f0d66f7aa1df1e62ec3a95f10d6c70693a9a4 (diff) | |
download | ChibiOS-282bc3a8f0c8357737dda060c24abb439763ffd6.tar.gz ChibiOS-282bc3a8f0c8357737dda060c24abb439763ffd6.tar.bz2 ChibiOS-282bc3a8f0c8357737dda060c24abb439763ffd6.zip |
AVR: Cleanup code source.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11377 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/AVR/XMEGA')
-rw-r--r-- | os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/hal_lld.h | 36 | ||||
-rw-r--r-- | os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.c | 30 | ||||
-rw-r--r-- | os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.h | 26 | ||||
-rw-r--r-- | os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.c | 36 | ||||
-rw-r--r-- | os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.h | 50 |
5 files changed, 88 insertions, 90 deletions
diff --git a/os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/hal_lld.h b/os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/hal_lld.h index 11d00d915..5e21ba4c3 100644 --- a/os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/hal_lld.h +++ b/os/hal/ports/AVR/XMEGA/ATXMEGAxxxA4U/hal_lld.h @@ -25,9 +25,9 @@ #ifndef HAL_LLD_H
#define HAL_LLD_H
-/*===========================================================================*/
-/* Driver constants. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver constants. */
+/*==========================================================================*/
/**
* @brief Defines the support for realtime counters in the HAL.
@@ -39,25 +39,25 @@ */
#define PLATFORM_NAME "AVR XMEGA"
-/*===========================================================================*/
-/* Driver pre-compile time settings. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver pre-compile time settings. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Derived constants and error checks. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Derived constants and error checks. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver data structures and types. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver data structures and types. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver macros. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver macros. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* External declarations. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* External declarations. */
+/*==========================================================================*/
#ifdef __cplusplus
extern "C" {
diff --git a/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.c b/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.c index f80d5e0e1..943cfc810 100644 --- a/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.c +++ b/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.c @@ -26,25 +26,25 @@ #if HAL_USE_PAL || defined(__DOXYGEN__)
-/*===========================================================================*/
-/* Driver exported variables. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver exported variables. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver local variables and types. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local variables and types. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver local functions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local functions. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver interrupt handlers. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver interrupt handlers. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver exported functions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver exported functions. */
+/*==========================================================================*/
/**
* @brief AVR GPIO ports configuration.
diff --git a/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.h b/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.h index d552f161b..7845c2548 100644 --- a/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.h +++ b/os/hal/ports/AVR/XMEGA/LLD/GPIOv1/hal_pal_lld.h @@ -27,16 +27,16 @@ #if HAL_USE_PAL || defined(__DOXYGEN__)
-/*===========================================================================*/
-/* Unsupported modes and specific modes. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Unsupported modes and specific modes. */
+/*==========================================================================*/
#undef PAL_MODE_INPUT_PULLDOWN
#undef PAL_MODE_OUTPUT_OPENDRAIN
-/*===========================================================================*/
-/* I/O Ports Types and constants. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* I/O Ports Types and constants. */
+/*==========================================================================*/
/**
* @brief Width, in bits, of an I/O port.
@@ -177,9 +177,9 @@ typedef struct { */
typedef uint8_t ioeventmode_t;
-/*===========================================================================*/
-/* I/O Ports Identifiers. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* I/O Ports Identifiers. */
+/*==========================================================================*/
#if defined(PORTA) || defined(__DOXYGEN__)
/**
@@ -258,10 +258,10 @@ typedef uint8_t ioeventmode_t; #define IOPORT11 (&PORTL)
#endif
-/*===========================================================================*/
-/* Implementation, some of the following macros could be implemented as */
-/* functions, if so please put them in hal_pal_lld.c. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Implementation, some of the following macros could be implemented as */
+/* functions, if so please put them in hal_pal_lld.c. */
+/*==========================================================================*/
/**
* @brief Low level PAL subsystem initialization.
diff --git a/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.c b/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.c index e8db98fb9..05965164e 100644 --- a/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.c +++ b/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.c @@ -26,29 +26,29 @@ #if (OSAL_ST_MODE != OSAL_ST_MODE_NONE) || defined(__DOXYGEN__)
-/*===========================================================================*/
-/* Driver local definitions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local definitions. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver exported variables. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver exported variables. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver local types. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local types. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver local variables and types. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local variables and types. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver local functions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver local functions. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver interrupt handlers. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver interrupt handlers. */
+/*==========================================================================*/
#if (OSAL_ST_MODE == OSAL_ST_MODE_PERIODIC) || defined(__DOXYGEN__)
diff --git a/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.h b/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.h index 5b40a3cbd..2715e72c1 100644 --- a/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.h +++ b/os/hal/ports/AVR/XMEGA/LLD/TIMv1/hal_st_lld.h @@ -29,38 +29,36 @@ #include <avr/io.h>
-/*===========================================================================*/
-/* Driver constants. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver constants. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver pre-compile time settings. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver pre-compile time settings. */
+/*==========================================================================*/
/*
* TODO: for models that have many timers,
- * could add AVR_XMEGA_ST_USE_TIMER
+ * could add AVR_XMEGA_ST_USE_TIMER.
*/
-/*===========================================================================*/
-/* Derived constants and error checks. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Derived constants and error checks. */
+/*==========================================================================*/
-/*
- * TODO: error checks for valid timer selected
- */
+/* TODO: error checks for valid timer selected. */
-/*===========================================================================*/
-/* Driver data structures and types. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver data structures and types. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* Driver macros. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver macros. */
+/*==========================================================================*/
-/*===========================================================================*/
-/* External declarations. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* External declarations. */
+/*==========================================================================*/
#ifdef __cplusplus
extern "C" {
@@ -72,9 +70,9 @@ extern "C" { #define TIFR_REG TCC0.INTFLAGS
-/*===========================================================================*/
-/* Driver inline functions. */
-/*===========================================================================*/
+/*==========================================================================*/
+/* Driver inline functions. */
+/*==========================================================================*/
/**
* @brief Returns the time counter value.
@@ -142,7 +140,7 @@ static inline systime_t st_lld_get_alarm(void) { *
* @return The alarm status.
* @retval false if the alarm is not active.
- * @retval true is the alarm is active
+ * @retval true is the alarm is active.
*
* @notapi
*/
|