X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fao_stdio.c;h=3dd457f7c63959d6da9b70363aca0d4db44960e4;hb=359ba0d9fc2c5947e6adc98bebcd061069c61e79;hp=6e1f5effde50409d1f89967381a9d5054ce8a05a;hpb=c754759a2d503633d527da4ebb20eb859cd506fd;p=fw%2Faltos diff --git a/src/ao_stdio.c b/src/ao_stdio.c index 6e1f5eff..3dd457f7 100644 --- a/src/ao_stdio.c +++ b/src/ao_stdio.c @@ -21,11 +21,11 @@ * Basic I/O functions to support SDCC stdio package */ -#define AO_NUM_STDIOS 2 +#define AO_NUM_STDIOS (HAS_USB + PACKET_HAS_SLAVE + USE_SERIAL_STDIN) static __xdata struct ao_stdio stdios[AO_NUM_STDIOS]; -static __data int8_t ao_cur_stdio; -static __data int8_t ao_num_stdios; +__data int8_t ao_cur_stdio; +__data int8_t ao_num_stdios; void putchar(char c)