aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/pybpin.h
diff options
context:
space:
mode:
authorDaniel Campora2015-09-07 21:19:11 +0200
committerDaniel Campora2015-09-10 08:00:12 +0200
commit4d7fa05b43cb3db88a6ecacf8406d2636f202aba (patch)
treee9333fd94b157e2274cad16c53d2900216099a43 /cc3200/mods/pybpin.h
parent4054c4eadd13fa3aaacb96202cdfb1a666484b5c (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.h1
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_