switch() case я знаю что. а это Таймерная функция. вот из хелпа
Цитата
The swatch function may be used in a signal function to delay continued execution for the specified number of seconds. On microcontrollers with slow-clock, power-saving modes, this delay function is accurate even in slow-down modes.
Example
The following signal function provides a 10Hz input to PORT3.2.
signal void int0_signal (void) {
while (1) {
PORT3 |= 0x04; /* pull PORT 3.2 high */
swatch (0.05); /* wait 50 milliseconds */
PORT3 &= ~0x04; /* pull PORT 3.2 low */
swatch (0.05); /* wait 50 milliseconds */
}
}
Note
The swatch function may be called only from within a signal function. Calls outside a signal function are not allowed and result in an error message.