Some chips have SPI peripherals that can vary in max frequency. For instance, the nRF52840 has 8MHz max normally, but has one that can do 32Mhz. Currently we have no way to specify which we would prefer at construction.
It would also be nice to specify the starting frequency in the constructor, rather than having to call configure(). The other configure() args could also be passed in, but that's less important.
Also, I'm not sure why it's called baudrate instead of frequency for SPI. We could change it, though maybe it's not worth it.
Some chips have SPI peripherals that can vary in max frequency. For instance, the nRF52840 has 8MHz max normally, but has one that can do 32Mhz. Currently we have no way to specify which we would prefer at construction.
It would also be nice to specify the starting frequency in the constructor, rather than having to call
configure(). The otherconfigure()args could also be passed in, but that's less important.Also, I'm not sure why it's called
baudrateinstead offrequencyfor SPI. We could change it, though maybe it's not worth it.