CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
Loading...
Searching...
No Matches

◆ LED_pin_configuration()

void LED_pin_configuration ( void  )

Red and Green LED pin configuration and reset.

Returns
No input parameters
// Viene configurato il led Verde
status= PIN_Configure(LED_Green.porta_num, LED_Green.pin_num, PIN_FUNC_0, PIN_PINMODE_PULLUP, PIN_PINMODE_NORMAL);
GPIO_SetDir(LED_Green.porta_num, LED_Green.pin_num, GPIO_DIR_OUTPUT);
// Viene configurato il led Rosso
status= PIN_Configure(LED_Red.porta_num, LED_Red.pin_num, PIN_FUNC_0, PIN_PINMODE_PULLUP, PIN_PINMODE_NORMAL);
GPIO_SetDir(LED_Red.porta_num, LED_Red.pin_num, GPIO_DIR_OUTPUT);
GPIO_PinWrite(LED_Green.porta_num, LED_Green.pin_num, 0); //!< now the green LED is switched OFF at startup
GPIO_PinWrite(LED_Red.porta_num, LED_Red.pin_num, 0); //!< now the red LED is switched OFF at startup
}
const porta_pin_def LED_Red
Green LED.
Definition: Gpio.c:161
void LED_pin_configuration(void)
Red and Green LED pin configuration and reset.
Definition: Gpio.c:284
const porta_pin_def LED_Green
Green LED.
Definition: Gpio.c:160

Definition at line 284 of file Gpio.c.