42 #define LED LED_YELLOW
47 gpio_pad_dir_set(LED_WHITE);
49 gpio_data_reset(LED_WHITE);
65 *TMR0_COMP_UP = 18750;
68 *TMR0_CTRL = (COUNT_MODE<<13) | (PRIME_SRC<<9) | (SEC_SRC<<7) | (ONCE<<6) | (LEN<<5) | (DIR<<4) | (CO_INIT<<3) | (OUT_MODE);
76 while((*TMR0_SCTRL >> 15) == 0) {
continue; }
82 while((*TMR0_SCTRL >> 15) == 0) {
continue; }