Nicolas Schodet
2a35377980
Clean up and make linker scripts more uniform
This includes:
- fix some comments indent,
- add entry point,
- align exported symbols,
- remove unneeded "." assignments.
12 years ago
Piotr Esden-Tempski
11727f56c9
Minor build system fixes.
12 years ago
Piotr Esden-Tempski
d98dab6ae2
Merging pull request #23 Changed markup to get more control over documentation.
Merge remote-tracking branch 'ksarkies/doc'
12 years ago
Piotr Esden-Tempski
f71742c5da
Merging #18 pull request. Adding nvic documentation.
Merge remote-tracking branch 'ksarkies/nvic'
12 years ago
Ken Sarkies
52533a6e3d
STM32F1xx: Changed markup to get more control over documentation, each
file having its own group module rather than using @file .
No code changes except for the following:
gpio: Added function to map the eventout signal plus two Remap functions
dma: Prevent changing base addresses while channel enabled (see datasheet)
pwr: Added pwr.c (new file)
timer: Removed the last function that I introduced recently; there is already
an equivalent function present. Changed some parameter names for consistency.
12 years ago
Ken Sarkies
e4bcceaa8f
And a bit more doc mods
12 years ago
Ken Sarkies
95126e8cd3
Tiny doxygen mod to get all constants to show in doc output
12 years ago
Ken Sarkies
70b2376c9f
Update to doxygen comments to fix promiscuity problem (see later)
12 years ago
Piotr Esden-Tempski
fa5d689f78
Use make wildcard command for source dir detect. Library path fix.
Thanks ni!
12 years ago
Ken Sarkies
0e5e451e22
Revert nvic_set_priority to original form. Minor doxygen markup changes.
12 years ago
Ken Sarkies
cb07ab7c6e
Merge branch 'master' into nvic
12 years ago
Piotr Esden-Tempski
b82e7eee52
Examples detect if they are being built in src dir.
If an example is in the libopencm3 source directory it will use the
locally built library instead of the system library.
When you copy an example out of the libopencm3 tree it will
automatically detect it and build using the system wide installation.
12 years ago
Piotr Esden-Tempski
3441bba1c4
Changed local build target for library and linker files.
- 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.
12 years ago
Piotr Esden-Tempski
a2c5b6391d
Merging pull request #19 "STM32F timers. Doxygen markup added, and some code changes" by Ken Sarkies.
Merge remote-tracking branch 'ksarkies/timer'
12 years ago
Ken Sarkies
52fd7c7976
STM32F timers. Doxygen markup added, and some code changes:
1. Remove the extra mask (TIM_DIER(timer_peripheral) & flag)
in timer_get_flag. Not all flags in SR relate to IRQs and the flags that
do might be useful even if interrupts not enabled.
2. In a number of functions (e.g. timer_set_output_idle_state) that only
apply to advanced timers, add test for TIM1 and TIM8, as done in some others.
3. Added timer_force_event to manipulate the EG register
TBD DMA burst - can't get my head around why this would be useful.
Someone must have thought so!
13 years ago
Ken Sarkies
9cff0c962b
Fix compile error
13 years ago
Ken Sarkies
cba9561e89
NVIC_Set_Interrupt_Priority: change to use 4-bit fields.
(viz STM32F10xxx Cortex-M3 programming manual PM0056 and
Cortex-M3-Generic-User-Guide.pdf)
Doxygen commentary added
13 years ago
Ken Sarkies
5848c8624b
Minor changes to doxygen content, no changes to code.
13 years ago
Ken Sarkies
0e02438a80
Code for DAC module STM32Fxxx series
Add prototypes to dac.h and small change to simplify alignment enum
13 years ago
Karl Palsson
83d62e9bfc
Add linker scripts with memory maps for F100 series.
These definitions are a physical property of the device for most purposes.
No reason not to supply them premade.
13 years ago
Karl Palsson
6574baa767
Fix link flags to specify cpu instead of (wrong) arch.
-march=armv7 is NOT right for cortex-m3, and results in unexpected
arm code being linked in when using multilib toolchains
13 years ago
Karl Palsson
450c3e00a1
Basic helper routines for CRC
Note, the CRC block is pretty useless for interoperability. It only operates on 32bit
chunks, and in a different bit order. No attempt to make full helpers for compatibility
with other implementations has been done.
https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FCRC%20computation&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=2006
13 years ago
Piotr Esden-Tempski
98174e4a0c
Merge pull request #13 "Code for iwdg module STM32F series"
Merge remote-tracking branch 'ksarkies/iwdg-dev'
13 years ago
Piotr Esden-Tempski
2e9e378b4b
Merge pull request #12 "Don't include examples in doxygen output."
Merge remote-tracking branch 'karlp/no_examples_doxygen'
13 years ago
Piotr Esden-Tempski
a70eabb3e1
Merge pull request #11 "Add helper function for max clock on HSI for f100"
Merge remote-tracking branch 'karlp/hsi_f1_24'
13 years ago
Piotr Esden-Tempski
4a17185791
Merge pull request #10 "Add Device Electronic Signature support."
Merge remote-tracking branch 'karlp/desig'
13 years ago
Piotr Esden-Tempski
7753b91991
Merge pull request #9 "Even/Odd parity bit configs used the wrong bit"
Merge remote-tracking branch 'karlp/parity'
13 years ago
Piotr Esden-Tempski
db505a87f7
Merging pull request #7 "Use ODR instead of IDR to toggle an output GPIO"
Merge remote-tracking branch 'schodet/gpio-toggle'
13 years ago
Piotr Esden-Tempski
3bfeeedceb
Merge pull request #6 "Doxygen markup and grouping structrue"
Merge remote-tracking branch 'ksarkies/doc'
Conflicts:
include/libopencm3/cm3/common.h
13 years ago
Piotr Esden-Tempski
40e0e675ca
Merge remote-tracking branch 'mossman/master'
Merging Pull request #9 by mossman and co. Adding preliminary support for LPC43xx.
13 years ago
Piotr Esden-Tempski
6f95e52a7d
Merge remote-tracking branch 'felixheld/master'
13 years ago
Michael Ossmann
7ef51e30e9
Merge pull request #9 from TitanMKD/master
Fixed Linker ROM to RAM
13 years ago
TitanMKD
81317c02ab
* Updated GPIO added gpio_toggle() function.
* Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld).
13 years ago
TitanMKD
397af25401
Merge branch 'master' of git://github.com/mossmann/libopencm3
13 years ago
Michael Ossmann
94455ed191
Merge pull request #8 from jboone/master
SSP tweak to block until transaction is over.
13 years ago
TitanMKD
d80ee80e06
Merge branch 'master' of git://github.com/jboone/libopencm3
13 years ago
Jared Boone
9fcea09741
Merge branch 'master' of https://github.com/mossmann/libopencm3
13 years ago
Jared Boone
536c922577
Modified SSP driver to wait for data to be sent before returning. This is 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.
13 years ago
TitanMKD
fa315c672f
Merge branch 'master' of git://github.com/mossmann/libopencm3
13 years ago
Michael Ossmann
f298887710
Merge pull request #7 from jboone/master
SGPIO improvements.
13 years ago
Jared Boone
e28d07b81e
Updated SGPIO #defines to match register naming in latest (8 June 2012) User Manual.
13 years ago
Ken Sarkies
0fabe4462b
Fix Typo
13 years ago
Jared Boone
44a79ca13e
Add SGPIO slice defines and indexed register access macros.
13 years ago
Ken Sarkies
2f4cd29324
Code for iwdg module STM32F series
13 years ago
TitanMKD
c65ca01044
Fix Linker bug copy ROM to RAM & exec from RAM (need more test).
13 years ago
Karl Palsson
26d0512903
Don't include examples in doxygen output.
There's no point, and it makes everything bigger and slower
13 years ago
Karl Palsson
62849f043c
Add helper function for max clock on HSI for f100
Based on existing HSI code. Tested with f100c8, on custom board with no
external crystals or resonators.
13 years ago
Karl Palsson
71a3a7f2b1
Add Device Electronic Signature support.
Working unique id support, but not 100% convinced that this is the "least surprise"
path. ST's docs provide the bits from low to high, in 2xu16 and 2xu32.
But to get it back as a "u96" the highest bits should be first?
13 years ago
Karl Palsson
9531d653fb
Even/Odd parity bit configs used the wrong bit
Checked F10x, F100, F4 and L1 reference manuals.
Confirmed with my user application code.
13 years ago
Michael Ossmann
da27adcf1c
Merge pull request #6 from TitanMKD/master
Added ROM to RAM code copy & exec
13 years ago