stm32f103rb_hal_blink

Non-blocking, event triggered blink example using HAL library
Index Commits Files Refs README
app/src/task_actuator_interface.c (633B)
   1 /*
   2  * Copyright (c) 2023 Juan Manuel Cruz <jcruz@fi.uba.ar> <jcruz@frba.utn.edu.ar>.
   3  * Copyright (c) 2026 Martin Javier Klöckner <mklockner@fi.uba.ar>
   4  *
   5  * See file `LICENSE` for full details
   6  */
   7 
   8 #include "main.h"
   9 
  10 #include "logger.h"
  11 #include "dwt.h"
  12 
  13 #include "board.h"
  14 #include "app.h"
  15 #include "task_actuator_attribute.h"
  16 
  17 void put_event_task_actuator(task_actuator_ev_t event, task_actuator_id_t identifier)
  18 {
  19     task_actuator_dta_t *p_task_actuator_dta;
  20 
  21     p_task_actuator_dta = &task_actuator_dta_list[identifier];
  22     p_task_actuator_dta->event = event;
  23     p_task_actuator_dta->flag = true;
  24 }