-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.c
41 lines (37 loc) · 1 KB
/
app.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "soes/ecat_slv.h"
/* BUILD */
#include "hooks.c"
#include "lan9252.c"
/**/
static esc_cfg_t _cfg = {
.user_arg = NULL,
.use_interrupt = 0,
.watchdog_cnt = 0,
.skip_default_initialization = false,
.set_defaults_hook = NULL,
.pre_state_change_hook = NULL,
.post_state_change_hook = NULL,
.application_hook = NULL,
.safeoutput_override = NULL,
.pre_object_download_hook = NULL,
.post_object_download_hook = NULL,
.pre_object_upload_hook = NULL,
.post_object_upload_hook = NULL,
.rxpdo_override = NULL,
.txpdo_override = NULL,
.esc_hw_interrupt_enable = NULL,
.esc_hw_interrupt_disable = NULL,
.esc_hw_eep_handler = NULL,
.esc_check_dc_handler = NULL,
.get_device_id = NULL,
};
void
setup(void) {
lan9252_init();
ecat_slv_init(&_cfg);
}
void
loop(void) {
ecat_slv_poll();
DIG_process(DIG_PROCESS_WD_FLAG);
}