// chip content
NUTOOL_PIN.g_cfg_chips = [
	// NUC029AE
	{ name: "NUC029FAE", pkg: "TSSOP20" },
	// NUC029TAE
	{ name: "NUC029TAE", pkg: "QFN33" },
	// NUC029AN
	{ name: "NUC029LAN", pkg: "LQFP48" },
	{ name: "NUC029NAN", pkg: "QFN48" },
	{ name: "NUC029TAN", pkg: "QFN33" },
	// NUC029xDE
	{ name: "NUC029LDE", pkg: "LQFP48" },
	{ name: "NUC029SDE", pkg: "LQFP64" },
	// NUC029xGE
	{ name: "NUC029LGE", pkg: "LQFP48" },
	{ name: "NUC029SGE", pkg: "LQFP64" },
	// NUC029KGE
	{ name: "NUC029KGE", pkg: "LQFP128" },
	// NUC029xEE
	{ name: "NUC029LEE", pkg: "LQFP48" },
	{ name: "NUC029SEE", pkg: "LQFP64" },
	// NUC029MDE
	{ name: "NUC029MDE", pkg: "LQFP44" },
	// NUC029ZAN
	{ name: "NUC029ZAN", pkg: "QFN33" }
];

NUTOOL_PIN.g_cfg_pkgs = {
	"LQFP44": [
		'PF.5', 'PF.4', 'PA.11', 'PA.10', 'PA.9', 'PA.8', 'PB.4', 'PB.5', 'LDO_CAP', 'VDD', 'VSS',
		'PB.0', 'PB.1', 'PD.6', 'PD.7', 'PD.14', 'PD.15', 'PC.3', 'PC.2', 'PC.1', 'PC.0', 'PA.15',
		'PA.14', 'PA.13', 'PA.12', 'PF.7', 'PF.6', 'AVSS', 'PA.0', 'PA.1', 'PA.2', 'PA.3', 'PA.4',
		'PA.5', 'PA.6', 'PA.7', 'AVDD', 'PC.7', 'PC.6', 'PB.15', 'PF.0', 'PF.1', 'nRESET', 'PF.8'
	]
};

