diff options
| author | Dave Hylands | 2014-08-20 13:21:11 -0700 |
|---|---|---|
| committer | Dave Hylands | 2014-09-19 09:26:13 -0700 |
| commit | becbc87fd73c98664b472b4a06c2b54558dd5669 (patch) | |
| tree | 44b1e1daaab750fa2c10899bc9c3489ab4ec738f /teensy/reg.h | |
| parent | 2842945e760c98793cb0c62a66345ab8850afc1a (diff) | |
Add Timer support (PWM, OC, IC) for stmhal and teensy
Diffstat (limited to 'teensy/reg.h')
| -rw-r--r-- | teensy/reg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/teensy/reg.h b/teensy/reg.h new file mode 100644 index 000000000..5d1d27443 --- /dev/null +++ b/teensy/reg.h @@ -0,0 +1,8 @@ +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); |
