Skip to content

Commit be3c499

Browse files
formatting
1 parent 4e8f87e commit be3c499

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

.changesets/refactor-spi-timerwrapper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ timerwrapper:
66
- Add `set_limit_value(uint32_t arr)` to set the arr, this will likely be changed to use a `uint32_t` type only when using a 32 bit timer, for now it is just an alias to `instance->tim->ARR = arr;`.
77

88
spi:
9-
- Add `transcieve` with ptr + data explicitly instead of using a span since it's sometimes a pain in the ass to use.
9+
- Add `transcieve` with ptr + data explicitly instead of using a span since it's sometimes a pain in the ass to use.

Inc/HALAL/Models/SPI/SPI2.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,7 @@ struct SPIDomain {
701701
/**
702702
* @brief Sends and receives data over SPI in blocking mode.
703703
*/
704-
template <typename T>
705-
bool transceive(T *tx_data, T *rx_data, size_t count) {
704+
template <typename T> bool transceive(T *tx_data, T *rx_data, size_t count) {
706705
size_t size = count * sizeof(T);
707706
if (size % frame_size != 0) {
708707
ErrorHandler(

Inc/HALAL/Services/Time/TimerWrapper.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ template <const TimerDomain::Timer& dev> struct TimerWrapper {
423423
// TODO: 16 bit and 32 bit version (?)
424424
inline void set_limit_value(uint32_t arr) { instance->tim->ARR = arr; }
425425

426-
inline void set_callback(void (*callback)(void*), void *callback_data) {
426+
inline void set_callback(void (*callback)(void*), void* callback_data) {
427427
TimerDomain::callbacks[instance->timer_idx] = callback;
428428
TimerDomain::callback_data[instance->timer_idx] = callback_data;
429429
}

0 commit comments

Comments
 (0)