reg.h 346 B

12345678910111213
  1. #ifndef MICROPY_INCLUDED_TEENSY_REG_H
  2. #define MICROPY_INCLUDED_TEENSY_REG_H
  3. typedef struct {
  4. const char *name;
  5. mp_uint_t offset;
  6. } reg_t;
  7. #define REG_ENTRY(st, name) { #name, offsetof(st, name) }
  8. mp_obj_t reg_cmd(void *base, reg_t *reg, mp_uint_t num_reg, uint n_args, const mp_obj_t *args);
  9. #endif // MICROPY_INCLUDED_TEENSY_REG_H