|
@@ -26,8 +26,15 @@
|
26
|
26
|
#include <pdb_msg.h>
|
27
|
27
|
|
28
|
28
|
|
|
29
|
+/* Version information */
|
|
30
|
+#define PDB_LIB_VERSION "0.1.0"
|
|
31
|
+#define PDB_LIB_MAJOR 0
|
|
32
|
+#define PDB_LIB_MINOR 1
|
|
33
|
+#define PDB_LIB_PATCH 0
|
|
34
|
+
|
|
35
|
+
|
29
|
36
|
/*
|
30
|
|
- * Structure for PD Buddy firmware library configuration
|
|
37
|
+ * Structure for one USB port's PD Buddy firmware library configuration
|
31
|
38
|
*
|
32
|
39
|
* Contains working areas for statically allocated threads, and therefore must
|
33
|
40
|
* be statically allocated!
|
|
@@ -53,6 +60,8 @@ struct pdb_config {
|
53
|
60
|
|
54
|
61
|
/*
|
55
|
62
|
* Initialize the PD Buddy firmware library, starting all its threads
|
|
63
|
+ *
|
|
64
|
+ * The I2C driver must already be initialized before calling this function.
|
56
|
65
|
*/
|
57
|
66
|
void pdb_init(struct pdb_config *);
|
58
|
67
|
|