This is maybe a very trial question...
What is the right way of doing simple_peripheral_spin() if the code is used in the product?
In the example code:
static void simple_peripheral_spin(void) { volatile uint8_t x = 0; while(1) { x++; } }
I believe that was for the debugging purpose. For a released product, what is the right way?
Removed the ASSERT away?
Put a reboot code?
Samson