SERIES APZU+ ACROPACK
USER’S MANUAL
Acromag, Inc. Tel: 248-295-0310 -
67
-
www.acromag.com
6.5 LED Bare Metal Software
The LEDs are tied to GPIO pins 46 and 47. The code used to test the LEDs is
given below.
ConfigPtr = XGpioPs_LookupConfig(GPIO_DEVICE_ID);
XGpioPs_CfgInitialize(&Gpio, ConfigPtr,ConfigPtr->
BaseAddr
);
XGpioPs_SetDirectionPin(&Gpio, 47, 1);
XGpioPs_SetOutputEnablePin(&Gpio,
47,
1);
XGpioPs_WritePin(&Gpio,
47,
0x0);
printf("LED 47 ON...\n");
XGpioPs_SetDirectionPin(&Gpio, 46, 1);
XGpioPs_SetOutputEnablePin(&Gpio,
46,
1);
XGpioPs_WritePin(&Gpio,
46,
0x0);
printf("LED 46 ON...\n");