Bug in CYLIB.h | Cypress Semiconductor
Bug in CYLIB.h
When using CyIntSetPriority() the value is checked against a #defined constant named CY_MIN_PRIORITY near line 319 in CyLib.h. CY_MIN_PRIORITY has the value 3, but it should be 7. The description of CyIntSetPriority() in "System Reference Guide" shows valid priority ranges from 0 to 7 (which is quite logical).