mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-12 01:08:00 -06:00
pru: Support config_reset command to manually reset mcu
Add support for resetting the MCU via a software only mechanism. This is useful on the PRU. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
7b7f57e01c
commit
7083a33ecd
6 changed files with 52 additions and 12 deletions
|
@ -10,6 +10,7 @@ void *oid_lookup(uint8_t oid, void *type);
|
|||
void *oid_alloc(uint8_t oid, void *type, uint16_t size);
|
||||
void *oid_next(uint8_t *i, void *type);
|
||||
void stats_update(uint32_t start, uint32_t cur);
|
||||
void config_reset(uint32_t *args);
|
||||
|
||||
#define foreach_oid(pos,data,oidtype) \
|
||||
for (pos=-1; (data=oid_next(&pos, oidtype)); )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue