aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc17xx
AgeCommit message (Collapse)Author
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-18drop two-line vector.c dispatchers in favor of central dispatchchrysn
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-03-27Implemented gpio_clear() for LPC17xx.Taylor Vesely
2012-03-27Produced build system for Blueboard-LPC1768-H miniblink.Taylor Vesely
2012-03-26Added a bunch of register definitions and gpio_set() to LPC17xx gpio.Taylor Vesely
2012-03-22Successfully compiled and ran miniblink.c for the Blueboard-LPC1768-H.Taylor Vesely
2012-03-22Created vector.c by example. Added reset_handler entry to linker script.Taylor Vesely
2012-03-22Copy-pasted linker script from LPC13xx to LPC17XX. Set up the ram andTaylor Vesely
rom regions for the Blueboard-LPC1768-H.
2012-03-22Started porting to LPC17xx. Created file stubs and started conversion.Taylor Vesely