diff options
| author | Damien George | 2015-02-13 15:04:53 +0000 |
|---|---|---|
| committer | Damien George | 2015-02-13 15:04:53 +0000 |
| commit | 0b32e50365b6e36474e183a7240ccfc8fa56830a (patch) | |
| tree | 101cf35f6844c50672af4f15b5866e226bcb47d9 /cc3200/hal/cc3200_hal.h | |
| parent | c385a639e6316cba4ff0e7a859325807857d8f00 (diff) | |
stmhal: Make pybstdio usable by other ports, and use it.
Now all ports can use pybstdio.c to provide sys.stdin/stdout/stderr, so
long as they implement mp_hal_stdin_* and mp_hal_stdout_* functions.
Diffstat (limited to 'cc3200/hal/cc3200_hal.h')
| -rw-r--r-- | cc3200/hal/cc3200_hal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc3200/hal/cc3200_hal.h b/cc3200/hal/cc3200_hal.h index 9562c827e..b738ff669 100644 --- a/cc3200/hal/cc3200_hal.h +++ b/cc3200/hal/cc3200_hal.h @@ -63,4 +63,9 @@ extern uint32_t HAL_GetTick(void); extern void HAL_Delay(uint32_t delay); extern void mp_hal_set_interrupt_char (int c); +int mp_hal_stdin_rx_chr(void); +void mp_hal_stdout_tx_str(const char *str); +void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len); +void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len); + #endif /* CC3200_LAUNCHXL_HAL_CC3200_HAL_H_ */ |
