boards/stm32: register CAN character device if configured

This commit is contained in:
raiden00pl 2022-01-05 10:47:05 +01:00 committed by David Sidrane
parent 6fe95d8314
commit a983cd2377
50 changed files with 50 additions and 50 deletions

View File

@ -60,7 +60,7 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += stm32_adc.c CSRCS += stm32_adc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -312,7 +312,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -87,7 +87,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -40,7 +40,7 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += stm32_adc.c CSRCS += stm32_adc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -186,7 +186,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -124,7 +124,7 @@ int board_app_initialize(uintptr_t arg)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -175,7 +175,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -45,7 +45,7 @@ endif
endif endif
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -320,7 +320,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -151,7 +151,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -44,7 +44,7 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += stm32_adc.c CSRCS += stm32_adc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -94,7 +94,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -100,7 +100,7 @@ int board_app_initialize(uintptr_t arg)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -56,7 +56,7 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += stm32_adc.c CSRCS += stm32_adc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -254,7 +254,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -82,7 +82,7 @@ int stm32_bringup(void)
#endif #endif
int ret; int ret;
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -26,7 +26,7 @@ ifeq ($(CONFIG_BOARDCTL),y)
CSRCS += stm32_appinit.c CSRCS += stm32_appinit.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -77,7 +77,7 @@ void weak_function stm32_spidev_initialize(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -73,7 +73,7 @@ int board_app_initialize(uintptr_t arg)
{ {
int ret; int ret;
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -44,7 +44,7 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += stm32_adc.c CSRCS += stm32_adc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -131,7 +131,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -130,7 +130,7 @@ int board_app_initialize(uintptr_t arg)
{ {
int ret; int ret;
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -48,7 +48,7 @@ ifeq ($(CONFIG_ADC),y)
CSRCS += stm32_adc.c CSRCS += stm32_adc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -316,7 +316,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -137,7 +137,7 @@ int stm32_bringup(void)
sdio_mediachange(sdio, true); sdio_mediachange(sdio, true);
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -22,7 +22,7 @@ include $(TOPDIR)/Make.defs
CSRCS = stm32_boot.c stm32_spi.c stm32_leds.c CSRCS = stm32_boot.c stm32_spi.c stm32_leds.c
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -208,7 +208,7 @@ int board_usbmsc_initialize(int port);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -87,7 +87,7 @@ int board_app_initialize(uintptr_t arg)
ret = board_composite_initialize(0); ret = board_composite_initialize(0);
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -167,7 +167,7 @@ int weak_function stm32_pwm_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -187,7 +187,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -52,7 +52,7 @@ ifeq ($(CONFIG_USBMSC),y)
CSRCS += stm32_usbmsc.c CSRCS += stm32_usbmsc.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -486,7 +486,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -212,7 +212,7 @@ int board_app_initialize(uintptr_t arg)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -44,7 +44,7 @@ ifeq ($(CONFIG_USBDEV_COMPOSITE),y)
CSRCS += stm32_composite.c CSRCS += stm32_composite.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -221,7 +221,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -279,7 +279,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -48,7 +48,7 @@ ifeq ($(CONFIG_PWM),y)
CSRCS += stm32_pwm.c CSRCS += stm32_pwm.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -305,7 +305,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -309,7 +309,7 @@ int board_app_initialize(uintptr_t arg)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -49,7 +49,7 @@ ifeq ($(CONFIG_PWM),y)
CSRCS += stm32_pwm.c CSRCS += stm32_pwm.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -333,7 +333,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -376,7 +376,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -30,7 +30,7 @@ ifeq ($(CONFIG_BOARDCTL),y)
CSRCS += stm32_appinit.c CSRCS += stm32_appinit.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -154,7 +154,7 @@ int stm32_adc_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -40,7 +40,7 @@ ifeq ($(CONFIG_ARCH_BUTTONS),y)
CSRCS += stm32_buttons.c CSRCS += stm32_buttons.c
endif endif
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -332,7 +332,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -563,7 +563,7 @@ int stm32_pwm_setup(void);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif

View File

@ -22,7 +22,7 @@ include $(TOPDIR)/Make.defs
CSRCS = stm32_boot.c stm32_bringup.c stm32_leds.c stm32_spi.c CSRCS = stm32_boot.c stm32_bringup.c stm32_leds.c stm32_spi.c
ifeq ($(CONFIG_CAN),y) ifeq ($(CONFIG_STM32_CAN_CHARDRIVER),y)
CSRCS += stm32_can.c CSRCS += stm32_can.c
endif endif

View File

@ -164,7 +164,7 @@ int stm32_bringup(void)
} }
#endif #endif
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
/* Initialize CAN and register the CAN driver. */ /* Initialize CAN and register the CAN driver. */
ret = stm32_can_setup(); ret = stm32_can_setup();

View File

@ -442,7 +442,7 @@ int stm32_sdinitialize(int minor);
* *
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_CAN #ifdef CONFIG_STM32_CAN_CHARDRIVER
int stm32_can_setup(void); int stm32_can_setup(void);
#endif #endif