NUTOOL_PIN.g_cfg_gpios = [
	{ f: ['PA.0:0', 'ADC_CH0:1', 'I2C1_SCL:3', 'UART5_TXD:5', 'PWM0_CH4:9'] },
	{ f: ['PA.1:0', 'ADC_CH1:1', 'I2C1_SDA:3', 'UART5_RXD:5', 'PWM0_CH5:9'] },
	{ f: ['PA.2:0', 'ADC_CH2:1', 'UART3_TXD:3', 'PWM1_CH0:5'] },
	{ f: ['PA.3:0', 'ADC_CH3:1', 'UART3_RXD:3', 'PWM1_CH1:5'] },
	{ f: ['PA.4:0', 'ADC_CH4:1'] },
	{ f: ['PA.5:0', 'ADC_CH5:1', 'UART3_RXD:3'] },
	{ f: ['PA.6:0', 'ADC_CH6:1', 'UART3_TXD:3'] },
	{ f: ['PA.7:0', 'ADC_CH7:1', 'VREF:3'] },
	{ f: ['PA.8:0', 'I2C0_SDA:1', 'UART1_nRTS:3'] },
	{ f: ['PA.9:0', 'I2C0_SCL:1', 'UART1_nCTS:3'] },
	{ f: ['PA.10:0', 'I2C1_SDA:1', 'PWM1_CH2:3'] },
	{ f: ['PA.11:0', 'I2C1_SCL:1', 'PWM1_CH3:3'] },
	{ f: ['PA.12:0', 'PWM0_CH0:1', 'UART5_RXD:3'] },
	{ f: ['PA.13:0', 'PWM0_CH1:1', 'UART5_TXD:3'] },
	{ f: ['PA.14:0', 'PWM0_CH2:1'] },
	{ f: ['PA.15:0', 'PWM0_CH3:1'] },

	{ f: ['PB.0:0', 'UART0_RXD:1'] },
	{ f: ['PB.1:0', 'UART0_TXD:1'] },
	{ f: ['PB.2:0', 'UART0_nRTS:1', 'TM2_EXT:3', 'PWM1_BRAKE1:5', 'TM2:9'] },
	{ f: ['PB.3:0', 'UART0_nCTS:1', 'TM3_EXT:3', 'PWM1_BRAKE0:5', 'TM3:9'] },
	{ f: ['PB.4:0', 'UART1_RXD:1'] },
	{ f: ['PB.5:0', 'UART1_TXD:1'] },
	{ f: ['PB.6:0', 'UART1_nRTS:1'] },
	{ f: ['PB.7:0', 'UART1_nCTS:1'] },
	{ f: ['PB.8:0', 'TM0:1', 'STADC:2', 'CLKO:3', 'BPWM1_CH2:5'] },
	{ f: ['PB.9:0', 'TM1:1'] },
	{ f: ['PB.10:0', 'TM2:1'] },
	{ f: ['PB.11:0', 'TM3:1', 'PWM0_CH4:3'] },
	{ f: ['PB.12:0', 'CLKO:1', 'BPWM1_CH3:3'] },
	{ f: ['PB.13:0'] },
	{ f: ['PB.14:0', 'INT0:1'] },
	{ f: ['PB.15:0', 'INT1:1', 'TM0:3', 'TM0_EXT:5', 'BPWM1_CH5:11'] },

	{ f: ['PC.0:0', 'SPI0_SS0:1', 'BPWM0_CH0:3'] },
	{ f: ['PC.1:0', 'SPI0_CLK:1', 'BPWM0_CH1:3'] },
	{ f: ['PC.2:0', 'SPI0_MISO0:1', 'BPWM0_CH2:3'] },
	{ f: ['PC.3:0', 'SPI0_MOSI0:1', 'BPWM0_CH3:3'] },
	{ f: ['PC.4:0'] },
	{ f: ['PC.5:0'] },
	{ f: ['PC.6:0', 'UART4_TXD:1', 'I2C0_SDA:3', 'PWM0_BRAKE0:5'] },
	{ f: ['PC.7:0', 'UART4_RXD:1', 'I2C0_SCL:3', 'PWM0_BRAKE1:5'] },
	{ f: ['PC.8:0', 'PWM0_BRAKE0:1'] },
	{ f: ['PC.9:0', 'PWM0_BRAKE1:1'] },
	{ f: ['PC.10:0', 'PWM1_BRAKE0:1'] },
	{ f: ['PC.11:0', 'PWM1_BRAKE1:1'] },
	{ f: ['PC.12:0'] },
	{ f: ['PC.13:0'] },
	{ f: ['PC.14:0'] },
	{ f: ['PC.15:0'] },

	{ f: ['PD.0:0'] },
	{ f: ['PD.1:0'] },
	{ f: ['PD.2:0'] },
	{ f: ['PD.3:0'] },
	{ f: ['PD.4:0'] },
	{ f: ['PD.5:0'] },
	{ f: ['PD.6:0', 'CAN0_RXD:1', 'BPWM1_CH1:3'] },
	{ f: ['PD.7:0', 'CAN0_TXD:1', 'BPWM1_CH0:3'] },
	{ f: ['PD.8:0'] },
	{ f: ['PD.9:0'] },
	{ f: ['PD.10:0'] },
	{ f: ['PD.11:0'] },
	{ f: ['PD.12:0'] },
	{ f: ['PD.13:0'] },
	{ f: ['PD.14:0', 'UART2_RXD:1', 'BPWM0_CH5:3'] },
	{ f: ['PD.15:0', 'UART2_TXD:1', 'BPWM0_CH4:3'] },

	{ f: ['PE.0:0'] },
	{ f: ['PE.1:0'] },
	{ f: ['PE.2:0'] },
	{ f: ['PE.3:0'] },
	{ f: ['PE.4:0'] },
	{ f: ['PE.5:0', 'PWM0_CH5:1', 'TM1:3', 'TM1_EXT:5'] },
	{ f: ['PE.6:0'] },
	{ f: ['PE.7:0'] },
	{ f: ['PE.8:0'] },
	{ f: ['PE.9:0'] },
	{ f: ['PE.10:0'] },
	{ f: ['PE.11:0'] },
	{ f: ['PE.12:0'] },
	{ f: ['PE.13:0'] },
	{ f: ['PE.14:0'] },
	{ f: ['PE.15:0'] },

	{ f: ['PF.0:0', 'XT1_OUT:1'] },
	{ f: ['PF.1:0', 'XT1_IN:1'] },
	{ f: ['PF.2:0'] },
	{ f: ['PF.3:0'] },
	{ f: ['PF.4:0', 'I2C0_SDA:1', 'PWM1_CH4:3'] },
	{ f: ['PF.5:0', 'I2C0_SCL:1', 'PWM1_CH5:3'] },
	{ f: ['PF.6:0', 'ICE_CLK:1'] },
	{ f: ['PF.7:0', 'ICE_DAT:1'] },
	{ f: ['PF.8:0', 'CLKO:1', 'BPWM1_CH4:2'] }
];

