diff options
| author | Daniel Campora | 2015-09-07 21:19:11 +0200 |
|---|---|---|
| committer | Daniel Campora | 2015-09-10 08:00:12 +0200 |
| commit | 4d7fa05b43cb3db88a6ecacf8406d2636f202aba (patch) | |
| tree | e9333fd94b157e2274cad16c53d2900216099a43 /cc3200/mods/pybpin.h | |
| parent | 4054c4eadd13fa3aaacb96202cdfb1a666484b5c (diff) | |
cc3200: Improve Pin and UART implementation.
Deassign pins af before assigning. Make uart.any() return the
correct value everytime, this requires interrupts to be always
enabled.
Diffstat (limited to 'cc3200/mods/pybpin.h')
| -rw-r--r-- | cc3200/mods/pybpin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cc3200/mods/pybpin.h b/cc3200/mods/pybpin.h index 4c49e63ab..f03a998f5 100644 --- a/cc3200/mods/pybpin.h +++ b/cc3200/mods/pybpin.h @@ -140,5 +140,6 @@ 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); #endif // PYBPIN_H_ |
