52 Commits

Author SHA1 Message Date
Ken Sarkies
1627cd60c3 Documentation structures added to place the non-STM32 families into the documentation tree.
Actual documentation has not been added. Volunteers?
2013-04-14 15:30:02 +02:00
chrysn
bc5146b710 unified systick handling
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-18 22:48:14 +02:00
chrysn
5ceb377a37 switch all interrupt lists to yaml format 2012-10-18 16:52:48 +02:00
chrysn
a8a6eb39e9 add irq cound to existing nvic.h files 2012-10-18 13:19:55 +02:00
chrysn
837de3ff97 nvic.h factored out (incomplete) 2012-10-18 10:27:51 +02:00
chrysn
a69d83d312 unified vector table initialization
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-05 00:55:24 +02:00
Ken Sarkies
ff83a1ae1c Setup to document entire project using doxygen.
New doc directory with config files and generated html, LaTeX/pdf.
Makefile provided for autogeneration and explanatory README.

The project structure is hostile to doxygen, which can't cope with functions
of the same name. Doxygen is run for each family separately, and separately
for LaTeX generation. Customized layout files sort of "integrate" HTML, and
separate pdfs are generated for each family. Not ideal but seems the best
solution until doxygen changes, if at all.
2012-09-15 12:51:46 +09:30
Nicolas Schodet
5ad8f26ede Fix comments typo 2012-09-02 17:15:13 +02:00
Nicolas Schodet
3aab6220d8 Add C linkage declaration for C++ usage 2012-09-02 17:12:58 +02:00
TitanMKD
81317c02ab * Updated GPIO added gpio_toggle() function.
* Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld).
2012-06-25 22:12:00 +02:00
Jared Boone
e28d07b81e Updated SGPIO #defines to match register naming in latest (8 June 2012) User Manual. 2012-06-14 11:16:15 -07:00
Jared Boone
44a79ca13e Add SGPIO slice defines and indexed register access macros. 2012-06-13 16:48:47 -07:00
TitanMKD
8d97dbc7c3 Work on scs.h register and also nvic.h.
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-09 18:27:42 +02:00
Michael Ossmann
bef51163ce more CGU register values 2012-06-06 21:24:39 -06:00
TitanMKD
8adc873e84 Fixed SSP, tested with Oscilloscope Write work fine (tested SPI Mode).
For more details on tests see ssp/README.
2012-06-06 00:30:25 +02:00
Michael Ossmann
416f633dbb fixed some column alignment to conform with libopencm3 precedent 2012-06-05 08:03:34 -06:00
Michael Ossmann
3a4a6b75de resolved minor conflict 2012-06-04 18:00:20 -06:00
TitanMKD
d7a7fd9d30 * Added SSP Driver (Not Tested).
* Replaced leading space by tabulations.
2012-06-05 01:41:54 +02:00
Michael Ossmann
5698016877 moved stuff out of i2cdemo.c and into drivers/headers 2012-06-04 17:30:08 -06:00
TitanMKD
58d5b96291 Fixed multi-line comments now it is "compliant" with Linux CodingStyle. 2012-06-04 21:09:05 +02:00
TitanMKD
67a048b5b0 Added SCU I2C0 specific configuration. 2012-06-03 18:57:33 +02:00
TitanMKD
e7fbc2220b Added JellyBean Configuration for PinMux, GPIO In/Out (work in progress).
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-06-02 09:45:03 +02:00
Michael Ossmann
770134b4d5 prefixed some register defs 2012-06-01 12:49:06 -06:00
Michael Ossmann
5339d06e9c Windowed Watchdog Timer register definitions 2012-05-29 15:35:00 -06:00
Michael Ossmann
428ae82fc1 Alarm Timer register definitions 2012-05-29 15:32:08 -06:00
Michael Ossmann
642d8a7451 Repetitive Interrupt Timer register definitions 2012-05-29 15:30:04 -06:00
Michael Ossmann
2eb41f00b4 Timer register definitions 2012-05-29 15:26:11 -06:00
Michael Ossmann
1ca7c648a9 SDIO register definitions 2012-05-29 15:17:55 -06:00
Michael Ossmann
fd3f3bc0bb GPDMA register definitions 2012-05-29 15:12:04 -06:00
Michael Ossmann
7652a8457f GIMA register definitions 2012-05-29 14:56:32 -06:00
Michael Ossmann
7981469a35 SCU register definitions 2012-05-29 14:48:38 -06:00
Michael Ossmann
c185f9b40f Event Router register definitions 2012-05-29 12:33:06 -06:00
Michael Ossmann
702559e2cb ADC register definitions 2012-05-29 12:23:44 -06:00
Michael Ossmann
5c2e954997 I2S register definitions 2012-05-29 12:19:47 -06:00
Michael Ossmann
40572e7541 I2C register definitions 2012-05-29 12:14:27 -06:00
Michael Ossmann
328cf2a2b7 I2C register definitions 2012-05-29 11:52:08 -06:00
Michael Ossmann
0d3fbc154b basic usb.h (only USB0 registers so far) 2012-05-29 11:23:14 -06:00
Michael Ossmann
8b98d63c5d better? names in creg.h 2012-05-28 17:05:50 -06:00
Michael Ossmann
5585e41311 remembered to use MMIO32() everywhere 2012-05-28 16:59:18 -06:00
Michael Ossmann
98bb0b5c91 started nvic.h with some interrupt IDs 2012-05-28 16:52:12 -06:00
Michael Ossmann
a0a646d4a5 basic rgu.h 2012-05-28 16:27:08 -06:00
Michael Ossmann
79e46f0ca8 typographical fix 2012-05-28 16:15:53 -06:00
Michael Ossmann
130a579a59 basic ccu.h 2012-05-28 16:15:33 -06:00
Michael Ossmann
281e2291ce basic cgu.h 2012-05-28 15:32:51 -06:00
Michael Ossmann
8666905e3a basic creg.h 2012-05-28 15:02:33 -06:00
Michael Ossmann
8f19691438 completed LPC43xx memorymap.h 2012-05-28 14:45:03 -06:00
Michael Ossmann
713a210b59 basic SGPIO header 2012-05-28 14:02:39 -06:00
Michael Ossmann
7d434c3ebc typo fix 2012-05-22 14:19:45 -06:00
Michael Ossmann
3a3c306ee3 #include fix 2012-05-22 10:39:29 -06:00
Michael Ossmann
95224dbc5e finished gpio.h and memorymap.h changes for LPC43xx but still much to fill in 2012-05-22 10:38:49 -06:00