Reply by Mike Dunn July 19, 20052005-07-19
Congradulations!  It looks like you got your problem solved.
 
I am not sure of your goal/application - you may want to consider what you want your program to do if the revision comes back as some value other than 1 or 2.
 
mikedunn

sabapathy_80 <s...@yahoo.com> wrote:
Dear friends,
I've done switching of EMIF settings between C6713 board revision 1 &
2. For that my program first get the board revision and then call
EMIF initialize function with board version as argument. So I am
having EMIF initialize function with an integer argument.
My program looks like follow:

To read board version include following code in application's main.c
file:

Int16 version; //Variable for getting board revision
version = DSK6713_getVersion(); //Function for getting board
revision.
EMIF_Init(version); //call EMIF Initialize function
with revision as argument.

Function prototype for EMIF_Init in emif.h:
GLOBAL void EMIF_Init( int );

EMIF Initialize function inside emif.c:

void EMIF_Init( int revision )
{
if(revision==1)
{
EMIF configuration for board revision #1
}
if(revision==2)
{
EMIF configuration for board revision #2
}
}
Now I am able to Flash burn both board revision 1 & 2 using the
same .hex file. Any suggestion welcome.
Thanks & Regards,
P.Sabapathy
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*


Reply by sabapathy_80 July 19, 20052005-07-19
Dear friends,
I've done switching of EMIF settings between C6713 board revision 1 &
2. For that my program first get the board revision and then call
EMIF initialize function with board version as argument. So I am
having EMIF initialize function with an integer argument.
My program looks like follow:

To read board version include following code in application's main.c
file:

Int16 version; //Variable for getting board revision
version = DSK6713_getVersion(); //Function for getting board
revision.
EMIF_Init(version); //call EMIF Initialize function
with revision as argument.

Function prototype for EMIF_Init in emif.h:
GLOBAL void EMIF_Init( int );

EMIF Initialize function inside emif.c:

void EMIF_Init( int revision )
{
if(revision==1)
{
EMIF configuration for board revision #1
}
if(revision==2)
{
EMIF configuration for board revision #2
}
}
Now I am able to Flash burn both board revision 1 & 2 using the
same .hex file. Any suggestion welcome.
Thanks & Regards,
P.Sabapathy