I am using LPC1114 target, and I am calling palWritePad()
I get the error
error: 'mask' undeclared (first use in this function)
when compiling.
Looking at the code, there appears to be a bug in os/hal/platforms/LPC11xx/pal_lld.h
/**
* @brief Writes a logical state on an output pad.
* @note This function is not meant to be invoked directly by the
* application code.
* @note The @ref PAL provides a default software implementation of this
* functionality, implement this function if can optimize it by using
* special hardware functionalities or special coding.
*
* @param[in] port port identifier
* @param[in] pad pad number within the port
* @param[in] bit logical value, the value must be @p PAL_LOW or
* @p PAL_HIGH
*
* @notapi
*/
#define pal_lld_writepad(port, pad, bit) \
((port)->MASKED_ACCESS[(mask) << (pad)] = (bit) << (pad))
mask is used but is not a parameter. Not sure what the correct code should be, if I can work out the patch I will post it.