aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc43xx
AgeCommit message (Collapse)Author
2013-02-26Fix all remaining lib warnings.Piotr Esden-Tempski
2013-02-26Added more warning CFLAGS to all makefiles.Piotr Esden-Tempski
2012-10-19define platform specific constants for all chipschrysn
previously, only stm32 chips passed the information about which chip to build on into the compiler. this information is essential to dispatch, thus defining LPC13XX, LPC17XX, LPC43XX and LM3S in analogy to STM32F1..4.
2012-10-19build common .o files everywhere (fixes issue #29)chrysn
vector.o, nvic.o, scb.o and assert.o are available on every platform, but at least some of them differ between the implementations. they already got built explicityly on some platforms; now adding them to the common Makefile.include.
2012-10-18unified systick handlingchrysn
the only change this results in in the example binaries is in the hackrf-jellybean/systick example, where the the check in systick_set_clocksource for overflowing from the stm32 area gets used.
2012-10-18fix bug resulting from equally named fileschrysn
the local vector.o files shadowed the ../cm3/vector.c from VPATH, resulting in empty reset vectors.
2012-10-18drop two-line vector.c dispatchers in favor of central dispatchchrysn
2012-10-18unified nvic.cchrysn
2012-10-05unified vector table initializationchrysn
the cortex generic interrupts get moved to lib/cm3/vector.c, the platorms' individual irq names, initialization and handler prototypes go to platoform specific irq.h files. as the vector.c file heavily depends on platoform specific headers, it can't be built once-and-for-all in lib/cm3/, so there are inclusion stubs in the various architecture dirs; this might be better solved with Makefile / include path handling. one particular file is lib/lpc43xx/vector.c; that platform's initialization code contains an additional section to copy everything from flash to ram (which probably performs better there). that code still resides in the inclusion stub, and gets mashed in using defines. would need a cleaner implementation together with the Makefile solution. this commit contains some files of the upcoming efm32 branch, from which it was cherry-picked. the .bin files produced from before and after this commit only differ in lpc43xx, where the startup sequence was subtly modified.
2012-10-02Add assert macros to aid in debugging.Tomaz Solc
Adds libopencm3/cm3/assert.h header that provides assertion check macros similar to those provided by the standard C library. Thanks to Nicolas Schodet for help.
2012-09-03Support exceptions on all targetsNicolas Schodet
2012-09-03Use a specific symbol for data source address in flashNicolas Schodet
That way, data source address does not depend on any other unrelated change in linker script. This also fixes cases when .data input section is aligned on 8 bytes. The new version does not provide any address for the output section so that it is aligned to the strictest input section. The _data_loadaddr symbol will always take this alignment into account.
2012-09-03Clean up and make linker scripts more uniformNicolas Schodet
This includes: - fix some comments indent, - add entry point, - align exported symbols, - remove unneeded "." assignments.
2012-08-13Changed local build target for library and linker files.Piotr Esden-Tempski
- The library files are now being built into the lib subdirectory of the source. - The linker files for each library are being copied into the lib source subdirectory. Motivation: The relative locations of files in the source directory after make are now the same as after make install now. This makes it easier to reuse examples with their makefiles outside of the libopencm3 sourcecode directory.
2012-06-25* Updated GPIO added gpio_toggle() function.TitanMKD
* Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld).
2012-06-16Merge branch 'master' of git://github.com/jboone/libopencm3TitanMKD
2012-06-15Modified SSP driver to wait for data to be sent before returning. This is ↵Jared Boone
critical when controlling device CS# pins via GPIO. Long-term, it might be better to have a different API that permits this level of control.
2012-06-13Fix Linker bug copy ROM to RAM & exec from RAM (need more test).TitanMKD
2012-06-10Added ROM to RAM code copy & exec with example of how to use it ↵TitanMKD
(miniblink_rom_to_ram).
2012-06-09Work on scs.h register and also nvic.h.TitanMKD
ARM Interrupt API (see nvic.h). ARM SysTick API (see systick.h). Example using both Interrupt and SysTick and blink LED1/2/3 see systickdemo.c.
2012-06-06changed I2C to run directly from IRCMichael Ossmann
2012-06-06Fixed SSP, tested with Oscilloscope Write work fine (tested SPI Mode).TitanMKD
For more details on tests see ssp/README.
2012-06-04resolved minor conflictMichael Ossmann
2012-06-04added i2c.c that I forgot earlierMichael Ossmann
2012-06-05* Added SSP Driver (Not Tested).TitanMKD
* Replaced leading space by tabulations.
2012-06-04moved stuff out of i2cdemo.c and into drivers/headersMichael Ossmann
2012-06-04Minor fixTitanMKD
2012-06-02Added JellyBean Configuration for PinMux, GPIO In/Out (work in progress).TitanMKD
Added scu driver file scu.c. Modified Makefile/Makefile.include to generate .map file and use -O2 as optimization. Modified hackrf-jellybean miniblink.c to enable 1V8 and blink LED1,2&3 with configuration of PinMux and GPIO.
2012-05-27replaced linker script I accidentally deletedMichael Ossmann
2012-05-27trying to rm againMichael Ossmann
2012-05-27rm renamed fileMichael Ossmann
2012-05-22renamed linker scriptMichael Ossmann
2012-05-22semicolons might helpMichael Ossmann
2012-05-22Makefile updatesMichael Ossmann
2012-05-22updated linker scriptMichael Ossmann
2012-05-22gpio.c, vector.c updated for LPC43xxMichael Ossmann
2012-05-22new lib/lpc43xx, starting with copy of lpc17xxMichael Ossmann