mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 05:57:16 +00:00
stm32 COMP: Logic in stm32_comp.h must be configured on CONFIG_STM32_COMP or otherwise it causes an error via #error on every platform without COMP support.
This commit is contained in:
parent
f3b10eb073
commit
ebd2416f9d
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,8 @@
|
|||
|
||||
#include "chip.h"
|
||||
|
||||
#ifdef CONFIG_STM32_COMP
|
||||
|
||||
#if defined(CONFIG_STM32_STM32F30XX)
|
||||
# error "COMP support for STM32F30XX not implemented yet"
|
||||
#elif defined(CONFIG_STM32_STM32F33XX)
|
||||
|
|
@ -211,4 +213,5 @@ FAR struct comp_dev_s* stm32_compinitialize(int intf);
|
|||
#endif
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* CONFIG_STM23_COMP */
|
||||
#endif /* __ARCH_ARM_SRC_STM32_STM32_COMP_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue