File tree Expand file tree Collapse file tree
Inc/HALAL/Services/Communication/UART Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ class UART {
168168 * @return bool Returns true if the packet has been send successfully.
169169 * Returns false if the UART is busy or a problem has occurred.
170170 */
171- static bool transmit_polling (uint8_t id, uint8_t * data, size_t length);
171+ static bool transmit_polling (uint8_t id, uint8_t * data, size_t length);
172172
173173 /* *
174174 * @brief This method request the receive of size bytes
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ bool UART::transmit_polling(uint8_t id, span<uint8_t> data) {
6767 return UART::transmit_polling (id, data.data (), data.size ());
6868}
6969
70- bool UART::transmit_polling (uint8_t id, uint8_t * data, size_t length) {
70+ bool UART::transmit_polling (uint8_t id, uint8_t * data, size_t length) {
7171 if (not UART::registered_uart.contains (id))
7272 return false ; // TODO: Error handler
7373
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ TaskTimeInfo time_info[SCHEDULER_GET_LAST_N_TASKS_COUNT]{};
5252uint16_t current_time_info{0 };
5353
5454// Must be a 32 bit timer and not be the same as the scheduler timer
55- TIM_TypeDef * perf_timer{nullptr };
55+ TIM_TypeDef* perf_timer{nullptr };
5656uint8_t uart_id{0 };
5757#endif
5858
@@ -100,8 +100,7 @@ void Scheduler_start(void) {
100100 Scheduler::schedule_next_interval ();
101101}
102102
103- bool Scheduler::init_perf (TIM_TypeDef* tim32bit, UART::Peripheral* uart)
104- {
103+ bool Scheduler::init_perf (TIM_TypeDef* tim32bit, UART::Peripheral* uart) {
105104#ifdef SCHEDULER_GET_LAST_N_TASKS
106105 if (!tim32bit) {
107106 return false ;
@@ -157,7 +156,11 @@ void Scheduler::update() {
157156 }
158157
159158#if defined(SCHEDULER_GET_LAST_N_TASKS)
160- if (UART::transmit_polling (uart_id, (uint8_t *)&time_info, sizeof (TaskTimeInfo)*current_time_info)) {
159+ if (UART::transmit_polling (
160+ uart_id,
161+ (uint8_t *)&time_info,
162+ sizeof (TaskTimeInfo) * current_time_info
163+ )) {
161164 WARNING (" UART Error while trying to transmit timing info" );
162165 }
163166#endif
You can’t perform that action at this time.
0 commit comments