From 3aef459c68a4081775145d0fe085027515156888 Mon Sep 17 00:00:00 2001 From: ZYH Date: Tue, 19 Mar 2019 20:39:04 +0800 Subject: [PATCH] [BSP][k210]fix camera io config --- bsp/k210/driver/drv_io_config.c | 13 ++++++++++++- bsp/k210/driver/drv_io_config.h | 10 ++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/bsp/k210/driver/drv_io_config.c b/bsp/k210/driver/drv_io_config.c index 706dd2b89f..63a75a0790 100644 --- a/bsp/k210/driver/drv_io_config.c +++ b/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 #include #include @@ -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); + diff --git a/bsp/k210/driver/drv_io_config.h b/bsp/k210/driver/drv_io_config.h index 52bb8c6e52..78db1d8c6f 100644 --- a/bsp/k210/driver/drv_io_config.h +++ b/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__ -- GitLab