Project/drivers/c/timers.c
//*****************************************************************************
// Verifies that the base address is a valid GPIO base address
//*****************************************************************************
Verifies that the base address is a valid GPIO base address
Verifies that the base address is a valid GPIO base address
static bool verify_base_addr(uint32_t base_addr)
{
   switch( base_addr )
   {
     case TIMER0_BASE:
     case TIMER1_BASE:
     case TIMER2_BASE:
     case TIMER3_BASE:
     case TIMER4_BASE:
     case TIMER5_BASE:
     {
       return true;
     }
     default:
     {
       return false;
     }
   }
}
static bool verify_base_addr ( uint32_t base_addr ) { switch ( base_addr ) { case TIMER0_BASE : case TIMER1_BASE : case TIMER2_BASE : case TIMER3_BASE : case TIMER4_BASE : case TIMER5_BASE : { return true ; } default : { return false ; } } }
Verifies that the base address is a valid GPIO base address
Verifies that the base address is a valid GPIO base address