diff options
author | Fabien Poussin <fabien.poussin@gmail.com> | 2017-02-07 10:58:11 +0100 |
---|---|---|
committer | Fabien Poussin <fabien.poussin@gmail.com> | 2017-02-07 10:58:11 +0100 |
commit | 7059c87ab4f237187bab6db709280de3a6b8ea6b (patch) | |
tree | 941254f0209eca238938debf632bd201b2b593b0 /os/hal | |
parent | 86428716d531d10261170eb990e6f60938e3cfd7 (diff) | |
download | ChibiOS-Contrib-7059c87ab4f237187bab6db709280de3a6b8ea6b.tar.gz ChibiOS-Contrib-7059c87ab4f237187bab6db709280de3a6b8ea6b.tar.bz2 ChibiOS-Contrib-7059c87ab4f237187bab6db709280de3a6b8ea6b.zip |
[COMP] Fixing headers, missing includes.
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/include/hal_community.h | 5 | ||||
-rw-r--r-- | os/hal/include/hal_comp.h | 9 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h | 10 |
3 files changed, 14 insertions, 10 deletions
diff --git a/os/hal/include/hal_community.h b/os/hal/include/hal_community.h index 430df7c..cdedad6 100644 --- a/os/hal/include/hal_community.h +++ b/os/hal/include/hal_community.h @@ -71,6 +71,10 @@ #define HAL_USE_USB_MSD FALSE
#endif
+#if !defined(HAL_USE_COMP)
+#define HAL_USE_COMP FALSE
+#endif
+
/* Abstract interfaces.*/
/* Shared headers.*/
@@ -82,6 +86,7 @@ #include "hal_usbh.h"
#include "hal_timcap.h"
#include "hal_qei.h"
+#include "hal_comp.h"
/* Complex drivers.*/
#include "hal_onewire.h"
diff --git a/os/hal/include/hal_comp.h b/os/hal/include/hal_comp.h index 045cef0..835704d 100644 --- a/os/hal/include/hal_comp.h +++ b/os/hal/include/hal_comp.h @@ -50,13 +50,12 @@ typedef enum { } compstate_t; /** - * @brief Type of a structure representing an TIMCAP driver. + * @brief Type of a structure representing an COMP driver. */ typedef struct COMPDriver COMPDriver; - /** - * @brief TIMCAP notification callback type. + * @brief COMP notification callback type. * * @param[in] comp pointer to a @p COMPDriver object */ @@ -79,7 +78,7 @@ typedef void (*compcallback_t)(COMPDriver *comp); * * @iclass */ -#define timcapEnableI(comp) comp_lld_enable(comp) +#define compEnableI(comp) comp_lld_enable(comp) /** * @brief Disables the input capture. @@ -88,7 +87,7 @@ typedef void (*compcallback_t)(COMPDriver *comp); * * @iclass */ -#define timcapDisableI(comp) comp_lld_disable(comp) +#define compDisableI(comp) comp_lld_disable(comp) /** @} */ diff --git a/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h b/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h index 4b66c52..0ecdca2 100644 --- a/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h +++ b/os/hal/ports/STM32/LLD/COMPv1/hal_comp_lld.h @@ -238,7 +238,7 @@ typedef struct { } COMPConfig; /** - * @brief Structure representing an TIMCAP driver. + * @brief Structure representing an COMP driver. */ struct COMPDriver { /** @@ -299,10 +299,10 @@ extern COMPDriver COMPD7; extern "C" { #endif void comp_lld_init(void); - void comp_lld_start(COMPDriver *timcapp); - void comp_lld_stop(COMPDriver *timcapp); - void comp_lld_enable(COMPDriver *timcapp); - void comp_lld_disable(COMPDriver *timcapp); + void comp_lld_start(COMPDriver *compp); + void comp_lld_stop(COMPDriver *compp); + void comp_lld_enable(COMPDriver *compp); + void comp_lld_disable(COMPDriver *compp); #ifdef __cplusplus } #endif |