/* Enables or disables the RGB LED power supply line.  */
void BOARD_rgbledEnable(bool enable, uint8_t mask)
/* Enables or disables the RGB LED power supply line.  */
void BOARD_rgbledEnable(bool enable, uint8_t mask)
{
   if( ( ( mask != 0 ) && ( enable == true ) ) || ( ( ( mask & 0xf ) == 0xf ) && ( enable == false ) ) ) {
      BOARD_rgbledPowerEnable( enable );
      rgbledEnable = enable;
   }
   mask = (mask << BOARD_PIC_REG_LED_CTRL_LED_SHIFT) & BOARD_PIC_REG_LED_CTRL_LED_MASK;
   BOARD_picRegBitsSet( BOARD_PIC_REG_LED_CTRL, enable, mask );
   return;
}