Dear Friends
I am new in CCS6.0. Previously i was working on CCSv3.1 and CCSv3.3. I have developed one project on CCSv3.1 and now i want run it on ccsv6.0 and load into DSP hardware c6713. I have create new project in ccsv6.0 and import the .c file which was developed and tested successfully. But after the file import, some error are shown. Related error are GPIO function (Error: could not open source file "csl_gpio.h").
But I have followed all the instruction for create a new project and included c6000-tool-6.0.11 library for TMS320c6713 . How to sure that all functions used in ccsv3.1 will work correctly on CCSv6.0.
If any body may guide to me properly, kindly inform me.
#include<stdio.h> #include<string.h> #include <math.h> #include <csl_gpio.h> #include <csl_gpiohal.h> #include <csl_chip.h> #include <csl_irq.h> #include <csl_emifhal.h> #include <csl_emif.h> #define ADDRESS 0xA0000000 #define GBLCTL 0x01800000 #define CE2 0x01800010 #define pi 3.14 #define N 712 //32768 extern int *output11=(int *)ADDRESS; extern int *ce2 = (int *)CE2; extern int To_DAC=0; GPIO_Handle hGpio; GPIO_Config myconfig= { 0x00000031, /* gpgc */ 0x000000F9, /* gpen */ 0x00000070, /* gdir */ 0x00000082, /* gpval */ 0x00000000, /* gphm */ 0x00000000, /* gplm */ 0x00000030 /* gppol */ }; //----------------------global variables---------------------- //----------------------global variables---------------------- int i=0,j=0,mm=0,k=0,g=0,jj=0,d=0; int round(double number) { return (number >= 0) ? (int)(number + 0.5) : (int)(number - 0.5); } void main() { *ce2=0x22A28A22; hGpio =GPIO_open(GPIO_DEV0, GPIO_OPEN_RESET); GPIO_config(hGpio,&myconfig); GPIO_pinEnable(hGpio, GPIO_PIN3 | GPIO_PIN8 | GPIO_PIN9 | GPIO_PIN10 | GPIO_PIN11 | GPIO_PIN12 | GPIO_PIN13 | GPIO_PIN14); GPIO_pinDirection(hGpio,GPIO_PIN8,GPIO_OUTPUT); GPIO_pinDirection(hGpio,GPIO_PIN3,GPIO_INPUT); GPIO_pinDirection(hGpio,GPIO_PIN9,GPIO_OUTPUT); //from incremental encoder GPIO_pinDirection(hGpio,GPIO_PIN10,GPIO_OUTPUT); GPIO_pinDirection(hGpio,GPIO_PIN11,GPIO_INPUT); //to latch of dac GPIO_pinDirection(hGpio,GPIO_PIN12,GPIO_OUTPUT); //loop time test GPIO_pinDirection(hGpio,GPIO_PIN13,GPIO_OUTPUT); GPIO_pinDirection(hGpio,GPIO_PIN14,GPIO_OUTPUT); /* ---------------------------------------------------------------------- */ while(1) { GPIO_pinWrite(hGpio,GPIO_PIN12,1); *output11 = 0x0FFF0000;; DSK6713_waitusec(227 * 500); GPIO_pinWrite(hGpio,GPIO_PIN12,0); //Initialized as low for inhibit enable(DC-DC Converter *output11 = 0x00000000;; DSK6713_waitusec(227 * 500); } }