Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   EEPROM Code (http://www.chiefdelphi.com/forums/showthread.php?t=39973)

Joel J 12-01-2006 03:54

Re: EEPROM Code
 
In the eeprom.c released on the 10th of January, I see the following opening lines of code:

//#include "ifi_picdefs.h"
#include <p18f8722.h>
#include "eeprom.h"

Is it safe to uncomment the first line, and remove the specific request for the p18f8722.h info header file, or is that required for the functionality of the code? Basically, as it is now, I won't be able to use it on the '05 controller (unless I modify line 2 every time I want to make the switch, which I could forget eventually). Just checking to see if that's a life or death thing.. I could just test the code, but I am not yet near a FIRST controller.

:)

Kevin Watson 12-01-2006 11:37

Re: EEPROM Code
 
Quote:

Originally Posted by Joel J.
In the eeprom.c released on the 10th of January, I see the following opening lines of code:

//#include "ifi_picdefs.h"
#include <p18f8722.h>
#include "eeprom.h"

Is it safe to uncomment the first line, and remove the specific request for the p18f8722.h info header file, or is that required for the functionality of the code? Basically, as it is now, I won't be able to use it on the '05 controller (unless I modify line 2 every time I want to make the switch, which I could forget eventually). Just checking to see if that's a life or death thing.. I could just test the code, but I am not yet near a FIRST controller.

:)

Yes, use the first line for the 2004/2005 controllers. You can also just grab the code for the 2005 controller here: http://kevin.org/frc/2005. Other than the header file change, there is no difference in the EEPROM code itself.

-Kevin


All times are GMT -5. The time now is 00:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi