mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-11 23:38:57 +00:00
[fix][examples] add while(1) when case fail
This commit is contained in:
parent
6ee666be9b
commit
5d9e51d889
10 changed files with 21 additions and 1 deletions
|
@ -193,11 +193,12 @@ int ATTR_TCM_SECTION main(void)
|
|||
CAM_Int_Callback_set(CAM_INT_NORMAL_0, &CAM_Interrupt_Normal);
|
||||
CAM_IntMask(CAM_INT_NORMAL_0, UNMASK);
|
||||
CPU_Interrupt_Enable(CAM_IRQn);
|
||||
System_NVIC_SetPriority(CAM_IRQn, 4, 1);
|
||||
|
||||
if (SUCCESS != image_sensor_init(DISABLE, &camera_cfg, &mjpeg_cfg)) {
|
||||
MSG("Init error!\n");
|
||||
BL_CASE_FAIL;
|
||||
while (1) {
|
||||
}
|
||||
}
|
||||
// MSG("cam init!\n");
|
||||
cam_start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue