aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC5xx/FlexPWM_v1
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-25 10:54:02 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-03-25 10:54:02 +0000
commit814bc9e8e7f4593490f9e2e6175ad69e29e682ab (patch)
treea014a1839204fa2599e2546a13872ea9b68025c6 /os/hal/platforms/SPC5xx/FlexPWM_v1
parenta40c83be94a4d006b594711d09009afaedc0487a (diff)
downloadChibiOS-814bc9e8e7f4593490f9e2e6175ad69e29e682ab.tar.gz
ChibiOS-814bc9e8e7f4593490f9e2e6175ad69e29e682ab.tar.bz2
ChibiOS-814bc9e8e7f4593490f9e2e6175ad69e29e682ab.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5504 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/SPC5xx/FlexPWM_v1')
-rw-r--r--os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h4
-rw-r--r--os/hal/platforms/SPC5xx/FlexPWM_v1/spc5_flexpwm.h13
2 files changed, 8 insertions, 9 deletions
diff --git a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h
index 482a78527..042102977 100644
--- a/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h
+++ b/os/hal/platforms/SPC5xx/FlexPWM_v1/pwm_lld.h
@@ -20,13 +20,13 @@
* @{
*/
-#include "spc5_flexpwm.h"
-
#ifndef _PWM_LLD_H_
#define _PWM_LLD_H_
#if HAL_USE_PWM || defined(__DOXYGEN__)
+#include "spc5_flexpwm.h"
+
/*===========================================================================*/
/* Driver constants. */
/*===========================================================================*/
diff --git a/os/hal/platforms/SPC5xx/FlexPWM_v1/spc5_flexpwm.h b/os/hal/platforms/SPC5xx/FlexPWM_v1/spc5_flexpwm.h
index b13787a64..86b480f52 100644
--- a/os/hal/platforms/SPC5xx/FlexPWM_v1/spc5_flexpwm.h
+++ b/os/hal/platforms/SPC5xx/FlexPWM_v1/spc5_flexpwm.h
@@ -13,15 +13,15 @@
*/
/**
- * @file FlexPWM_v1/flexpwm.h
+ * @file FlexPWM_v1/spc5_flexpwm.h
* @brief SPC5xx FlexPWM header file.
*
* @addtogroup PWM
* @{
*/
-#ifndef _FLEXPWM_H_
-#define _FLEXPWM_H_
+#ifndef _SPC5_FLEXPWM_H_
+#define _SPC5_FLEXPWM_H_
/*===========================================================================*/
/* Driver constants. */
@@ -466,7 +466,6 @@ struct spc5_flexpwm {
} FFILT; /* Fault FilterRegister */
};
-/* end of FLEXPWM_tag */
/*===========================================================================*/
/* Driver macros. */
@@ -476,15 +475,15 @@ struct spc5_flexpwm {
* @name FlexPWM units references
* @{
*/
-#if SPC5_HAS_FLEXPWM0
+#if SPC5_HAS_FLEXPWM0 || defined(__DOXYGEN__)
#define SPC5_FLEXPWM_0 (*(volatile struct spc5_flexpwm *)0xFFE24000UL)
#endif
-#if SPC5_HAS_FLEXPWM1
+#if SPC5_HAS_FLEXPWM1 || defined(__DOXYGEN__)
#define SPC5_FLEXPWM_1 (*(volatile struct spc5_flexpwm *)0xFFE28000UL)
#endif
/** @} */
-#endif /* _FLEXPWM_H_ */
+#endif /* _SPC5_FLEXPWM_H_ */
/** @} */