DelfiSpace / DelfiPQcore

0 stars 1 forks source link

Every Module can only have 1 PeriodicTask. #16

Closed CasperBroekhuizen closed 4 years ago

CasperBroekhuizen commented 4 years ago

The PeriodicTask currently occupies one of the Timers (TIMER32_0_BASE) to notify itself. So when a second periodicTask is created, it will take that timer and assign it to itself. (deregistering the first PeriodicTask).

Possible solution is to have a separate interrupt handler that holds a list of periodic tasks to notify all of them, instead of having the PeriodicTask notify itself.

StefanoSperetta commented 4 years ago

Related to https://github.com/DelfiSpace/DelfiPQcore/issues/7

CasperBroekhuizen commented 4 years ago

Fixed in https://github.com/DelfiSpace/DelfiPQcore/commit/a22cd21b9745ee0a66960cfa21dc470674c77c20 , By adding a PeriodicTaskNotifier.