 
					
				
		
 lpcware
		
			lpcware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
		
 lpcware
		
			lpcware
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
		
 kerryzhou
		
			kerryzhou
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi LPC WARE,
About your question : Why both Chip_PININT_Init() and Chip_GPIO_Init() are empty and why Chip_GPIO_Init() is called in the LPC4337 board examples and not noted that it is not required for that board (or if it is, why?)
I think it is used for the different project compatibility.
Normally, if customer just have one project, they can put all the GPIO init code in Chip_GPIO_Init(), but to lpcopen which contains a lot of projects, not all the project need to initialize the GPIO, or different project need to initial different GPIOs, so the code put the GPIO init code in the main, not directly in Chip_GPIO_Init(), Chip_PININT_Init() is the same. Chip_PININT_Init() and Chip_GPIO_Init() is the API function, it is the sample code structure, so if customer just use one project with the lib, they can put all the GPIO init code to the Chip_GPIO_Init(), eg: calling Chip_GPIO_SetPinDIRInput, Chip_SCU_GPIOIntPinSel code.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I am having a similar problem with LPC1549 while using GPIO interrupt. I am uding PININTCH0 as given in the sample code and even in the guidelines. I will try with your solution.
But, tell me one thing, weren't you using PININTCH0 in other API calls as well ?
