红龙407开发板是基于ST公司STM32F407ZGT6(LQFP144)处理器的一款学习板,该处理器采用是ARM Cortex™-M4内核以为核心。ARM Cortex™-M4是32位MCU,带有FPU单元,有210 DMIPS,多达1MB FLASH/192+4KB RAM,USB OTG HS/FS,Ethernet,17个定时器,3个ADC,15个通讯接口和一个摄像口。主频高达168MHz。该处理器是由ARM专门开发的最新[url=]嵌入式处理器[/url],用以满足需要有效且易于使用的控制和[url=]信号处理[/url]功能混合的数字信号控制市场。高效的[url=]信号处理[/url]功能与Cortex-M处理器系列的低功耗、低成本和易于使用的优点的组合,旨在满足专门面向电动机控制、汽车、[url=]电源管理[/url]、嵌入式音频和工业自动化市场的新兴类别的灵活解决方案。
void nvic_config(void)
{
/* NVIC configuration */
/* Configure the Priority Group to 2 bits */
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
}
/**
* @brief Main program
* @param None
* @retval None
*/
int main(void)
{
uint8_t temp;
nvic_config();
uart_init();
printf("\r\n");
printf("hello!welcome to F4...\r\n"); temp = ov7670_check();
if (temp != 0x73)
{
printf("Read Cam ID Fail...ID : [0x%02x]\r\n",temp);
while (1)
{
}
}
else
{
printf("Cam ID : [0x%02x]\r\n",temp);
if (ov7670_init())
{
printf("Init OV7670 reg Fail...\r\n");
while (1)
{
}
}
else
{
printf("Init OV7670 reg OK...\r\n");
printf("Show Camer Data...\r\n");
lcd_init();
systick_delay_ms(500);
cam_start(); }
} //lcd_init();
while(1)
{
}
}
#ifdef USE_FULL_ASSERT
/**
* @brief Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* @param file: pointer to the source file name
* @param line: assert_param error line source number
* @retval None
*/
void assert_failed(uint8_t* file, uint32_t line)
{
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ /* Infinite loop */
while (1)
{
}
}
#endif /**
* @}
*/ /**
* @} |