forked from Imagelibrary/rtems
clock: Remove Clock_exit() from API
This function is no longer supported by the standard clock driver implementation (clockimpl.h). Update #3436.
This commit is contained in:
@@ -197,17 +197,6 @@ int clockIsOn(void* unused)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Clock_exit
|
||||
*
|
||||
* This routine allows the clock driver to exit by masking the interrupt and
|
||||
* disabling the clock's counter.
|
||||
*/
|
||||
void Clock_exit( void )
|
||||
{
|
||||
(void) BSP_disconnect_clock_handler ();
|
||||
}
|
||||
|
||||
/*
|
||||
* Clock_initialize
|
||||
*
|
||||
|
||||
@@ -58,7 +58,7 @@ volatile uint32_t Clock_driver_ticks;
|
||||
static uint32_t pit_value, tick_time;
|
||||
static bool auto_restart;
|
||||
|
||||
void Clock_exit( void );
|
||||
static void Clock_exit( void );
|
||||
|
||||
static inline uint32_t get_itimer(void)
|
||||
{
|
||||
|
||||
@@ -167,15 +167,6 @@ static int ppc_clock_exception_handler_ppc405(BSP_Exception_frame *frame, unsign
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Clock_exit(void)
|
||||
{
|
||||
/* Set the decrementer to the maximum value */
|
||||
ppc_set_decrementer_register( PPC_CLOCK_DECREMENTER_MAX);
|
||||
|
||||
/* Use default clock handler */
|
||||
ppc_clock_tick = ppc_clock_no_tick;
|
||||
}
|
||||
|
||||
rtems_device_driver Clock_initialize(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
|
||||
@@ -52,8 +52,6 @@ extern int BSP_connect_clock_handler(rtems_isr_entry);
|
||||
extern int BSP_disconnect_clock_handler(void);
|
||||
extern uint32_t bsp_clicks_per_usec;
|
||||
|
||||
void Clock_exit( void );
|
||||
|
||||
/*
|
||||
* ISR Handler
|
||||
*/
|
||||
@@ -119,7 +117,7 @@ int clockIsOn(void* unused)
|
||||
* Called via atexit()
|
||||
* Remove the clock interrupt handler by setting handler to NULL
|
||||
*/
|
||||
void Clock_exit(void)
|
||||
static void Clock_exit(void)
|
||||
{
|
||||
(void) BSP_disconnect_clock_handler ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user