Add accessor function to the uclock of an IOMux
This commit is contained in:
@@ -110,7 +110,11 @@ int iomux_unregister_fd(struct IOMux *mux, struct IOMuxFD *fd);
|
|||||||
*/
|
*/
|
||||||
int iomux_update_events(struct IOMux *mux, struct IOMuxFD *fd);
|
int iomux_update_events(struct IOMux *mux, struct IOMuxFD *fd);
|
||||||
|
|
||||||
|
/** Retreive the UCoreClock associated with the IOMux.
|
||||||
|
* Either a suitable internal clock is provided, or the
|
||||||
|
* same clock as created by iomux_create_ex.
|
||||||
|
*/
|
||||||
|
struct UCoreClock *iomux_get_clock(struct IOMux *mux);
|
||||||
/**
|
/**
|
||||||
* Convenience macro for setting the new event
|
* Convenience macro for setting the new event
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -139,6 +139,11 @@ int iomux_update_events(struct IOMux *mux, struct IOMuxFD *fd)
|
|||||||
return mux->update_events_impl(mux, fd);
|
return mux->update_events_impl(mux, fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct UCoreClock *iomux_get_clock(struct IOMux *mux)
|
||||||
|
{
|
||||||
|
return mux->uclock;
|
||||||
|
}
|
||||||
|
|
||||||
struct UCTimers *iomux_get_timers(struct IOMux *mux)
|
struct UCTimers *iomux_get_timers(struct IOMux *mux)
|
||||||
{
|
{
|
||||||
return &mux->timers;
|
return &mux->timers;
|
||||||
|
|||||||
Reference in New Issue
Block a user