![Damien George](/assets/img/avatar_default.png)
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
14 lines
346 B
C
14 lines
346 B
C
#ifndef MICROPY_INCLUDED_TEENSY_REG_H
|
|
#define MICROPY_INCLUDED_TEENSY_REG_H
|
|
|
|
typedef struct {
|
|
const char *name;
|
|
mp_uint_t offset;
|
|
} reg_t;
|
|
|
|
#define REG_ENTRY(st, name) { #name, offsetof(st, name) }
|
|
|
|
mp_obj_t reg_cmd(void *base, reg_t *reg, mp_uint_t num_reg, uint n_args, const mp_obj_t *args);
|
|
|
|
#endif // MICROPY_INCLUDED_TEENSY_REG_H
|