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"));
查了下,确实没什么用,好处是可以在生成的bin文件里面切换引脚信息。
https://forums.raspberrypi.com/viewtopic.php?t=311493
页:
[1]