Tool/software: TI-RTOS
hi all,
my board is dra76x, vision sdk is 0304 version.
i want to pull up GPIO2 0 pin to high vol, so i add the following code in Bsp_boardPowerOnDeviceTda2xx() function of bsp_boardTda2xx.c file:
#define BOARD_GPIO_BASE_ADV7182_PWDN ((UInt32) SOC_GPIO2_BASE)
#define BOARD_GPIO_PIN_ADV7182_PWDN ((UInt32) 0U)
GPIOModuleEnable(BOARD_GPIO_BASE_ADV7182_PWDN);
// Set GIPO2_0 pin to high
GPIODirModeSet(
BOARD_GPIO_BASE_ADV7182_PWDN,
BOARD_GPIO_PIN_ADV7182_PWDN,
GPIO_DIR_OUTPUT);
GT_1trace(BspBoardTrace, GT_INFO, "(1)GPIO2_0 PIN = %d!!\n",
GPIOPinRead(BOARD_GPIO_BASE_ADV7182_PWDN, BOARD_GPIO_PIN_ADV7182_PWDN));
GPIOPinWrite(
BOARD_GPIO_BASE_ADV7182_PWDN,
BOARD_GPIO_PIN_ADV7182_PWDN,
GPIO_PIN_HIGH);
BspOsal_sleep((UInt32) 100U); // wait 100ms
GT_1trace(BspBoardTrace, GT_INFO, "(2)GPIO2_0 PIN = %d!!\n",
GPIOPinRead(BOARD_GPIO_BASE_ADV7182_PWDN, BOARD_GPIO_PIN_ADV7182_PWDN));
before gpio write i read the gpio2_0 value, after GPIOPinWrite() be called, i read the gpio2_0 value, but both of them are 0, gpio writing is not effect why?
could anyone please help me to figure out the problem?