fsw_config.c
36 lines
| 1.2 KiB
| text/x-c
|
CLexer
/ src / fsw_config.c
paul@pc-solar1.lab-lpp.local
|
r5 | #include <drvmgr/ambapp_bus.h> | ||
paul
|
r295 | #include <drvmgr/drvmgr.h> | ||
paul
|
r318 | #include <ccsds_types.h> | ||
paul@pc-solar1.lab-lpp.local
|
r5 | |||
// GRSPW0 resources | ||||
paul
|
r295 | struct drvmgr_key grlib_grspw_0n1_res[] = | ||
{ | ||||
paul
|
r318 | {"txBdCnt", KEY_TYPE_INT, {(unsigned int)TXBDCNT}}, // 7 SWF_F0, 7 SWF_F1, 7 SWF_F2, 7 CWF_F3, 7 CWF_F1 ou 7 CWF_F2 | ||
{"rxBdCnt", KEY_TYPE_INT, {(unsigned int)RXBDCNT}}, | ||||
{"txDataSize", KEY_TYPE_INT, {(unsigned int)TXDATASIZE}}, | ||||
{"txHdrSize", KEY_TYPE_INT, {(unsigned int)TXHDRSIZE}}, | ||||
{"rxPktSize", KEY_TYPE_INT, {(unsigned int)RXPKTSIZE}}, | ||||
KEY_EMPTY | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | }; | ||
// If RTEMS_DRVMGR_STARTUP is defined we override the "weak defaults" that is defined by the LEON3 BSP. | ||||
paul
|
r295 | //struct drvmgr_bus_res grlib_drv_resources = | ||
//{ | ||||
// .next = NULL, | ||||
// .resource = { | ||||
// {DRIVER_AMBAPP_GAISLER_GRSPW_ID, 0, &grlib_grspw_0n1_res[0]}, | ||||
// {DRIVER_AMBAPP_GAISLER_GRSPW_ID, 1, &grlib_grspw_0n1_res[0]}, | ||||
// RES_EMPTY /* Mark end of resource array */ | ||||
// } | ||||
//}; | ||||
struct drvmgr_bus_res grlib_drv_resources = | ||||
{ | ||||
NULL, | ||||
{ | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | {DRIVER_AMBAPP_GAISLER_GRSPW_ID, 0, &grlib_grspw_0n1_res[0]}, | ||
paul
|
r295 | {DRIVER_AMBAPP_GAISLER_GRSPW_ID, 1, &grlib_grspw_0n1_res[0]}, | ||
RES_EMPTY /* Mark end of resource array */ | ||||
paul@pc-solar1.lab-lpp.local
|
r5 | } | ||
paul@pc-solar1.lab-lpp.local
|
r23 | }; | ||