AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/led.c
void led_init(void)
{
    uint8_t i;  /* loop counter */

    /* configure the LEDs for Rx and Tx indication */
    ioport_configure_pin(RS485_XPLAINED_LD1,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    ioport_configure_pin(RS485_XPLAINED_LD2,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    ioport_configure_pin(RS485_XPLAINED_LD3,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    ioport_configure_pin(RS485_XPLAINED_LD4,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    /* initialize the timers, while giving LEDs a brief test */
    for (i = 0; i < LEDS_MAX; i++) {
        led_on(i);
        led_off_delay(i,500);
    }        
}
/*************************************************************************
* Description: Initialize the LED hardware
* Returns: none
* Notes: none
*************************************************************************/
Initialize the LED hardware
Returns: none
Notes: none
Initialize the LED hardware Returns : none Notes : none
void led_init(void)
{
    uint8_t i;  
    ioport_configure_pin(RS485_XPLAINED_LD1,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    ioport_configure_pin(RS485_XPLAINED_LD2,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    ioport_configure_pin(RS485_XPLAINED_LD3,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    ioport_configure_pin(RS485_XPLAINED_LD4,
        IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW);
    for (i = 0; i < LEDS_MAX; i++) {
        led_on(i);
        led_off_delay(i,500);
    }        
}
void led_init ( void ) { uint8_t i ; ioport_configure_pin ( RS485_XPLAINED_LD1 , IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW ) ; ioport_configure_pin ( RS485_XPLAINED_LD2 , IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW ) ; ioport_configure_pin ( RS485_XPLAINED_LD3 , IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW ) ; ioport_configure_pin ( RS485_XPLAINED_LD4 , IOPORT_DIR_OUTPUT | IOPORT_INIT_LOW ) ; for ( i = 0 ; i < LEDS_MAX ; i ++ ) { led_on ( i ) ; led_off_delay ( i , 500 ) ; } }
Description: Initialize the LED hardware
Returns: none
Notes: none
Description : Initialize the LED hardware Returns : none Notes : none
/* loop counter */ /* configure the LEDs for Rx and Tx indication */ /* initialize the timers, while giving LEDs a brief test */