NUTOOL_PIN.g_cfg_gpiosDefines = [
	{ f: ['PA.0', 'ADC_CH0:SYS_GPA_MFP_PA0_ADC0@GPA_MFP', 'I2C1_SCL:SYS_GPA_MFP_PA0_I2C1_SCL@GPA_MFP/SYS_ALT_MFP4_PA0_I2C1_SCL@ALT_MFP4', 'UART5_TXD:SYS_GPA_MFP_PA0_UART5_TXD@GPA_MFP/SYS_ALT_MFP4_PA0_UART5_TXD@ALT_MFP4', 'PWM0_CH4:SYS_GPA_MFP_PA0_PWM0_CH4@GPA_MFP/SYS_ALT_MFP3_PA0_PWM0_CH4@ALT_MFP3'] },
	{ f: ['PA.1', 'ADC_CH1:SYS_GPA_MFP_PA1_ADC1@GPA_MFP', 'I2C1_SDA:SYS_GPA_MFP_PA1_I2C1_SDA@GPA_MFP/SYS_ALT_MFP4_PA1_I2C1_SDA@ALT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PC_MFP'] },
	{ f: ['PC.12'] },
	{ f: ['PC.13'] },
	{ f: ['PC.14'] },
	{ f: ['PC.15'] },

	{ f: ['PD.0'] },
	{ f: ['PD.1'] },
	{ f: ['PD.2'] },
	{ f: ['PD.3'] },
	{ f: ['PD.4'] },
	{ f: ['PD.5'] },
	{ f: ['PD.6', 'CAN0_RXD:SYS_GPD_MFP_PD6_CAN0_RXD@GPD_MFP', 'BPWM1_CH1:SYS_GPD_MFP_PD6_BPWM1_CH1@GPD_MFP/SYS_ALT_MFP3_PD6_BPWM1_CH1@ALT_MFP3'] },
	{ f: ['PD.7', 'CAN0_TXD:SYS_GPD_MFP_PD7_CAN0_TXD@GPD_MFP', 'BPWM1_CH0:SYS_GPD_MFP_PD7_BPWM1_CH0@GPD_MFP/SYS_ALT_MFP3_PD7_BPWM1_CH0@ALT_MFP3'] },
	{ f: ['PD.8'] },
	{ f: ['PD.9'] },
	{ f: ['PD.10'] },
	{ f: ['PD.11'] },
	{ f: ['PD.12'] },
	{ f: ['PD.13'] },
	{ f: ['PD.14', 'UART2_RXD:SYS_GPD_MFP_PD14_UART2_RXD@GPD_MFP', 'BPWM0_CH5:SYS_GPD_MFP_PD14_BPWM0_CH5@GPD_MFP/SYS_ALT_MFP3_PD14_BPWM0_CH5@ALT_MFP3'] },
	{ f: ['PD.15', 'UART2_TXD:SYS_GPD_MFP_PD15_UART2_TXD@GPD_MFP', 'BPWM0_CH4:SYS_GPD_MFP_PD15_BPWM0_CH4@GPD_MFP/SYS_ALT_MFP3_PD15_BPWM0_CH4@ALT_MFP3'] },

	{ f: ['PE.0'] },
	{ f: ['PE.1'] },
	{ f: ['PE.2'] },
	{ f: ['PE.3'] },
	{ f: ['PE.4'] },
	{ f: ['PE.5', 'PWM0_CH5:SYS_GPE_MFP_PE5_PWM0_CH5@GPE_MFP', 'TM1:SYS_GPE_MFP_PE5_TM1@GPE_MFP/SYS_ALT_MFP2_PE5_TM1@ALT_MFP2', 'TM1_EXT:SYS_GPE_MFP_PE5_TM1_EXT@GPE_MFP/SYS_ALT_MFP_PE5_TM1_EXT@ALT_MFP'] },
	{ f: ['PE.6'] },
	{ f: ['PE.7'] },
	{ f: ['PE.8'] },
	{ f: ['PE.9'] },
	{ f: ['PE.10'] },
	{ f: ['PE.11'] },
	{ f: ['PE.12'] },
	{ f: ['PE.13'] },
	{ f: ['PE.14'] },
	{ f: ['PE.15'] },

	{ f: ['PF.0', 'XT1_OUT:SYS_GPF_MFP_PF0_XT1_OUT@GPF_MFP'] },
	{ f: ['PF.1', 'XT1_IN:SYS_GPF_MFP_PF1_XT1_IN@GPF_MFP'] },
	{ f: ['PF.2'] },
	{ f: ['PF.3'] },
	{ f: ['PF.4', 'I2C0_SDA:SYS_GPF_MFP_PF4_I2C0_SDA@GPF_MFP', 'PWM1_CH4:SYS_GPF_MFP_PF4_PWM1_CH4@GPF_MFP/SYS_ALT_MFP3_PF4_PWM1_CH4@ALT_MFP3'] },
	{ f: ['PF.5', 'I2C0_SCL:SYS_GPF_MFP_PF5_I2C0_SCL@GPF_MFP', 'PWM1_CH5:SYS_GPF_MFP_PF5_PWM1_CH5@GPF_MFP/SYS_ALT_MFP3_PF5_PWM1_CH5@ALT_MFP3'] },
	{ f: ['PF.6', 'ICE_CLK:SYS_GPF_MFP_PF6_ICE_CLK@GPF_MFP'] },
	{ f: ['PF.7', 'ICE_DAT:SYS_GPF_MFP_PF7_ICE_DAT@GPF_MFP'] },
	{ f: ['PF.8', 'CLKO:SYS_GPF_MFP_PF8_CLKO@GPF_MFP', 'BPWM1_CH4:SYS_ALT_MFP3_PF8_BPWM1_CH4@ALT_MFP3'] }
];

