Esempio n. 1
0
/** User Applet and Button Management Routines <BR>
  * ===========================================================================<BR>
  * The User applet is primarily activated by callbacks from the kernel.  However,
  * in this system some features are also activated by button presses.
  *
  */
void sub_led_cycle(ot_u8 i) {
    switch (i & 3) {
        case 0: PALFI_LED4_ON();        break;
        case 1: PALFI_LED3_ON();        break;
        case 2: otapi_led2_on();   		break;
        case 3: otapi_led1_on();   		break;
    }

    platform_swdelay_ms(33);

    switch (i & 3) {
        case 0: PALFI_LED4_OFF();       break;
        case 1: PALFI_LED3_OFF();       break;
        case 2: otapi_led2_off();       break;
        case 3: otapi_led1_off();       break;
    }
}
Esempio n. 2
0
/** User Applet and Button Management Routines <BR>
  * ===========================================================================<BR>
  * The User applet is primarily activated by callbacks from the kernel.  However,
  * in this system some features are also activated by button presses.
  *
  */
void sub_led_cycle(ot_u8 i) {
	i &= 3;
	switch (i) {
	case 0: PALFI_LED4_ON();	break;
	case 1: PALFI_LED3_ON();	break;
	case 2: BOARD_led2_on();	break;
	case 3: BOARD_led1_on();	break;
	}

    delay_ms(33);

    switch (i) {
    case 0: PALFI_LED4_OFF();	break;
    case 1: PALFI_LED3_OFF();	break;
    case 2: BOARD_led2_off();	break;
    case 3: BOARD_led1_off();	break;
    }
}
Esempio n. 3
0
ot_bool palfi_action_swtrim_1(void) {
    PALFI_LED3_OFF();
    PALFI_VCLD_PORT->DOUT      &= ~PALFI_VCLD_PIN;      // disable VCL charging
    PALFI_BYPASS_PORT->DOUT    &= ~PALFI_BYPASS_PIN;    // enable DC/DC converter   
    return False;
}