Add iomux_from_timers() function to recover an IOMux from

the associated UCTimers
This commit is contained in:
Nils O. Selåsdal
2014-06-22 23:11:12 +02:00
parent 2c264a76b4
commit 2d1e7efc3e
4 changed files with 16 additions and 1 deletions
+5
View File
@@ -168,3 +168,8 @@ struct UCTimers *iomux_get_timers(struct IOMux *mux)
return &mux->timers;
}
struct IOMux *iomux_from_timers(struct UCTimers *timers)
{
return (struct IOMux*)timers; //timers is the 1. member of IOMux
}