NUTOOL_PIN.g_cfg_gpiosDescriptions = [
	'ADC_CH0:ADC_CH0 analog input',
	'ADC_CH1:ADC_CH1 analog input',
	'ADC_CH2:ADC_CH2 analog input',
	'ADC_CH3:ADC_CH3 analog input',
	'ADC_CH4:ADC_CH4 analog input',
	'ADC_CH5:ADC_CH5 analog input',
	'ADC_CH6:ADC_CH6 analog input',
	'ADC_CH7:ADC_CH7 analog input',

	'AVDD:Power supply for internal analog circuit',
	'AVSS:Ground pin for analog circuit',

	'BPWM0_CH0:BPWM0 CH0 input/Capture input',
	'BPWM0_CH1:BPWM0 CH1 input/Capture input',
	'BPWM0_CH2:BPWM0 CH2 input/Capture input',
	'BPWM0_CH3:BPWM0 CH3 input/Capture input',
	'BPWM0_CH4:BPWM0 CH4 input/Capture input',
	'BPWM0_CH5:BPWM0 CH5 output/Capture input',
	'BPWM1_CH0:BPWM1 CH0 output/Capture input',
	'BPWM1_CH1:BPWM1 CH1 output/Capture input',
	'BPWM1_CH2:BPWM1 CH2 output/Capture input',
	'BPWM1_CH3:BPWM1 CH3 output/Capture input',
	'BPWM1_CH4:BPWM1 CH4 output/Capture input',
	'BPWM1_CH5:BPWM1 CH5 output/Capture input',

	'CAN0_RXD:Data receiver input pin for CAN0',
	'CAN0_TXD:Data transmitter output pin for CAN0',

	'CLKO:Frequency divider clock output pin',

	'I2C0_SCL:I2C0 clock pin',
	'I2C0_SDA:I2C0 data input/output pin',
	'I2C1_SCL:I2C1 clock pin',
	'I2C1_SDA:I2C1 data input/output pin',

	'ICE_CLK:Serial wire debugger clock pin',
	'ICE_DAT:Serial wire debugger data pin',

	'INT0:External interrupt0 input pin',
	'INT1:External interrupt1 input pin',

	'LDO_CAP:LDO output pin',

	'nRESET:External reset input: active LOW, with an internal pull-up. Set this pin low reset chip to initial state',

	'PWM0_BRAKE0:PWM0 brake input pin',
	'PWM0_BRAKE1:PWM0 brake input pin',
	'PWM0_CH0:PWM0 CH0 output/Capture input',
	'PWM0_CH1:PWM0 CH1 output/Capture input',
	'PWM0_CH2:PWM0 CH2 output/Capture input',
	'PWM0_CH3:PWM0 CH3 output/Capture input',
	'PWM0_CH4:PWM0 CH4 output/Capture input',
	'PWM0_CH5:PWM0 CH5 output/Capture input',
	'PWM1_BRAKE0:PWM1 brake input pin',
	'PWM1_BRAKE1:PWM1 brake input pin',
	'PWM1_CH0:PWM1 CH0 output/Capture input',
	'PWM1_CH1:PWM1 CH1 output/Capture input',
	'PWM1_CH2:PWM1 CH2 output/Capture input',
	'PWM1_CH3:PWM1 CH3 output/Capture input',
	'PWM1_CH4:PWM1 CH4 output/Capture input',
	'PWM1_CH5:PWM1 CH5 output/Capture input',

	'SPI0_CLK:SPI0 serial clock pin',
	'SPI0_MISO0:SPI0 MISO (Master In, Slave Out) pin',
	'SPI0_MOSI0:SPI0 MOSI (Master Out, Slave In) pin',
	'SPI0_SS0:SPI0 slave select pin',

	'STADC:ADC external trigger input',

	'TM0@PB.8:Timer0 event counter input / toggle output',
	'TM0@PB.15:Timer0 toggle output pin',
	'TM0_EXT:Timer0 external capture input pin',
	'TM1@PB.9:Timer1 event counter input / toggle output',
	'TM1@PE.5:Timer1 toggle output pin',
	'TM1_EXT:Timer1 external capture input pin',
	'TM2@PB.10:Timer2 event counter input / toggle output',
	'TM2@PB.2:Timer2 toggle output pin',
	'TM2_EXT:Timer2 external capture input pin',
	'TM3@PB.11:Timer3 event counter input / toggle output',
	'TM3@PB.3:Timer3 toggle output pin',
	'TM3_EXT:Timer3 external capture input pin',

	'UART0_nCTS:Clear to Send input pin for UART0',
	'UART0_nRTS:Request to Send output pin for UART0',
	'UART0_RXD:Data receiver input pin for UART0',
	'UART0_TXD:Data transmitter output pin for UART0',
	'UART1_nCTS:Clear to Send input pin for UART1',
	'UART1_nRTS:Request to Send output pin for UART1',
	'UART1_RXD:Data receiver input pin for UART1',
	'UART1_TXD:Data transmitter output pin for UART1',
	'UART2_RXD:Data receiver input pin for UART2',
	'UART2_TXD:Data transmitter output pin for UART2',
	'UART3_RXD:Data receiver input pin for UART3',
	'UART3_TXD:Data transmitter output pin for UART3',
	'UART4_RXD:Data reveiver input pin for UART4',
	'UART4_TXD:Data transmitter output pin for UART4',
	'UART5_RXD:Data receiver input pin for UART5',
	'UART5_TXD:Data transmitter output pin for UART5',

	'VDD:Power supply for I/O ports and LDO source for internal PLL and digital circuit',
	'VREF:Voltage reference input for ADC',
	'VSS :Ground pin for digital circuit',
	'VSS:Ground pin for digital circuit',

	'XT1_IN:External 4~24 MHz (high speed) crystal input pin',
	'XT1_OUT:External 4~24 MHz (high speed) crystal output pin'
];

