Tool/software: Code Composer Studio
Hi,
I used the following code for setting GPIO pins high. could not find any output on GPIO pins. Content of registers are not changed even after program run.
my code:
#include "stdio.h"
#include "./Header/c6745.h"
#include "./Header/c6745_gpio.h"
#define Uint32 unsigned int
void main()
{
Uint32 *gpio_out_data01,*gpio_dir01;
C6745_GPIO_init();
gpio_dir01 = (Uint32 *)0x01E26010;
gpio_out_data01 = (Uint32 *)0x01E26014;
*gpio_dir01 = 0xF000FFFF; // 0: output , 1: input
while(1)
{
*gpio_out_data01=0x0FFF0000;
}
}