summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/pybuart.h
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-03-17 11:05:59 +0100
committerdanicampora <danicampora@gmail.com>2015-03-17 13:26:07 +0100
commit6de1b39368efc27d7a90d64f28f99b9e46422f5b (patch)
treecfb27f5e12cde99857e795ed031aed6db51a6e7c /cc3200/mods/pybuart.h
parentfcf6db06950c00d83d7d02b6ab0a23de52f27b01 (diff)
downloadmicropython-6de1b39368efc27d7a90d64f28f99b9e46422f5b.tar.gz
micropython-6de1b39368efc27d7a90d64f28f99b9e46422f5b.zip
cc3200: Make peripheral objects static.
This prevents duplication of objects in the sleep list. Also helps with reducing the code size by ~100 bytes.
Diffstat (limited to 'cc3200/mods/pybuart.h')
-rw-r--r--cc3200/mods/pybuart.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc3200/mods/pybuart.h b/cc3200/mods/pybuart.h
index 44660aabe4..73eab476e2 100644
--- a/cc3200/mods/pybuart.h
+++ b/cc3200/mods/pybuart.h
@@ -29,7 +29,6 @@
#define PYBUART_H_
typedef enum {
- PYB_UART_NONE = -1,
PYB_UART_0 = 0,
PYB_UART_1 = 1,
PYB_NUM_UARTS
@@ -39,7 +38,7 @@ typedef struct _pyb_uart_obj_t pyb_uart_obj_t;
extern const mp_obj_type_t pyb_uart_type;
void uart_init0(void);
-void uart_deinit (void);
+mp_obj_t pyb_uart_deinit(mp_obj_t self_in);
bool uart_rx_any(pyb_uart_obj_t *uart_obj);
int uart_rx_char(pyb_uart_obj_t *uart_obj);
bool uart_tx_char(pyb_uart_obj_t *self, int c);