AllJoyn/Samples/BACnetAdapter/bacnet-stack-0.8.2/ports/xplained/ASF/xmega/drivers/pmic/pmic.h
static inline void
pmic_set_scheduling (enum pmic_schedule schedule)
{
  Assert (schedule < PMIC_NR_OF_SCHEDULES);

  switch (schedule)
    {
    case PMIC_SCH_FIXED_PRIORITY:
      PMIC.CTRL &= ~PMIC_RREN_bm;
      PMIC.INTPRI = 0;
      break;

    case PMIC_SCH_ROUND_ROBIN:
      PMIC.CTRL |= PMIC_RREN_bm;
      break;

    default:
      break;
    };
}
/**
 * \brief Set interrupt scheduling for low-level interrupts.
 *
 * \param schedule Interrupt scheduling method to set.
 *
 * \note The low-priority vector, INTPRI, must be set to 0 when round-robin
 * scheduling is disabled to return to default interrupt priority order.
 */
\brief Set interrupt scheduling for low-level interrupts.
\param schedule Interrupt scheduling method to set.

\note The low-priority vector, INTPRI, must be set to 0 when round-robin
scheduling is disabled to return to default interrupt priority order.
\ brief Set interrupt scheduling for low - level interrupts . \ param schedule Interrupt scheduling method to set . \ note The low - priority vector INTPRI must be set to 0 when round - robin scheduling is disabled to return to default interrupt priority order .
static inline void
pmic_set_scheduling (enum pmic_schedule schedule)
{
  Assert (schedule < PMIC_NR_OF_SCHEDULES);
  switch (schedule)
    {
    case PMIC_SCH_FIXED_PRIORITY:
      PMIC.CTRL &= ~PMIC_RREN_bm;
      PMIC.INTPRI = 0;
      break;
    case PMIC_SCH_ROUND_ROBIN:
      PMIC.CTRL |= PMIC_RREN_bm;
      break;
    default:
      break;
    };
}
static inline void pmic_set_scheduling ( enum pmic_schedule schedule ) { Assert ( schedule < PMIC_NR_OF_SCHEDULES ) ; switch ( schedule ) { case PMIC_SCH_FIXED_PRIORITY : PMIC . CTRL &= ~ PMIC_RREN_bm ; PMIC . INTPRI = 0 ; break ; case PMIC_SCH_ROUND_ROBIN : PMIC . CTRL |= PMIC_RREN_bm ; break ; default : break ; } ; }
\brief Set interrupt scheduling for low-level interrupts.
\ brief Set interrupt scheduling for low - level interrupts .