33
33
#include <errno.h>
34
34
#include <rtems.h>
35
35
#include <rtems/rtems_bsdnet.h>
36
- #include <rtems/rtems_dhcp_failsafe.h>
37
- #include <bsp.h>
36
+ /* TODO Only needed for network setup, move? */
37
+ //#include <rtems/rtems_dhcp_failsafe.h>
38
+ //#include <bsp.h>
38
39
39
40
extern int rtems_fxp_attach (struct rtems_bsdnet_ifconfig * config , int attaching );
40
41
@@ -63,6 +64,8 @@ extern int rtems_fxp_attach(struct rtems_bsdnet_ifconfig *config, int attaching)
63
64
64
65
rtems_id RtemsTimerId ;
65
66
67
+ /* TODO in pc but not in generic... might be the only unique stuff? */
68
+ #if 0
66
69
static unsigned char ethernet_address [6 ] = {0x00 , 0x04 , 0x9F , 0x00 , 0x27 , 0x61 };
67
70
static char net_name_str [] = "fxp1" ;
68
71
static char ip_addr_str [] = "10.0.2.17" ;
@@ -78,9 +81,11 @@ static struct rtems_bsdnet_ifconfig netdriver_config = {
78
81
/* more options can follow */
79
82
};
80
83
84
+
81
85
struct rtems_bsdnet_config rtems_bsdnet_config = {
82
86
.ifconfig = & netdriver_config , .bootp = rtems_bsdnet_do_dhcp_failsafe , /* fill if DHCP is used*/
83
87
};
88
+ #endif
84
89
85
90
/*
86
91
** 1 HZ Timer "ISR"
@@ -200,7 +205,9 @@ void CFE_PSP_Main(void)
200
205
/*
201
206
** Set up the virtual FS mapping for the "/cf" directory
202
207
*/
203
- Status = OS_FileSysAddFixedMap (& fs_id , "/mnt/eeprom" , "/cf" );
208
+ /* TODO maybe make this into a config... or just switch to nonvol */
209
+ // Status = OS_FileSysAddFixedMap(&fs_id, "/mnt/eeprom", "/cf");
210
+ Status = OS_FileSysAddFixedMap (& fs_id , "/nonvol" , "/cf" );
204
211
if (Status != OS_SUCCESS )
205
212
{
206
213
/* Print for informational purposes --
0 commit comments