summaryrefslogtreecommitdiff
path: root/stmhal/pybstdio.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-08-10 17:50:28 +0100
committerDamien George <damien.p.george@gmail.com>2014-08-10 17:50:28 +0100
commit30dd23aa7f2c7f142bab66d189f7f479091cf161 (patch)
treeba241aa796a558d212d31bcced54509164958896 /stmhal/pybstdio.c
parent0c64c634ca15627b93c0f029835c9725d617fd77 (diff)
doc: Document gc, sys, math, cmath.
Diffstat (limited to 'stmhal/pybstdio.c')
-rw-r--r--stmhal/pybstdio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/pybstdio.c b/stmhal/pybstdio.c
index 2121a6cbb..b7756d63e 100644
--- a/stmhal/pybstdio.c
+++ b/stmhal/pybstdio.c
@@ -177,6 +177,10 @@ STATIC const mp_obj_type_t stdio_obj_type = {
.locals_dict = (mp_obj_t)&stdio_locals_dict,
};
+/// \moduleref sys
+/// \constant stdin - standard input (connected to USB VCP, and optional UART object)
+/// \constant stdout - standard output (connected to USB VCP, and optional UART object)
+/// \constant stderr - standard error (connected to USB VCP, and optional UART object)
const pyb_stdio_obj_t mp_sys_stdin_obj = {{&stdio_obj_type}, .fd = STDIO_FD_IN};
const pyb_stdio_obj_t mp_sys_stdout_obj = {{&stdio_obj_type}, .fd = STDIO_FD_OUT};
const pyb_stdio_obj_t mp_sys_stderr_obj = {{&stdio_obj_type}, .fd = STDIO_FD_ERR};