NUTOOL_PIN.g_cfg_regDescriptions = {};
NUTOOL_PIN.g_cfg_regDescriptions.GPA_MFP = '0x50000030';
NUTOOL_PIN.g_cfg_regDescriptions.GPB_MFP = '0x50000034';
NUTOOL_PIN.g_cfg_regDescriptions.GPC_MFP = '0x50000038';
NUTOOL_PIN.g_cfg_regDescriptions.GPD_MFP = '0x5000003C';
NUTOOL_PIN.g_cfg_regDescriptions.GPE_MFP = '0x50000040';
NUTOOL_PIN.g_cfg_regDescriptions.GPF_MFP = '0x50000044';
NUTOOL_PIN.g_cfg_regDescriptions.ALT_MFP = '0x50000050';
NUTOOL_PIN.g_cfg_regDescriptions.ALT_MFP2 = '0x5000005C';
NUTOOL_PIN.g_cfg_regDescriptions.ALT_MFP3 = '0x50000060';
NUTOOL_PIN.g_cfg_regDescriptions.ALT_MFP4 = '0x50000064';

NUTOOL_PIN.g_cfg_gpioMatrix = [
	{ f: ['PA.0', 'GPA_MFP[0]:0', 'ALT_MFP4[12]:1', 'ALT_MFP4[7]:2', 'ALT_MFP3[4]:3'] },
	{ f: ['PA.1', 'GPA_MFP[1]:0', 'ALT_MFP4[13]:1', 'ALT_MFP4[6]:2', 'ALT_MFP3[5]:3'] },
	{ f: ['PA.2', 'GPA_MFP[2]:0', 'ALT_MFP4[3]:1', 'ALT_MFP3[6]:2'] },
	{ f: ['PA.3', 'GPA_MFP[3]:0', 'ALT_MFP4[2]:1', 'ALT_MFP3[7]:2'] },
	{ f: ['PA.4', 'GPA_MFP[4]:0'] },
	{ f: ['PA.5', 'GPA_MFP[5]:0', 'ALT_MFP4[4]:1'] },
	{ f: ['PA.6', 'GPA_MFP[6]:0', 'ALT_MFP4[5]:1'] },
	{ f: ['PA.7', 'GPA_MFP[7]:0', 'ALT_MFP4[14]:1'] },
	{ f: ['PA.8', 'GPA_MFP[8]:0', 'ALT_MFP4[0]:1'] },
	{ f: ['PA.9', 'GPA_MFP[9]:0', 'ALT_MFP4[1]:1'] },
	{ f: ['PA.10', 'GPA_MFP[10]:0', 'ALT_MFP3[8]:1'] },
	{ f: ['PA.11', 'GPA_MFP[11]:0', 'ALT_MFP3[9]:1'] },
	{ f: ['PA.12', 'GPA_MFP[12]:0', 'ALT_MFP4[8]:1'] },
	{ f: ['PA.13', 'GPA_MFP[13]:0', 'ALT_MFP4[9]:1'] },
	{ f: ['PA.14', 'GPA_MFP[14]:0'] },
	{ f: ['PA.15', 'GPA_MFP[15]:0'] },

	{ f: ['PB.0', 'GPB_MFP[0]:0'] },
	{ f: ['PB.1', 'GPB_MFP[1]:0'] },
	{ f: ['PB.2', 'GPB_MFP[2]:0', 'ALT_MFP[26]:1', 'ALT_MFP3[31]:2', 'ALT_MFP2[4]:3'] },
	{ f: ['PB.3', 'GPB_MFP[3]:0', 'ALT_MFP[27]:1', 'ALT_MFP3[30]:2', 'ALT_MFP2[5]:3'] },
	{ f: ['PB.4', 'GPB_MFP[4]:0'] },
	{ f: ['PB.5', 'GPB_MFP[5]:0'] },
	{ f: ['PB.6', 'GPB_MFP[6]:0'] },
	{ f: ['PB.7', 'GPB_MFP[7]:0'] },
	{ f: ['PB.8', 'GPB_MFP[8]:0', 'ALT_MFP[29]:1', 'ALT_MFP3[20]:2'] },
	{ f: ['PB.9', 'GPB_MFP[9]:0'] },
	{ f: ['PB.10', 'GPB_MFP[10]:0'] },
	{ f: ['PB.11', 'GPB_MFP[11]:0', 'ALT_MFP3[24]:1'] },
	{ f: ['PB.12', 'GPB_MFP[12]:0', 'ALT_MFP3[21]:1'] },
	{ f: ['PB.13', 'GPB_MFP[13]:0'] },
	{ f: ['PB.14', 'GPB_MFP[14]:0'] },
	{ f: ['PB.15', 'GPB_MFP[15]:0', 'ALT_MFP2[2]:1', 'ALT_MFP[24]:2', 'ALT_MFP3[23]:3'] },

	{ f: ['PC.0', 'GPC_MFP[0]:0', 'ALT_MFP3[12]:1'] },
	{ f: ['PC.1', 'GPC_MFP[1]:0', 'ALT_MFP3[13]:1'] },
	{ f: ['PC.2', 'GPC_MFP[2]:0', 'ALT_MFP3[14]:1'] },
	{ f: ['PC.3', 'GPC_MFP[3]:0', 'ALT_MFP3[15]:1'] },
	{ f: ['PC.4'] },
	{ f: ['PC.5'] },
	{ f: ['PC.6', 'GPC_MFP[6]:0', 'ALT_MFP4[10]:1', 'ALT_MFP3[28]:2'] },
	{ f: ['PC.7', 'GPC_MFP[7]:0', 'ALT_MFP4[11]:1', 'ALT_MFP3[29]:2'] },
	{ f: ['PC.8', 'GPC_MFP[8]:0'] },
	{ f: ['PC.9', 'GPC_MFP[9]:0'] },
	{ f: ['PC.10', 'GPC_MFP[10]:0'] },
	{ f: ['PC.11', 'GPC_MFP[11]:0'] },
	{ f: ['PC.12'] },
	{ f: ['PC.13'] },
	{ f: ['PC.14', 'GPC_MFP[14]:0'] },
	{ f: ['PC.15', 'GPC_MFP[15]:0'] },

	{ f: ['PD.0'] },
	{ f: ['PD.1'] },
	{ f: ['PD.2'] },
	{ f: ['PD.3'] },
	{ f: ['PD.4'] },
	{ f: ['PD.5'] },
	{ f: ['PD.6', 'GPD_MFP[6]:0', 'ALT_MFP3[19]:1'] },
	{ f: ['PD.7', 'GPD_MFP[7]:0', 'ALT_MFP3[18]:1'] },
	{ f: ['PD.8'] },
	{ f: ['PD.9'] },
	{ f: ['PD.10'] },
	{ f: ['PD.11'] },
	{ f: ['PD.12'] },
	{ f: ['PD.13'] },
	{ f: ['PD.14', 'GPD_MFP[14]:0', 'ALT_MFP3[17]:1'] },
	{ f: ['PD.15', 'GPD_MFP[15]:0', 'ALT_MFP3[16]:1'] },

	{ f: ['PE.0'] },
	{ f: ['PE.1'] },
	{ f: ['PE.2'] },
	{ f: ['PE.3'] },
	{ f: ['PE.4'] },
	{ f: ['PE.5', 'GPE_MFP[5]:0', 'ALT_MFP2[3]:1', 'ALT_MFP[25]:2'] },
	{ f: ['PE.6'] },
	{ f: ['PE.7'] },
	{ f: ['PE.8'] },
	{ f: ['PE.9'] },
	{ f: ['PE.10'] },
	{ f: ['PE.11'] },
	{ f: ['PE.12'] },
	{ f: ['PE.13'] },
	{ f: ['PE.14'] },
	{ f: ['PE.15'] },

	{ f: ['PF.0', 'GPF_MFP[0]:0'] },
	{ f: ['PF.1', 'GPF_MFP[1]:0'] },
	{ f: ['PF.2'] },
	{ f: ['PF.3'] },
	{ f: ['PF.4', 'GPF_MFP[4]:0', 'ALT_MFP3[10]:1'] },
	{ f: ['PF.5', 'GPF_MFP[5]:0', 'ALT_MFP3[11]:1'] },
	{ f: ['PF.6', 'GPF_MFP[6]:0'] },
	{ f: ['PF.7', 'GPF_MFP[7]:0'] },
	{ f: ['PF.8', 'GPF_MFP[8]:0', 'ALT_MFP3[22]:1'] }
];

NUTOOL_PIN.g_cfg_shareBits = [];
NUTOOL_PIN.g_cfg_addGPIO = {};
NUTOOL_PIN.g_cfg_unusedGPIO = {};

NUTOOL_PIN.decidepackageNumber = function (given_partNumber_package) {
	var partNumber_package;

	if (typeof given_partNumber_package === 'undefined') {
		partNumber_package = NUTOOL_PIN.getg_partNumber_package();
	}
	else {
		partNumber_package = given_partNumber_package;
	}

	NUTOOL_PIN.g_packageNumber = partNumber_package.substring(partNumber_package.indexOf('(') + 1);
	NUTOOL_PIN.g_packageNumber = NUTOOL_PIN.g_packageNumber.substring(0, NUTOOL_PIN.g_packageNumber.indexOf(')'));
	NUTOOL_PIN.g_packageNumberIndex = NUTOOL_PIN.g_packageNumber;

	partNumber_package = null;
};
