Browse Source

[BSP][k210]fix camera io config

ZYH 6 years ago
parent
commit
3aef459c68
2 changed files with 22 additions and 1 deletions
  1. 12 1
      bsp/k210/driver/drv_io_config.c
  2. 10 0
      bsp/k210/driver/drv_io_config.h

+ 12 - 1
bsp/k210/driver/drv_io_config.c

@@ -1,3 +1,13 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ * 2019-03-19     ZYH          first version
+ */
+
 #include <rtthread.h>
 #include <fpioa.h>
 #include <drv_io_config.h>
@@ -25,7 +35,7 @@ static struct io_config
     {BSP_CAMERA_CMOS_PWDN_PIN, FUNC_CMOS_PWDN},
     {BSP_CAMERA_CMOS_XCLK_PIN, FUNC_CMOS_XCLK},
     {BSP_CAMERA_CMOS_PCLK_PIN, FUNC_CMOS_PCLK},
-    {BSP_CAMERA_CMOS_PCLK_PIN, FUNC_CMOS_HREF},
+    {BSP_CAMERA_CMOS_HREF_PIN, FUNC_CMOS_HREF},
 #endif
 
 #ifdef BSP_USING_SPI1
@@ -73,3 +83,4 @@ int io_config_init(void)
 
 }
 INIT_BOARD_EXPORT(io_config_init);
+

+ 10 - 0
bsp/k210/driver/drv_io_config.h

@@ -1,3 +1,13 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ * 2019-03-19     ZYH          first version
+ */
+
 #ifndef __DRV_IO_CONFIG_H__
 #define __DRV_IO_CONFIG_H__