Hi I'm trying to run an example of gpio of starterware for BEAGLEBONE. I want to use a delay for the user LEDs. I'm using the library delay.h.and it does not work does nothing. you can help me? thank you very much, the program is as follows .....
#include "soc_AM335x.h" #include "beaglebone.h" #include "gpio_v2.h" #include "interrupt.h" #include "dmtimer.h" #include "delay.h" #define GPIO_INSTANCE_ADDRESS (SOC_GPIO_1_REGS) #define GPIO_INSTANCE_PIN_NUMBER (23) int main(void) { /* Enabling functional clocks for GPIO1 instance. */ GPIO1ModuleClkConfig(); /* Selecting GPIO1[23] pin for use. */ GPIO1Pin23PinMuxSetup(); /* Enabling the GPIO module. */ GPIOModuleEnable(GPIO_INSTANCE_ADDRESS); /* Resetting the GPIO module. */ GPIOModuleReset(GPIO_INSTANCE_ADDRESS); /* Setting the GPIO pin as an output pin. */ GPIODirModeSet(GPIO_INSTANCE_ADDRESS, GPIO_INSTANCE_PIN_NUMBER, GPIO_DIR_OUTPUT); DelayTimerSetup(); while(1) { /* Driving a logic HIGH on the GPIO pin. */ GPIOPinWrite(GPIO_INSTANCE_ADDRESS, GPIO_INSTANCE_PIN_NUMBER, GPIO_PIN_LOW); delay(200); /* Driving a logic LOW on the GPIO pin. */ GPIOPinWrite(GPIO_INSTANCE_ADDRESS, GPIO_INSTANCE_PIN_NUMBER, GPIO_PIN_HIGH); delay(200); } }