55 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/****************************************************************************
 | 
						|
 | 
						|
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)
 | 
						|
{
 | 
						|
#if CHIP_BRINGUP_DEBUG == 1
 | 
						|
#if (IOT_FLASH_BUILD != 1)
 | 
						|
#if PLC_SUPPORT_CCO_ROLE == 1
 | 
						|
    gpio_mtx_enable();
 | 
						|
    gpio_sig_info_t info1 = {
 | 
						|
        6,
 | 
						|
        {
 | 
						|
            {IO_TYPE_OUT, 0, 26, 0xff, 67},
 | 
						|
            {IO_TYPE_OUT, 0, 24, 0xff, 68},
 | 
						|
            {IO_TYPE_OUT, 0, 22, 0xff, 69},
 | 
						|
            {IO_TYPE_OUT, 0, 27, 0xff, 70},
 | 
						|
            {IO_TYPE_OUT, 0, 25, 0xff, 71},
 | 
						|
            {IO_TYPE_OUT, 0, 23, 0xff, 72},
 | 
						|
        }
 | 
						|
    };
 | 
						|
    gpio_module_pin_select(&info1);
 | 
						|
    gpio_module_sig_select(&info1, GPIO_MTX_MODE_MATRIX);
 | 
						|
 | 
						|
    gpio_sig_info_t info2 = {
 | 
						|
        3,
 | 
						|
        {
 | 
						|
            {IO_TYPE_OUT, 0, 28, 0xff, 73},
 | 
						|
            {IO_TYPE_OUT, 0, 20, 0xff, 74},
 | 
						|
            {IO_TYPE_OUT, 0, 21, 0xff, 75},
 | 
						|
        }
 | 
						|
    };
 | 
						|
    gpio_module_pin_select(&info2);
 | 
						|
    gpio_module_sig_select(&info2, GPIO_MTX_MODE_MATRIX);
 | 
						|
#endif
 | 
						|
#endif
 | 
						|
#endif
 | 
						|
}
 | 
						|
 |