mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-12 01:08:00 -06:00
Initial commit of source code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
37a91e9c10
commit
f582a36e4d
71 changed files with 9950 additions and 0 deletions
23
src/basecmd.h
Normal file
23
src/basecmd.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#ifndef __BASECMD_H
|
||||
#define __BASECMD_H
|
||||
|
||||
#include <stdint.h> // uint8_t
|
||||
|
||||
struct move {
|
||||
uint32_t interval;
|
||||
int16_t add;
|
||||
uint16_t count;
|
||||
struct move *next;
|
||||
uint8_t flags;
|
||||
};
|
||||
|
||||
void move_free(struct move *m);
|
||||
struct move *move_alloc(void);
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue