]> cloudbase.mooo.com Git - z180-stamp.git/blob - include/con-utils.h
Adaptions for fatfs R0.13b
[z180-stamp.git] / include / con-utils.h
1 /*
2 * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7 /*
8 * Console utilities
9 */
10
11 #ifndef CON_UTILS_H
12 #define CON_UTILS_H
13
14 uint_fast8_t tstc(void);
15
16 int my_getchar(uint_fast8_t waitforchar);
17
18 /* test if ctrl-c was pressed */
19 uint_fast8_t ctrlc(void);
20
21
22 /* pass 1 to disable ctrlc() checking, 0 to enable.
23 * returns previous state
24 */
25 uint_fast8_t disable_ctrlc(uint_fast8_t disable);
26
27 uint_fast8_t had_ctrlc (void);
28 void clear_ctrlc(void);
29
30 #endif /* CON_UTILS_H */