aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-10-19add generic OBJS to efm32 librarieschrysn
better fixes would be adding them to the generic (included) Makefile or building the really device independent stuff in a _generic library
2012-10-19install *all* efm32 linker scriptschrysn
this will install the per-family linker scripts twice (doesn't hurt, gets overwritten), but more importantly intalls the per-chip scripts too.
2012-10-19copied over linker scriptschrysn
this will need some generalization too...
2012-10-19build all efm32 familieschrysn
2012-10-19install opencmsischrysn
2012-10-19added irqs for the rest of the efm32 deviceschrysn
2012-10-19rename tinygecko->efm32tg everywherechrysn
2012-10-19renamed linker file to work with included makefilechrysn
2012-10-19change discriminator in efm32 series from TINYGECKO to EFM32TGchrysn
2012-10-19pulling in a simplification in per-arch makefileschrysn
2012-10-19use generalized libopencm3 functions in cmsischrysn
2012-10-18Merge branch 'generalizations' into efm32chrysn
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-18unify scb (system control block)chrysn
these register definitions are common to all cortex mcus. some of the registers might not be implemented everywhere (especially the floating point registers), but defining them does no harm. this modification does not result in any changes in the example binaries.
2012-10-18BEGIN_DECLS wrap nivc.h declarations for c++chrysn
2012-10-18nvic.h generation script: be on safe side with directorieschrysn
now tries to mkdir its way to the output files this wouldn't be a problem currently if it wasn't for the efm32 data lingering in the wrong branch, but otoh it's just on the safe side in case we meet architectures that don't need other specializations at all.
2012-10-18adapt lpc43xx example to generalizationschrysn
2012-10-18remove files not required in generalizations branch any morechrysn
2012-10-18Merge branch 'generalizations' into efm32chrysn
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-18Merge branch 'generalizations' into efm32chrysn
Conflicts: Makefile
2012-10-18vector.c unificationchrysn
this makes the previous hackish vector.c assemblies into dispatched files (using the same mechanism as for nvic, just this time in lib). the old irq.h files that were generated manually from the old vector.c files were dropped in the process, as were the nvic.h files, and replaced with very simple yaml lists that generate the headers. file generation takes place both in the include/ and the lib/ part, as some of it is definitely header stuff (the NVIC_name_IRQ defines), and some of it needs to be included in specific compilation units (the weak pragmas).
2012-10-18integrate irq2nvic_h script in buildprocesschrysn
2012-10-18split irq.yaml output in nvic.h and vector_nvic.hchrysn
the weak pragmas need to be used in the very compilation unit where their target is defined, requiring another dispatch
2012-10-18switch all interrupt lists to yaml formatchrysn
2012-10-18drop two-line vector.c dispatchers in favor of central dispatchchrysn
2012-10-18nvic unificationchrysn
* created include/libopencm3/cm3/nvic.h from the respective stm32 and lpc43xx files. the chip specific definitions were left in place (they were already split out in sthe stm32 case). * created lib/cm3/nvic.c from the respective stm32 and lpc43xx files. a hack from the lpc43xx was taken over (for manipulating the internal interrupts); for now it'll work. * created a include/libopencm3/dispatch/ directory where the dispatching of files with common interfaces but different implenentations can happen; for now, an nvic.h there includes the respective irq name definitions. (future implementations might have some automation or preprocessor magic there; so far, it's manual dispatching based on defines.) * for efm32, an nvic.h gets generated from an interrupt list, the rationale for code generation is, in this case, that this can't be done easily in c preprocessor, and it's really just a list of definitions and not code proper. * examples now include <libopencm3/cm3/nvic.h> instead of <libopencm3/stm32/nvic.h>
2012-10-18modified examples to use libopencm3/cm3/nvic.h instead of /stm32/chrysn
2012-10-18fallback for unknown chipschrysn
2012-10-18unified nvic.cchrysn
2012-10-18add irq cound to existing nvic.h fileschrysn
2012-10-18dispatch for chip specific nvicchrysn
2012-10-18merge irq and nvic code using a scriptchrysn
2012-10-18nvic.h factored out (incomplete)chrysn
2012-10-17Merge branch 'master' into generalizationschrysn
Conflicts: lib/lm3s/vector.c -- split out to lm3s/irq.h lib/stm32/f4/vector.c -- put the floating point initialization code into a function like in lpc43xx
2012-10-16add the copied ld scripts in lib dir to gitignoreFelix Ruess
2012-10-16fix clean target for example makefiles if the compiler is not in PATHFelix Ruess
2012-10-16Initial documentation for SPI, I2C and CRCKen Sarkies
(no code changes)
2012-10-16Additional stm32/usart.c functions to enable/disable Rx/TxKen Sarkies
interrupts, return a status flag and check for interrupt source.
2012-10-16Initial documentation for stm32/usart.c, usart.hKen Sarkies
Some minor documentation corrections to timer.h
2012-10-16stm32f1:Ken Sarkies
Add object files to Makefile to include new modules into lib. Correct typo in pwr.c Add two new functions to timer.c to preset the counter (for use with deadman style timeouts) and to identify an interrupt source. Also noticed lib/makefile.include didn't clean lib/stm32, which isn't a target. Added a fix.
2012-10-08add _end and __end symbols for compatibility with code written against ↵Thomas W. Barr
CodeSourcery linkers
2012-10-08complete peripheral handlers in vector tableThomas W. Barr
2012-10-07updated the lisa_m_2 (STM32 F1) ADC examples for recent code changes to ↵Stephen Dwyer
stm32f1 adc.c and adc.h
2012-10-07oops, had to update bin names in makefiles for adc examplesStephen Dwyer
2012-10-07added different ADC sampling examples for the LisaM v2 including:Stephen Dwyer
* simple polling of an injected channel * timer triggered sampling of an injected channel * timer triggered sampling and IRQ handling of an injected channel * timer triggered sampling and IRQ handling of 4 injected channels
2012-10-05Merging pull request #28 Random number generator defenition and example.Piotr Esden-Tempski
Merge remote-tracking branch 'tiltit/master'
2012-10-05Merging pull request #37 Adds hard-float support to stm32f4, with a nice ↵Piotr Esden-Tempski
mandelbrot example Merge remote-tracking branch 'schodet/hard-float'
2012-10-05Doc changes to go with previous commitKen Sarkies
2012-10-05Code changes to stm32f1 adc.c and adc.hKen Sarkies
remove rcc_set_adc_clk - use rcc version Added functions: - adc_power_on - adc_start_conversion_direct - adc_set_dual_mode - adc_eoc - adc_eoc_injected - adc_read_regular - adc_read_injected - adc_set_injected_offset Tested dual mode scanned regular, but no tests of injected yet. Changes: "discontinuous" was misspelled. - adc_set_discontinuous_mode_regular - added "length" parameter - adc_disable_discontinuous_mode_regular - name change - adc_enable_discontinuous_mode_injected - name change - adc_enable_automatic_injected_group_conversion - disable triggers - adc_enable_jeoc_interrupt - name change to match common usage in lib - adc_disable_jeoc_interrupt - ditto - adc_enable_external_trigger_regular - remove incorrect test on parameter - adc_enable_external_trigger_injected - ditto - adc_set_sample_time - name change to match function's purpose - adc_set_conversion_time_on_all_channels - ditto - adc_set_injected_sequence - changed order of register loading (ref Barlow's issue) - adc_enable_analog_watchdog_on_all_channels - flipped AWDSGL - adc_enable_analog_watchdog_on_selected_channel - ditto added aliases for expected commonly used functions to avoid sudden user code breakage In adc.h, corrected errors in SQR names added "deprecated" compiler warnings to adc_on and to aliases defined in adc.c