forked from Imagelibrary/rtems
nios2/nios2_iss/clock/clock.c: Fix warnings
This commit is contained in:
@@ -21,17 +21,18 @@
|
||||
#define Clock_driver_support_install_isr(_new, _old) \
|
||||
do { _old = (rtems_isr_entry)set_vector(_new, CLOCK_VECTOR, 1); } while(0)
|
||||
|
||||
|
||||
/*
|
||||
* Turn off the clock
|
||||
*/
|
||||
#define Clock_driver_support_shutdown_hardware() \
|
||||
do { CLOCK_REGS->control = ALTERA_AVALON_TIMER_CONTROL_STOP_MSK; } while(0)
|
||||
do { \
|
||||
CLOCK_REGS->control = ALTERA_AVALON_TIMER_CONTROL_STOP_MSK; \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
* Set up the clock hardware
|
||||
*/
|
||||
void Clock_driver_support_initialize_hardware(void)
|
||||
static void Clock_driver_support_initialize_hardware(void)
|
||||
{
|
||||
uint32_t period;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user