Hello,
Just to report some incorrect ASSERT in driverlib which prevent using some function.
I use driverlib 2.1.1.71 but in the new released version, those bug seem to be always here:
1) In file aes.c function
AESConfigSet(uint32_t ui32Base, uint32_t ui32Config)
used in decrypt mode:
The following assert is always wrong because AES_CFG_DIR_DECRYPT is equal to zero:
ASSERT((ui32Config & AES_CFG_DIR_ENCRYPT) || (ui32Config & AES_CFG_DIR_DECRYPT));
2) In file gpio.c function
void GPIOIntTypeSet(uint32_t ui32Port, uint8_t ui8Pins, uint32_t ui32IntType)
If we use the type GPIO_DISCRETE_INT,
the following assert is always wrong because GPIO_DISCRETE_INT is not checked in ASSERT:
ASSERT((ui32IntType == GPIO_FALLING_EDGE) || (ui32IntType == GPIO_RISING_EDGE) || (ui32IntType == GPIO_BOTH_EDGES) || (ui32IntType == GPIO_LOW_LEVEL) || (ui32IntType == GPIO_HIGH_LEVEL));
Instead this ASSERTshould be used:
ASSERT( (ui32IntType == GPIO_FALLING_EDGE) || (ui32IntType == GPIO_RISING_EDGE) || (ui32IntType == GPIO_BOTH_EDGES) || (ui32IntType == GPIO_LOW_LEVEL) || (ui32IntType == GPIO_HIGH_LEVEL) || (ui32IntType == GPIO_FALLING_EDGE | GPIO_DISCRETE_INT) || (ui32IntType == GPIO_RISING_EDGE | GPIO_DISCRETE_INT) || (ui32IntType == GPIO_BOTH_EDGES | GPIO_DISCRETE_INT) || (ui32IntType == GPIO_LOW_LEVEL | GPIO_DISCRETE_INT) || (ui32IntType == GPIO_HIGH_LEVEL | GPIO_DISCRETE_INT));
Regards