diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-22 23:20:29 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-27 01:48:20 +0200 |
commit | dbdcb58d6413a907e5f4aed25eee85073ff7e575 (patch) | |
tree | 0ecc90d3a3a947639549afde2b94c3d35b13fc2a /cc3200/boards/cc3200_prefix.c | |
parent | 81d64ab939ff45e74b0154e4ce2d9c5d2cfe6328 (diff) | |
download | micropython-dbdcb58d6413a907e5f4aed25eee85073ff7e575.tar.gz micropython-dbdcb58d6413a907e5f4aed25eee85073ff7e575.zip |
cc3200: New irq API, affects all classes that provide the irq method.
Diffstat (limited to 'cc3200/boards/cc3200_prefix.c')
-rw-r--r-- | cc3200/boards/cc3200_prefix.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/cc3200/boards/cc3200_prefix.c b/cc3200/boards/cc3200_prefix.c index 520ea2c5d9..9712857453 100644 --- a/cc3200/boards/cc3200_prefix.c +++ b/cc3200/boards/cc3200_prefix.c @@ -52,16 +52,18 @@ #define PIN(p_pin_name, p_port, p_bit, p_pin_num, p_af_list, p_num_afs) \ { \ { &pin_type }, \ - .name = MP_QSTR_ ## p_pin_name, \ - .port = PORT_A ## p_port, \ - .af_list = (p_af_list), \ - .pull = PIN_TYPE_STD, \ - .bit = (p_bit), \ - .pin_num = (p_pin_num), \ - .af = PIN_MODE_0, \ - .strength = PIN_STRENGTH_4MA, \ - .mode = GPIO_DIR_MODE_IN, \ - .num_afs = (p_num_afs), \ - .value = 0, \ - .used = false, \ + .name = MP_QSTR_ ## p_pin_name, \ + .port = PORT_A ## p_port, \ + .af_list = (p_af_list), \ + .pull = PIN_TYPE_STD, \ + .bit = (p_bit), \ + .pin_num = (p_pin_num), \ + .af = PIN_MODE_0, \ + .strength = PIN_STRENGTH_4MA, \ + .mode = GPIO_DIR_MODE_IN, \ + .num_afs = (p_num_afs), \ + .value = 0, \ + .used = false, \ + .irq_trigger = 0, \ + .irq_flags = 0, \ } |