diff options
| author | Keith Packard <keithp@keithp.com> | 2018-01-06 17:29:10 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2018-01-06 17:31:43 -0800 | 
| commit | 16061947d4376b41e596d87f97ec53ec29d17644 (patch) | |
| tree | f7ad08f8810b0ea78cf282048eacb46d441a2ee1 /src/lambdakey-v1.0/ao_pins.h | |
| parent | 39df849f0717d92a7d5bdf8aa5904bd4db1b467f (diff) | |
altos/scheme: Add ports. Split scheme code up.
And lots of other changes, including freeing unreferenced atoms.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lambdakey-v1.0/ao_pins.h')
| -rw-r--r-- | src/lambdakey-v1.0/ao_pins.h | 19 | 
1 files changed, 15 insertions, 4 deletions
| diff --git a/src/lambdakey-v1.0/ao_pins.h b/src/lambdakey-v1.0/ao_pins.h index 48b9db16..f330213d 100644 --- a/src/lambdakey-v1.0/ao_pins.h +++ b/src/lambdakey-v1.0/ao_pins.h @@ -19,23 +19,34 @@  #ifndef _AO_PINS_H_  #define _AO_PINS_H_ +#define fprintf(file, ...) 	({ (void) (file); printf(__VA_ARGS__); }) +#undef putc +#define putc(c,file) 		({ (void) (file); putchar(c); }) +#define fputs(s,file) 		({ (void) (file); printf("%s", s); }) +#define puts(s) 		({ printf("%s\n", s); }) +#undef getc +#define getc(file) 		({ (void) (file); getchar(); }) +  #define HAS_TASK	0  #define HAS_AO_DELAY	1 +#if 0  #define LED_PORT_ENABLE	STM_RCC_AHBENR_IOPBEN  #define LED_PORT	(&stm_gpiob)  #define LED_PIN_RED	4  #define AO_LED_RED	(1 << LED_PIN_RED)  #define AO_LED_PANIC	AO_LED_RED +#define LEDS_AVAILABLE	(AO_LED_RED) +#endif +  #define AO_CMD_LEN	128 -#define AO_LISP_POOL_TOTAL	3072 -#define AO_LISP_SAVE	1 +#define AO_LISP_POOL	5120  #define AO_STACK_SIZE	1024 +#if 0  /* need HSI active to write to flash */  #define AO_NEED_HSI	1 - -#define LEDS_AVAILABLE	(AO_LED_RED) +#endif  #define AO_POWER_MANAGEMENT	0 | 
