mirror of
git://soft.sys114.com/klipper
synced 2026-02-07 13:00:25 +09:00
Detect the maximum size of each "move queue" item during the configuration phase instead of using the stepper move struct. This allows the stepper code to be contained entirely in stepper.c and it allows for future run time allocations from other types of objects. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
17 lines
427 B
C
17 lines
427 B
C
#ifndef __BASECMD_H
|
|
#define __BASECMD_H
|
|
|
|
#include <stdint.h> // uint8_t
|
|
|
|
void move_free(void *m);
|
|
void *move_alloc(void);
|
|
void move_request_size(int size);
|
|
void *lookup_oid(uint8_t oid, void *type);
|
|
void *alloc_oid(uint8_t oid, void *type, uint16_t size);
|
|
void *next_oid(uint8_t *i, void *type);
|
|
|
|
#define foreach_oid(pos,data,oidtype) \
|
|
for (pos=-1; (data=next_oid(&pos, oidtype)); )
|
|
|
|
#endif // basecmd.h
|