summaryrefslogtreecommitdiff
path: root/src/lpc/lpc.h
Commit message (Collapse)AuthorAge
* altos: Fix ISR declarations to make them non-weakKeith Packard2019-02-21
| | | | | | | | | | In my zeal to eliminate warnings, I added declarations of all ISR functions to a shared header file. However, I managed to include the 'weak' declaration, which meant that the intended ISR functions were as weak as the 'default' ISR functions. This left all interrupts non-functional, which doesn't make for a happy program. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Declare all public functions in header filesKeith Packard2019-02-18
| | | | | | | Including interrupt vectors to catch mis-spellings. Working toward supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Add fast timerKeith Packard2016-03-26
| | | | | | This offers a faster timer callback for higher-precision operation Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Missing */ in definition of PIO0_4Keith Packard2013-12-20
| | | | | | Would maek using these values pretty hard. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Add boot loaderKeith Packard2013-06-24
| | | | | | Support the USB boot loader, add USB pull-up support. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Don't disable all interrupts when disabling one interruptKeith Packard2013-06-22
| | | | | | | | | The nvic iser and icer registers read value indicates all enabled interrupts, icer writes disable the set interrupts. Re-writing icer with the current value ends up disabling all interrupts, not exactly what we wanted. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Enable brown-out-detectorKeith Packard2013-06-22
| | | | | | Make sure the processor does something sensible when the power disappears. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Filter ADC inputsKeith Packard2013-06-15
| | | | | | | They're amazingly noisy on EasyMini, so just filter them as the only thing we use them for is battery and pyro numbers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Allow for alternate SPI SCLK0 pin usageKeith Packard2013-05-19
| | | | | | | SPI SCLK0 can appear on three different pins; let the application configure which one it wants. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Fix beeper driverKeith Packard2013-05-19
| | | | | | | | Set prescale limit, not current prescale value (pr instead of pc). Flip output 1 on PWM match (set emc toggle for channel 1). Don't hold counter in reset (turn off CRST bit). Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: add gpio int, spi, adc and ct32b defines to lpc.hKeith Packard2013-05-18
| | | | | | Lots more devices Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Clean up broken IOCONF definesKeith Packard2013-05-18
| | | | | | Missing comment closes Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Get USB workingKeith Packard2013-05-17
| | | | | | | 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>
* altos: Finish off LPC USB register definitionsKeith Packard2013-05-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Start adding USB register definesKeith Packard2013-05-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Start adding USB register definitionsKeith Packard2013-05-17
| | | | | | Just the bare struct, no defines yet. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Get USART runningKeith Packard2013-05-17
| | | | | | Adds a simple demo thread that spews data to the serial port Signed-off-by: Keith Packard <keithp@keithp.com>
* lpc: Initial lpcxpresso bitsKeith Packard2013-05-17
This gets the LPC11U14 clock set to the PLL and blinks the LED. Signed-off-by: Keith Packard <keithp@keithp.com>