Skip to content

Commit e0b0fdc

Browse files
committed
pbio/sys/core: Drop supervisor.
This didn't too as much as we initially anticipated. The remaining components have been moved to their relevant existing system modules. The only remaining component is the watchdog reset, which fits well in the main system loop.
1 parent c8e262a commit e0b0fdc

File tree

4 files changed

+5
-36
lines changed

4 files changed

+5
-36
lines changed

bricks/_common/sources.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ PBIO_SRC_C = $(addprefix lib/pbio/,\
240240
sys/status.c \
241241
sys/storage_settings.c \
242242
sys/storage.c \
243-
sys/supervisor.c \
244243
)
245244

246245
# LEGO specification library

lib/pbio/sys/core.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include <stdint.h>
55

6+
#include <pbdrv/watchdog.h>
7+
68
#include <pbio/main.h>
79
#include <pbio/os.h>
810

@@ -15,7 +17,6 @@
1517
#include "light.h"
1618
#include "light_matrix.h"
1719
#include "storage.h"
18-
#include "supervisor.h"
1920
#include "program_stop.h"
2021

2122
uint32_t pbsys_init_busy_count;
@@ -36,8 +37,10 @@ PROCESS_THREAD(pbsys_system_process, ev, data) {
3637
etimer_reset(&timer);
3738
pbsys_battery_poll();
3839
pbsys_hmi_poll();
39-
pbsys_supervisor_poll();
4040
pbsys_program_stop_poll();
41+
42+
// keep the hub from resetting itself
43+
pbdrv_watchdog_update();
4144
}
4245
}
4346

lib/pbio/sys/supervisor.c

Lines changed: 0 additions & 24 deletions
This file was deleted.

lib/pbio/sys/supervisor.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)