首页 文章

linux spi驱动程序CONFIG

提问于
浏览
0

我是Linux和内核编译的新手 . 我想在我的设备中添加SPI支持 - 它的带有LCD的stm32f429-disco评估板 . 我在这里找到了整个项目:https://github.com/jserv/stm32f429-linux-builder,编译它并且它工作(内核源代码是https://github.com/robutest/uclinux),但我不知道如何在https://github.com/jserv/stm32f429-linux-builder/blob/master/configs/kernel_config中设置CONFIG_STM32_SPI1标志(https://github.com/robutest/uclinux/blob/master/arch/arm/mach-stm32/spi.c line:45) .

我检查了https://github.com/robutest/uclinux/blob/master/arch/arm/mach-stm32/Kconfighttps://github.com/robutest/uclinux/blob/master/arch/arm/mach-stm32/Makefile并且配置标志看起来没问题 . 手动将CONFIG_SPI_STM32和CONFIG_STM32_SPI1添加到"kernel_config"不起作用 . 编译器从此文件中删除两个标志 .

为什么CONFIG_STM32_SPIx和CONFIG_SPI_STM32条目甚至不像原始“kernel_config”文件中的其他条目“#CONFIG_STM32_USART1未设置”一样可见(我在'make menuconfig'中也找不到STM32-SPI)?

1 回答

  • 1

    根据您提供的内容,我建议添加到您的defconfig,即您正在使用的项目中的 kernel_config 文件:

    CONFIG_SPI = y CONFIG_SPI_STM32 = y CONFIG_STM32_SPI1 = y

相关问题