slashdev / arm-loconet-starter

Starter project for Loconet projects. Based on arm-samd20-starter.
0 stars 0 forks source link

Feature/observer pattern for rx message call back #22

Open jmvdwerf opened 6 years ago

jmvdwerf commented 6 years ago

All rx messages available in the code have been rewritten into the observer pattern. Only check I could do remotely is a check whether it compiles. At my machine it does. Hence, the big question, does it also run on the chip with the expected behavior? Also, I found two functions that are called, but which I cannot find in the code:

Please have a look at those as well...

The component fast_clock is also a candidate to implement a separate observer, as it also has an update function that is weakly referenced. For now, I just updated the RX part.

fuegas commented 6 years ago

These were defined in loconet/loconet_rx.c:

LOCONET_RX_DUMMY_N(prog_task_start);
LOCONET_RX_DUMMY_N(prog_task_final);