diff options
author | Keith Packard <keithp@keithp.com> | 2013-05-17 03:36:47 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-17 03:50:07 -0700 |
commit | ac089d4fb930b7dbc4161259fd9bddba94395ebc (patch) | |
tree | ee17589ffa43eee5be5e1eb1b4fac67ebb581624 /src/lpc/ao_arch.h | |
parent | 185e6d15bcda229949a984910d7394203d301db9 (diff) |
altos/lpc: Get USB working
The lpc demo now has a USB command line.
Also allocates system stack so we know when ram is tight at build time
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc/ao_arch.h')
-rw-r--r-- | src/lpc/ao_arch.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lpc/ao_arch.h b/src/lpc/ao_arch.h index 61182160..99c646f9 100644 --- a/src/lpc/ao_arch.h +++ b/src/lpc/ao_arch.h @@ -45,7 +45,10 @@ #define __interrupt(n) #define __at(n) -#define ao_arch_reboot() +#define ao_arch_reboot() arm_scb.aircr = ((0x05fa << 16) | \ + (0 << 15) | \ + (1 << 2) | \ + (0 << 1)) #define ao_arch_nop() asm("nop") @@ -114,7 +117,8 @@ extern const uint32_t ao_radio_cal; void ao_adc_init(void); - +#define AO_USB_OUT_EP 2 +#define AO_USB_IN_EP 3 void ao_serial_init(void); |