summaryrefslogtreecommitdiffstatshomepage
path: root/zephyr/src/zephyr_getchar.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-22 20:19:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-10-10 01:35:39 +0300
commit9ad50321644131585e7860c79e085e458c49fbac (patch)
treec5dac129e0b26ee4e9864ca8a0f16dfed36ca34f /zephyr/src/zephyr_getchar.h
parent9d9efc0c5aaf889e8c041278e0fec7baa9e6dc40 (diff)
downloadmicropython-9ad50321644131585e7860c79e085e458c49fbac.tar.gz
micropython-9ad50321644131585e7860c79e085e458c49fbac.zip
zephyr: Add zephyr_getchar module to handle console input.
From https://github.com/pfalcon/zephyr_getchar .
Diffstat (limited to 'zephyr/src/zephyr_getchar.h')
-rw-r--r--zephyr/src/zephyr_getchar.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/zephyr/src/zephyr_getchar.h b/zephyr/src/zephyr_getchar.h
new file mode 100644
index 0000000000..fb5f19a7b4
--- /dev/null
+++ b/zephyr/src/zephyr_getchar.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2016 Linaro
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <stdint.h>
+
+void zephyr_getchar_init(void);
+uint8_t zephyr_getchar(void);