projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Define wm8731 context, add log.
[bertos.git]
/
bertos
/
drv
/
wm8731.h
diff --git
a/bertos/drv/wm8731.h
b/bertos/drv/wm8731.h
index 54e5ca9cf74704c9e249e442ab443a9da37af3ca..78269dcf1f19049b40f31a00e3fc7418a74b2d2a 100644
(file)
--- a/
bertos/drv/wm8731.h
+++ b/
bertos/drv/wm8731.h
@@
-43,6
+43,13
@@
#ifndef DRV_WM8731_H
#define DRV_WM8731_H
-void wm8731_init(void);
+#include <drv/i2c.h>
+
+typedef struct Wm8731
+{
+ I2c *i2c;
+} Wm8731;
+
+void wm8731_init(Wm8731 *ctx, I2c *i2c);
#endif /* DRV_WM8731_H */