Skip to content

Commit 568b358

Browse files
authored
Merge pull request #715 from engigeer/PR_picohal_plugin_init
add Picohal plugin init and spindle define
2 parents 16aca4e + 0f8012f commit 568b358

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

expanders_init.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ extern void pca9654e_init(void);
6363

6464
// ModBus expanders
6565

66-
//
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+
#endif
6776

6877
// CANBus expanders
6978

@@ -88,4 +97,9 @@ static inline void io_expanders_init (void)
8897
#if PCA9654E_ENABLE
8998
pca9654e_init();
9099
#endif
100+
101+
#if PICOHAL_IO_ENABLE
102+
picohal_io_init();
103+
#endif
104+
91105
}

0 commit comments

Comments
 (0)