diff options
Diffstat (limited to 'nuttx/configs/olimex-stm32-h405/src/stm32_nsh.c')
-rw-r--r-- | nuttx/configs/olimex-stm32-h405/src/stm32_nsh.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/configs/olimex-stm32-h405/src/stm32_nsh.c b/nuttx/configs/olimex-stm32-h405/src/stm32_nsh.c index 73f7923f1..d5a65abd4 100644 --- a/nuttx/configs/olimex-stm32-h405/src/stm32_nsh.c +++ b/nuttx/configs/olimex-stm32-h405/src/stm32_nsh.c @@ -59,6 +59,10 @@ * Pre-Processor Definitions ****************************************************************************/ +#if !defined(CONFIG_STM32_CAN1) && !defined(CONFIG_STM32_CAN2) +# undef CONFIG_CAN +#endif + /**************************************************************************** * Public Functions ****************************************************************************/ @@ -84,7 +88,7 @@ int nsh_archinitialize(void) int ret; #endif -#if defined(CONFIG_CAN) && (defined(CONFIG_STM32_CAN1) || defined(CONFIG_STM32_CAN2)) +#ifdef CONFIG_CAN /* Configure on-board CAN if CAN support has been selected. */ ret = stm32_can_initialize(); |