|
|
@ -366,8 +366,8 @@ struct hcfResource i2cDev3Resources[] = { |
|
|
|
LOCAL UINT8 gpio0PortAModeTable[] = { |
|
|
|
/*pin of portA can be used as interrupt mode*/ |
|
|
|
/*portA-pinX: 0 1 2 3 4 5 6 7 */ |
|
|
|
0, 2, 0, 0, 0, 0, 0, 0 /* 0:GPIO_MODE_NOT_USED 1:GPIO_MODE_IN
|
|
|
|
2:GPIO_MODE_OUT 3:GPIO_MODE_INT*/ |
|
|
|
0, 2, 0, 1, 0, 1, 1, 0 /* 0:GPIO_MODE_NOT_USED 1:GPIO_MODE_IN
|
|
|
|
2:GPIO_MODE_OUT 3:GPIO_MODE_INT*/ /* GPIO0_A3, GPIO0_A5, GPIO0_A6 as uart irq */ |
|
|
|
}; |
|
|
|
/*This table is used to set the default pin mode of portB*/ |
|
|
|
LOCAL UINT8 gpio0PortBModeTable[] = { |
|
|
@ -524,6 +524,14 @@ struct hcfResource lfsResources[] = { |
|
|
|
#define lfsResNum NELEMENTS(lfsResources) |
|
|
|
#endif |
|
|
|
|
|
|
|
extern int bspSm1553bIrqConnect(void *data, void (*isr)(void *data)); |
|
|
|
|
|
|
|
struct hcfResource sm2130Resources[] = { |
|
|
|
{ "devName" , HCF_RES_STRING, {(void *)"/sm1553b"}}, |
|
|
|
{ "reqIsr" , HCF_RES_ADDR, {(void *)bspSm1553bIrqConnect}}, |
|
|
|
}; |
|
|
|
#define sm2130ResNum NELEMENTS(sm2130Resources) |
|
|
|
|
|
|
|
const struct hcfDevice hcfDeviceList[] = { |
|
|
|
#ifdef DRV_ARM_GICV3 |
|
|
|
{ "armGicDev", 0, VXB_BUSID_PLB, 0, armGICv3Num, armGICv3Resources}, |
|
|
@ -586,6 +594,7 @@ const struct hcfDevice hcfDeviceList[] = { |
|
|
|
#ifdef DRV_FS_LITTLEFS |
|
|
|
{ "lfs", 0, VXB_BUSID_PLB, 0, lfsResNum, lfsResources}, |
|
|
|
#endif |
|
|
|
{ "SM2130", 0, VXB_BUSID_SPI, 0, sm2130ResNum, sm2130Resources}, |
|
|
|
}; |
|
|
|
|
|
|
|
const int hcfDeviceNum = NELEMENTS(hcfDeviceList); |
|
|
|