lpcware

Forgotten GINT1

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by R2D2 on Fri May 29 04:21:04 MST 2015
In chip.h there's GINT1 / LPC_GPIOGROUP1 missing  :((

#define LPC_GPIOGROUP             ((LPC_GPIOGROUPINT_T     *) LPC_GPIO_GROUP_INT0_BASE)

Solution:

#define LPC_GPIOGROUP[color=#f00]0[/color]             ((LPC_GPIOGROUPINT_T     *) LPC_GPIO_GROUP_INT0_BASE)
#define LPC_GPIOGROUP[color=#f00]1[/color]             ((LPC_GPIOGROUPINT_T     *) LPC_GPIO_GROUP_INT1_BASE)


Group Init / DeInit is initialising both groups, so:

STATIC INLINE void Chip_GPIOGP_Init(LPC_GPIOGROUPINT_T *pGPIO)


should be replaced with:

/**
* @briefInitialize GPIO group interrupt block
* @paramNone
* @returnNothing
*/
STATIC INLINE void Chip_GPIOGP_Init(void)
{
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GINT);
Chip_SYSCTL_PeriphReset(RESET_GINT);
}

/**
* @briefDe-Initialize GPIO group interrupt block
* @paramNone
* @returnNothing
*/
STATIC INLINE void Chip_GPIOGP_DeInit(void)
{
Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_GINT);
}



Outcomes