diff options
| author | Daniel Campora | 2015-09-22 23:20:29 +0200 |
|---|---|---|
| committer | Daniel Campora | 2015-09-27 01:48:20 +0200 |
| commit | dbdcb58d6413a907e5f4aed25eee85073ff7e575 (patch) | |
| tree | 0ecc90d3a3a947639549afde2b94c3d35b13fc2a /cc3200/mods/pybpin.h | |
| parent | 81d64ab939ff45e74b0154e4ce2d9c5d2cfe6328 (diff) | |
cc3200: New irq API, affects all classes that provide the irq method.
Diffstat (limited to 'cc3200/mods/pybpin.h')
| -rw-r--r-- | cc3200/mods/pybpin.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cc3200/mods/pybpin.h b/cc3200/mods/pybpin.h index 72a90874c..3e7784926 100644 --- a/cc3200/mods/pybpin.h +++ b/cc3200/mods/pybpin.h @@ -110,9 +110,11 @@ typedef struct { int8_t af; uint8_t strength; uint8_t mode; // this is now a combination of type and mode - uint8_t num_afs: 6; // up to 63 AFs - uint8_t value : 1; - uint8_t used : 1; + const uint8_t num_afs; // 255 AFs + uint8_t value; + uint8_t used; + uint8_t irq_trigger; + uint8_t irq_flags; } pin_obj_t; extern const mp_obj_type_t pin_type; |
