38 lines
1.4 KiB
C
Executable File
38 lines
1.4 KiB
C
Executable File
/****************************************************************************
|
|
|
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
|
|
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
|
be copied by any method or incorporated into another program without
|
|
the express written consent of Aerospace C.Power. This Information or any portion
|
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
|
liability for its use in any way and conveys no license or title under
|
|
any patent or copyright and makes no representation or warranty that this
|
|
Information is free from patent or copyright infringement.
|
|
|
|
****************************************************************************/
|
|
#include "os_types.h"
|
|
#include "gpio_mtx.h"
|
|
#include "iot_io_api.h"
|
|
#include "iot_config.h"
|
|
|
|
void geode_gpio_init(void)
|
|
{
|
|
/* for kunlun 2 */
|
|
gpio_mtx_enable();
|
|
gpio_sig_info_t info1 = {
|
|
5,
|
|
{
|
|
{IO_TYPE_OUT, 0, 66, 0xff, 168},
|
|
{IO_TYPE_OUT, 0, 67, 0xff, 169},
|
|
{IO_TYPE_OUT, 0, 68, 0xff, 75},
|
|
{IO_TYPE_OUT, 0, 69, 0xff, 76},
|
|
{IO_TYPE_OUT, 0, 70, 0xff, 77},
|
|
|
|
}
|
|
};
|
|
gpio_module_pin_select(&info1);
|
|
gpio_module_sig_select(&info1, GPIO_MTX_MODE_MATRIX);
|
|
}
|