AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/pmic/pmic.h
static inline void
pmic_set_vector_location (enum pmic_vector vector)
{
  uint8_t ctrl = PMIC.CTRL;

  Assert (vector < PMIC_NR_OF_VECTORS);

  switch (vector)
    {
    case PMIC_VEC_APPLICATION:
      ctrl &= ~PMIC_IVSEL_bm;
      break;

    case PMIC_VEC_BOOT:
      ctrl |= PMIC_IVSEL_bm;
      break;

    default:
      break;
    }

  ccp_write_io ((uint8_t *) & PMIC.CTRL, ctrl);
}
/**
 * \brief Set location of interrupt vectors.
 *
 * \param vector Location to use for interrupt vectors.
 */
\brief Set location of interrupt vectors.
\param vector Location to use for interrupt vectors.
\ brief Set location of interrupt vectors . \ param vector Location to use for interrupt vectors .
static inline void
pmic_set_vector_location (enum pmic_vector vector)
{
  uint8_t ctrl = PMIC.CTRL;
  Assert (vector < PMIC_NR_OF_VECTORS);
  switch (vector)
    {
    case PMIC_VEC_APPLICATION:
      ctrl &= ~PMIC_IVSEL_bm;
      break;
    case PMIC_VEC_BOOT:
      ctrl |= PMIC_IVSEL_bm;
      break;
    default:
      break;
    }
  ccp_write_io ((uint8_t *) & PMIC.CTRL, ctrl);
}
static inline void pmic_set_vector_location ( enum pmic_vector vector ) { uint8_t ctrl = PMIC . CTRL ; Assert ( vector < PMIC_NR_OF_VECTORS ) ; switch ( vector ) { case PMIC_VEC_APPLICATION : ctrl &= ~ PMIC_IVSEL_bm ; break ; case PMIC_VEC_BOOT : ctrl |= PMIC_IVSEL_bm ; break ; default : break ; } ccp_write_io ( ( uint8_t * ) & PMIC . CTRL , ctrl ) ; }
\brief Set location of interrupt vectors.
\ brief Set location of interrupt vectors .