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

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
User avatar
aclassifier
Respected Member
Posts: 483
Joined: Wed Apr 25, 2012 8:52 pm
Contact:

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)
https://www.teigfam.net/oyvind/home/
Post Reply