-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Not sure why, but the SPISettings(...) function call required the following changes to compile for me:
void SpiInterface::setup(tmc51x0::SpiParameters spi_parameters)
{
interface_mode = Interface::SPI;
spi_parameters_ = spi_parameters;
spi_settings_ = SPISettings((uint32_t)spi_parameters.clock_rate,
(BitOrder)spi_parameters.bit_order,
(uint8_t)spi_parameters.data_mode);
pinMode(spi_parameters_.chip_select_pin, OUTPUT);
disableChipSelect();
}
I had to do something similar in the UartInterface as well, but I am using SPI so I haven't tested it:
digitalWriteFast((PinName)uart_parameters_.enable_txrx_pin, ENABLE_TX_DISABLE_RX_PIN_VALUE);
Metadata
Metadata
Assignees
Labels
No labels