diff options
author | Daniel Campora <daniel@wipy.io> | 2015-09-08 15:07:42 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-09-10 08:00:24 +0200 |
commit | 359b4e9ed9738a1e71f9b4457cf9146b35d153d6 (patch) | |
tree | a7e5003d9b6a994675257d8b90d0f094980f5a6c /cc3200/mods/pybpin.h | |
parent | 1d399c3c888d1a6b21093b44272531cd14547b33 (diff) | |
download | micropython-359b4e9ed9738a1e71f9b4457cf9146b35d153d6.tar.gz micropython-359b4e9ed9738a1e71f9b4457cf9146b35d153d6.zip |
cc3200: Refactor pin af assigment functions.
Diffstat (limited to 'cc3200/mods/pybpin.h')
-rw-r--r-- | cc3200/mods/pybpin.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cc3200/mods/pybpin.h b/cc3200/mods/pybpin.h index f03a998f53..028818fa51 100644 --- a/cc3200/mods/pybpin.h +++ b/cc3200/mods/pybpin.h @@ -115,11 +115,6 @@ typedef struct { uint8_t used : 1; } pin_obj_t; -typedef struct { - pin_obj_t *pin; - uint8_t af_idx; -} pin_fn_t; - extern const mp_obj_type_t pin_type; typedef struct { @@ -139,7 +134,6 @@ extern const mp_obj_dict_t pin_board_pins_locals_dict; void pin_init0(void); void pin_config(pin_obj_t *self, int af, uint mode, uint type, int value, uint strength); pin_obj_t *pin_find(mp_obj_t user_obj); -int8_t pin_find_af_index(const pin_obj_t* pin, uint8_t fn, uint8_t unit, uint8_t type); -void pin_free_af_from_pins (uint8_t fn, uint8_t unit, uint8_t type); +void pin_assign_pins_af (mp_obj_t *pins, uint32_t n_pins, uint32_t pull, uint32_t fn, uint32_t unit); #endif // PYBPIN_H_ |