Cosa
Cosa copied to clipboard
Refactoring: Allow multiple TWI/SPI modules
The TWI/SPI device drivers assume a single bus/module, i.e. global instances spi and twi. This should be refactored to a member variable with reference to the global instance (and set by the constructor).