Karl Palsson
2b54119b78
cm3: scs: drop all duplicate information
Keeps the best version of the documentation.
Fixes: https://github.com/libopencm3/libopencm3/pull/269
5 years ago
Karl Palsson
833da4b672
cm3: extract SCB SHPR to the SCB world it belongs to
Pull out the duplicate into the right file, keeping the newly fixed
version.
5 years ago
Karl Palsson
3ebd71b464
cm3: extract Coresight LSR/LAR definitions
Use a single point of definition for the offset, and add it where it was
missing.
5 years ago
Matt Anderson
d8579dde95
CortexM0: IPR and SHPR are only word addressable
For ARMv6M, the IPR and SHPR registers are accessible only when
adddressed with a 32bit word read or write.
Currently in libopencm3 all NVIC interrupt priority register accesses
are made using an 8bit read or write, which results in the hardware
ignoring the write or always returning 0 on read.
Address this by introducing NVIC_IPR32() and SCS_SHPR32() macro and
conditional implementation of nvic_set_priority when building for
cortex-m0.
See ARMv6M developer documentation:
IPR: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0497a/Cihgjeed.html
SHPR: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0497a/CIAGECDD.html
5 years ago
Caleb Szalacinski
3c4ee6f4c0
SWM050: Finishes GPIO, IAP flash, sysclock, sleep/stop, and the sysctl memory map.
Updates the main memory map and the makefile.
Adds the SWM050 to devices.data, so that a linker script can be automatically generated.
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
5 years ago
Bryan PEREIRA
1fbfdecb17
stm32f3: Add SPI4 BASE
5 years ago
Nicholas Rossomando
77d96a3430
stm32l0: crc: enable common code
5 years ago
Jonathan Halmen
ec2d96433f
stm32f4: rcc: add plli2s config function
5 years ago
Jonathan Halmen
203d0ca295
stm32f4: rcc: remove unnecessary pllsai functions
existing standard functions for these are
* rcc_osc_on(RCC_PLLSAI);
* rcc_is_osc_ready(RCC_PLLSAI);
5 years ago
Guillaume Revaillot
8a1cfa8ceb
stm32g0: use proper register for gpio peripheral clock sleep enable.
Reviewed-by: Karl Palsson <karlp@tweak.net.au>
5 years ago
Guillaume Revaillot
998e647dde
stm32g0: memorymap: get rid of apb1/apb2 reference, device only has one apb.
I apparently based memorymap.h on previously written header without noticing
that g0 has only one apb despite a big hole in the memory space and addresses
matching usual apb1/apb2 split..
5 years ago
Guillaume Revaillot
1928e6eb3c
doc: typo
5 years ago
Guillaume Revaillot
562dca7358
stm32f4: doc: f4 are cortex m4f based
5 years ago
Guillaume Revaillot
ec597796d7
stm32g0: fix bad typos in memorymap, impacting tim1 and tim15-17.
5 years ago
Guillaume Revaillot
3eff201a4b
doc: stm32: adc: upgrade common_v2 documentation
add register grouping, fixup comment have them pickedup by doxygen, align style and masks.
5 years ago
Guillaume Revaillot
2035d84e55
stm32: lptim: add base support
Add basically what's needed to have some minimal but usefull subset of
function for a timer: irqs, compare, period, out polarity, enable/disable
and start.
5 years ago
Guillaume Revaillot
f99e711873
stm32g0: lptim: add additional cr bits and cfgr2 reg.
5 years ago
Guillaume Revaillot
811aebf096
stm32: lptimer: enable lptimer.h usage on f4,f7,l4 and g0 chips.
5 years ago
Guillaume Revaillot
2975c3151a
stm32: extract l0 lptimer stuff from timer.h to common lptimer.h
lptimer peripheral is present on f4,f7,l0,l4,g0,g4 and prob others. Extract
content from stm32l0 timer.h and make it usable by other chips.
5 years ago
Guillaume Revaillot
689e326f5f
stm32f4: lptim1 sits at 0x40002400 on stm32f410, update memorymap
5 years ago
Karl Palsson
38d88c6113
doc: stm32f0: rcc: add missing groups for pll factors and sources
5 years ago
Karl Palsson
8744df10a6
doc: gd32: make groups match what's used.
Fixes the missing top level groupings here.
5 years ago
Karl Palsson
0cd06bcc97
doc: gd32/f1x0: fix missing tags, drop wrong tags
Drop incorrect/redundant type information from doxygen parameters
Adds groupings that are referred to.
5 years ago
Karl Palsson
1964fd72f2
doc: stm32f3: adc: register base addresses had landed outside a group
5 years ago
Karl Palsson
1b10a0871c
doc: cm3: mpu: fix typo
5 years ago
Karl Palsson
60991ac306
doc: cm3: nvic: convert existing docs to doxygen
Make it visible
5 years ago
Karl Palsson
69ce9f876f
doc: core cm3: standard titles
easier on the eyes reading the list of docs
5 years ago
Karl Palsson
f63145db07
doc: stm32f7: rcc: add missing top level groups
5 years ago
Karl Palsson
1f359e0cb8
doc: efm32: tag USB files for doxygen generation
5 years ago
Karl Palsson
2d1277e1fa
doc: efm32: uart/usart provide common doxygen
Fix some direct includes, tag properly, include a stub file to pull in
shared header documentation and re-arrange some existing documentation
to make it present nicely.
5 years ago
Karl Palsson
56265ad93f
doc: efm32: rtc: tag and include in generated output
Includes the sutb file ncessary to find shared headers without any apis
5 years ago
Karl Palsson
6df301accc
doc: efm32: timer: properly tag the shared header as well
5 years ago
Karl Palsson
531aa7e6b7
doc: efm32: rmu: include in doxygen generation
Include a stub .c file for shared code generation
5 years ago
Karl Palsson
75f6cbfd9d
doc: efm32: msc: tag for doxygen inclusion
Includes a stub .c file to trigger common code generation
5 years ago
Karl Palsson
c92f3dc0ad
doc: efm32: letimer: include tags for doxygen
Include a stub .c file to document the shared headers.
5 years ago
Karl Palsson
25dc3a9b4b
doc: efm32: i2c: tag for doxygen
Includes a stub .c file until there are some APIs
5 years ago
Karl Palsson
4c01e47aed
doc: efm32: emu: tag for doxygen properly
Requires a stub .c file to make the common files be included until we
build some APIs.
5 years ago
Karl Palsson
764fbed9c8
doc: efm32: dac: fix up mising tags on common file
5 years ago
Karl Palsson
790d624230
doc: efm32: burtc: tag properly for doxyen
includes a stub .c file until there are APIs defined.
5 years ago
Karl Palsson
aa99aba7d3
doc: efm32: prs: properly tag for doxygen
5 years ago
Karl Palsson
46514e75c0
doc: efm32: dma: tag headers properly
5 years ago
Karl Palsson
7e2cd050aa
doc: efm32: acmp: document, and include via peripheral_apis
Requires a stub .c file as it has common includes with out any common
code (yet)
5 years ago
Karl Palsson
0626f6f75d
doc: efm32: adc: enable peripheral_apis style
5 years ago
Karl Palsson
ae777bb920
doc: efm32: timer: enable peripheral_apis style
5 years ago
Karl Palsson
c8b8285446
doc: efm32: dac: enable peripheral_apis documentation
5 years ago
Karl Palsson
35657bdb61
doc: efm32: wdog: enable documentation via peripheral_apis
5 years ago
Karl Palsson
093edfb881
doc: efm32: cmu: move to peripheral_apis
Was completely undocumented before. Just needed different tagging so it
could be picked up.
No attempt at this stage of sharing more code between the cmu modules.
5 years ago
Karl Palsson
9bc432474b
doc: efm32: include gpio_common
gpio_common was built, but wasn't picked up by any documentation.
Use the peripheral_apis style from stm32, but try out the #pragma once
style. Downside is you don't get warnings if you include an sub layer
.h file. Upsides are
* no ifdef/endif blocks
* no /**@cond*/ /**@endcond*/ blocks
* that's enough win!
5 years ago
Karl Palsson
6d74262bf4
doc: efm32: define peripheral_apis groups
Nothing is _in_ these groups yet, but define them so we can start
filling them out. Follows the stm32 family style.
5 years ago
Karl Palsson
92b4b5a12f
doc: efm32: fix typos in family/group names
5 years ago