Hi all,
I use OMAP l138 with the logicPD evm board. And I use CCs v5.1 with SYBIOS(6.32.05.54) and StarterWare(1.10.02.02).
I'm new in developping software on DSP, i'm trying to activated GPIO. It's supose to be simple... but its doesn't work.
Here is my code i just try to activated the GPIO bank 0 pin 8 and GPIO bank 7 pin 12, when i verify in debug mode and with a multimeter the state of the GPIO they never change...
//-------------------------------------
// INCLUDES
//-------------------------------------
#include "main.h"
#include "gpio.h"
#include "soc_OMAPL138.h"
//--------------------------------------
// main()
//--------------------------------------
void main(void){
/* Sets the pin 9(GP0[8]) as output.*/
GPIODirModeSet(SOC_GPIO_0_REGS, 9, GPIO_DIR_OUTPUT);
/* Sets the pin 9(GP0[8]) to low.*/
GPIOPinWrite(SOC_GPIO_0_REGS, 9,GPIO_PIN_LOW);
/* Sets the pin 9(GP0[8]) as output.*/
GPIOPinWrite(SOC_GPIO_0_REGS, 9,GPIO_PIN_HIGH);
/* Sets the pin 9(GP7[12]) as output.*/
GPIODirModeSet(SOC_GPIO_0_REGS, 126, GPIO_DIR_OUTPUT);
/* Sets the pin 9(GP7[12]) to low.*/
GPIOPinWrite(SOC_GPIO_0_REGS, 126,GPIO_PIN_LOW);
/* Sets the pin 9(GP7[12]]) as output.*/
GPIOPinWrite(SOC_GPIO_0_REGS, 126,GPIO_PIN_HIGH);
BIOS_start(); // start the sysBIOS
}
Can't someone tell what i doing wrong?
Thanks