diff options
| author | Bdale Garbee <bdale@gag.com> | 2018-03-18 15:50:16 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2018-03-18 15:50:16 -0600 | 
| commit | 55b62bb5d6a9d6b484bcd0d802964d529dd5f9bb (patch) | |
| tree | 1a93442d43fcad172879d76629d4ed47ce3d6575 /src/lambdakey-v1.0/ao_scheme_os.h | |
| parent | 558d2c94fe8c49d0544a3e7bc5ba11b60c4faa1e (diff) | |
| parent | 59e23c27c2a85d7d748223e444b24d19937afe47 (diff) | |
Merge branch 'branch-1.8' into debian
Diffstat (limited to 'src/lambdakey-v1.0/ao_scheme_os.h')
| -rw-r--r-- | src/lambdakey-v1.0/ao_scheme_os.h | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lambdakey-v1.0/ao_scheme_os.h b/src/lambdakey-v1.0/ao_scheme_os.h index b3080f31..8af199c2 100644 --- a/src/lambdakey-v1.0/ao_scheme_os.h +++ b/src/lambdakey-v1.0/ao_scheme_os.h @@ -20,7 +20,7 @@  #include "ao.h" -#define AO_SCHEME_POOL		3584 +#define AO_SCHEME_POOL		3792  #define AO_SCHEME_TOKEN_MAX	64  #ifndef __BYTE_ORDER @@ -30,7 +30,7 @@  #endif  static inline int -ao_scheme_getc() { +_ao_scheme_getc() {  	static uint8_t	at_eol;  	int c; @@ -44,11 +44,7 @@ ao_scheme_getc() {  	return c;  } -static inline void -ao_scheme_os_flush(void) -{ -	flush(); -} +#define ao_scheme_getc(f) ({ (void) (f); _ao_scheme_getc(); })  static inline void  ao_scheme_abort(void) @@ -56,11 +52,13 @@ ao_scheme_abort(void)  	ao_panic(1);  } +#ifdef LEDS_AVAILABLE  static inline void  ao_scheme_os_led(int led)  {  	ao_led_set(led);  } +#endif  #define AO_SCHEME_JIFFIES_PER_SECOND	AO_HERTZ  | 
