Tool/software: Starterware
Hello everyone,
i need your help! I don't know what i am doing wrong but it drives me crazy, so please help me.
I am trying to set the pwm module but i have noticed something really crazy taking place far before i use any pwm-relative functions.
With the following piece of code (and only this), i measure 3.3V in the pin 34 (@P8 header) in my beaglebone white.
GPIO1ModuleClkConfig(); GpioModuleEnable(SOC_GPIO_1_REGS); GpioPinMuxSetup(GPIOP8_34, 6); GPIODirModeSet(SOC_GPIO_1_REGS, GPIO_PIN_NUMBER_A, GPIO_DIR_OUTPUT);
while all the above arguments are defined as:
#define GPIOP8_34 (GPIO_2_17) //(GPIO_2_17 is defined in pin_mux.h file of starterware) #define GPIO_PIN_NUMBER_A (17)
(and SOC_GPIO_1_REGS is defined in soc_AM335x.h and GPIO_DIR_OUTPUT in gpio_v2.h file of starterware).
How is that even possible???
I mean the above functions are not supposed to set high the aforementioned pin.Why is that happening and what should i do?
Thanks in advance!