electro-smith / libDaisy

Hardware Library for the Daisy Audio Platform
https://www.electro-smith.com/daisy
MIT License
312 stars 131 forks source link

TimerHandle callback fixes/improvements #523

Closed stephenhensley closed 2 years ago

stephenhensley commented 2 years ago

This accomplishes a few related things:

github-actions[bot] commented 2 years ago

Unit Test Results

    1 files    16 suites   0s :stopwatch: 147 tests 147 :heavy_check_mark: 0 :zzz: 0 :x:

Results for commit f26079f7.

:recycle: This comment has been updated with latest results.

stephenhensley commented 2 years ago

Tested:

Re. TIM2

Opened new issue (#524) to describe weirdness with attempting DeInit prior to Init.

For clarity, when using TIM2 (which is internally used by the System class), I had to Init the TIM2 peripheral, then DeInit before initializing again to have a clean state to start a callback from.

This particular use is outside the scope of this PR.