armfly 发表于 2022-3-15 21:26:32

bi_decl 是干啥用的,感觉用不到




    // Make the SPI pins available to picotool
    bi_decl(bi_3pins_with_func(SPI_RX_PIN, SPI_TX_PIN, SPI_SCK_PIN, GPIO_FUNC_SPI));


    // Make the CS pin available to picotool
    bi_decl(bi_1pin_with_name(SPI_CSN_PIN, "SPI CS"));




eric2013 发表于 2022-3-15 22:35:12

查了下,确实没什么用,好处是可以在生成的bin文件里面切换引脚信息。

https://forums.raspberrypi.com/viewtopic.php?t=311493
页: [1]
查看完整版本: bi_decl 是干啥用的,感觉用不到