We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16aca4e + 0f8012f commit 568b358Copy full SHA for 568b358
expanders_init.h
@@ -63,7 +63,16 @@ extern void pca9654e_init(void);
63
64
// ModBus expanders
65
66
-//
+
67
68
+#if PICOHAL_IO_ENABLE
69
70
+#if !MODBUS_ENABLE
71
+#error "Modbus must be enabled to use the Picohal IO expander!"
72
+#endif
73
74
+extern void picohal_io_init (void);
75
76
77
// CANBus expanders
78
@@ -88,4 +97,9 @@ static inline void io_expanders_init (void)
88
97
#if PCA9654E_ENABLE
89
98
pca9654e_init();
90
99
#endif
100
101
102
+ picohal_io_init();
103
104
91
105
}
0 commit comments