[BSP][k210]fix camera io config

This commit is contained in:
ZYH 2019-03-19 20:39:04 +08:00
parent c43ab4d262
commit 3aef459c68
2 changed files with 22 additions and 1 deletions

View File

@ -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);

View File

@ -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__