SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);//使能外设时钟GPIOB
SysCtlGPIOAHBEnable(SYSCTL_PERIPH_GPIOC);
GPIOPadConfigSet(GPIO_PORTC_AHB_BASE, GPIO_PIN_4, GPIO_STRENGTH_12MA,GPIO_PIN_TYPE_STD_WPU);
GPIODirModeSet(GPIO_PORTC_AHB_BASE,GPIO_PIN_4,GPIO_DIR_MODE_IN);
GPIOIntTypeSet(GPIO_PORTC_AHB_BASE, GPIO_PIN_4, GPIO_FALLING_EDGE);//下降沿触发中断
GPIOIntEnable(GPIO_PORTC_AHB_BASE, GPIO_PIN_4);
GPIODMATriggerEnable(GPIO_PORTC_AHB_BASE,GPIO_PIN_4);//gpio触发udma使能
IntEnable(INT_GPIOC);
IntMasterEnable();
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_UDMA);
ROM_uDMAEnable();
ROM_uDMAControlBaseSet(ui8ControlTable);
ROM_IntEnable(INT_UDMA);
ROM_uDMAChannelAssign(UDMA_CH6_GPIOC);//配置通道6编码3
ROM_uDMAChannelAttributeDisable(UDMA_CHANNEL_ETH0RX,
UDMA_ATTR_USEBURST | UDMA_ATTR_ALTSELECT |
(UDMA_ATTR_HIGH_PRIORITY |
UDMA_ATTR_REQMASK));
ROM_uDMAChannelAttributeEnable(UDMA_CHANNEL_ETH0RX, UDMA_ATTR_HIGH_PRIORITY);
ROM_uDMAChannelControlSet(UDMA_CHANNEL_ETH0RX | UDMA_PRI_SELECT,
UDMA_SIZE_8 | UDMA_SRC_INC_NONE | UDMA_DST_INC_8 |
UDMA_ARB_1);
ROM_uDMAChannelTransferSet(UDMA_CHANNEL_ETH0RX | UDMA_PRI_SELECT,
UDMA_MODE_BASIC, (void *)imgbuff, (void *)ov7725_eagle_img_buff,
CAMERA_DMA_NUM);
ROM_uDMAChannelEnable(UDMA_CHANNEL_ETH0RX);