Exemplo n.º 1
0
void PIOINT1_IRQHandler(void)
{
  uint32_t regVal;

#if defined CFG_ALTRESET && CFG_ALTRESET_PORT == 1
  regVal = gpioIntStatus(CFG_ALTRESET_PORT, CFG_ALTRESET_PIN);
  if (regVal)
  {
    // Cause a reset and wait
    cpuReset();
  }
#endif

#ifdef CFG_CHIBI
  // Check for interrupt on 1.8
  regVal = gpioIntStatus(1, 8);
  if (regVal)
  {
    chibi_counter++;
    chb_ISR_Handler();
    gpioIntClear(1, 8);
  }		
#else
  regVal = gpioIntStatus(1, 1);
  if ( regVal )
  {
    gpioIntClear(1, 1);
  }
#endif

  return;
}
Exemplo n.º 2
0
void PIOINT1_IRQHandler(void)
{
  uint32_t regVal;

  gpio1_counter++;

#ifdef CFG_CHIBI
  // Check for interrupt on 1.8
  regVal = gpioIntStatus(1, 8);
  if (regVal)
  {
    chibi_counter++;
    chb_ISR_Handler();
    gpioIntClear(1, 8);
  }		
#else
  regVal = gpioIntStatus(1, 1);
  if ( regVal )
  {
    p1_1_counter++;
    gpioIntClear(1, 1);
  }
#endif

  return;
}
Exemplo n.º 3
0
Arquivo: gpio.c Projeto: DragonWar/RSL
void PIOINT3_IRQHandler(void)
{
  uint32_t regVal;

 #ifdef CFG_CHIBI
  // Check for interrupt on 3.1
  regVal = gpioIntStatus(3, 1);
  if ( regVal )
  {
    chibi_counter++;
    chb_ISR_Handler();
    gpioIntClear(3, 1);
  }		
#else
  regVal = gpioIntStatus(3, 1);
  if ( regVal )
  {
    gpioIntClear(3, 1);
  }		
#endif

 return;
}