We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0178974 commit ebc18f5Copy full SHA for ebc18f5
1 file changed
Inc/HALAL/Models/SPI/SPI2.hpp
@@ -1238,10 +1238,10 @@ struct SPIDomain {
1238
);
1239
return false;
1240
}
1241
- auto error_code = HAL_SPI_TransmitReceive_DMA(
+ auto error_code = HAL_SPI_TransmitReceive_DMA( // (TODO) These functions should actually allow volatiles
1242
&spi_instance.hspi,
1243
- const_cast<uint8_t*>(reinterpret_cast<const volatile uint8_t*>(&tx_data)),
1244
- const_cast<uint8_t*>(reinterpret_cast<volatile uint8_t*>(&rx_data)),
+ reinterpret_cast<const uint8_t*>(&tx_data),
+ reinterpret_cast<uint8_t*>(&rx_data),
1245
size / frame_size
1246
1247
return check_error_code(error_code);
0 commit comments