/* Enable EFM32 access to periheral on DVK board.  */
void DVK_enablePeripheral(DVKPeripheral peri)
/* Enable EFM32 access to periheral on DVK board.  */
void DVK_enablePeripheral(DVKPeripheral peri)
{
  uint16_t bit;
  uint16_t tmp;
  bit = (uint16_t) peri;
  tmp = DVK_readRegister(BC_PERCTRL);
  tmp |= bit;
  if ((peri == DVK_RS232A) || (peri == DVK_RS232B))
  {
    tmp &= ~(BC_PERCTRL_RS232_SHUTDOWN);
  }
  if (peri == DVK_IRDA)
  {
    tmp &= ~(BC_PERCTRL_IRDA_SHUTDOWN);
  }
  DVK_writeRegister(BC_PERCTRL, tmp);
}