Why "error: timer used in more than one case"

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
User avatar
Respected Member
Posts: 427
Joined: Wed Apr 25, 2012 8:52 pm

Why "error: timer used in more than one case"

Post by aclassifier »

Why is this error message necessary?

Code: Select all

error: timer used in more than one case
If I make two timerafter in two cases then they need to be modeled as being two distinct timers.

However, I get the same amount of HW timers being used. So, they are mapped to the same HW timer? Why then, the above requirement?

Plus, logically for me, it's the timerafter values that count, the timer is just some logical idea bearer in this concrete situation(?)

Øyvind Teig
Trondheim (Norway)