Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
Converted the old STM32 headers to new style and copied offsets to
platform data.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
|
|
|
|
versions.
|
|
inverted RCC definitions came in via:
24507af1a stm32_rcc: allow aliases for enables.
Switch the order of definitions for gd32v so it can compile, and enable
the f1 gpio and flash peripherals to allow basic compilations to
succeed.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
l4 and g4 are the same, g4 just has some extra registers, and the first
section is the same for wb as well, all of them had missing reserved
registers.
|
|
really?
|
|
Have some demo code using lptim, lpuart, exti and rtc mostly working.
It glitches into undefined exceptions, so it's a little concerning,
but... it's all cross checked against RM0440_rev7, so it's pretty good.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Missing a gap before the second section continued.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
A nice easy basic helper for "I just wannna wite a char now!"
|
|
|
|
FIXME: LPTIM should be split out, rcc should squish to earlier, as early
as we can with other rcc fixes,post the last dev_v2 merge.
|
|
Need to actually include the l4 file to start building!
When I copied all the peripheral addresses out of the ref man, I ignored
the RCC interrupts and platform define. Fix that now, against
RM0351_rev9
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Will need more work though, as there's L476xC with 256K flash, 128K ram,
and L432xC with 256K flash, 64K ram. But that's tomorrow's problem, I'm
using a 476xG...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
|
|
|
|
Add them to the stm32wb platform as well.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Some people might like to turn peripherals back off again. We have all
the machinery in place, so make it easy for them.
Signed-off-by: Karl Palsson <karlp@etactica.com>
|
|
|
|
|
|
|
|
|
|
|
|
Make it a litle easier to read for some bits that are constantly
checked.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Backup registers are just hardcoded to 32, which is the max seen.
Note that the STM32WB only has 20! I've captured that in the platform
yaml, even though it's not used anywhere (yet?)
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
|
|
Includes the f4, l0 and wb. f4 renames MEMRM to MEMRMP to be both
consistent with other parts and consistent with ref man.
Retested on the WB, but l0 and f4 code was simply moved.
For yaml files, given how varied syscfg is, we default to using the
family name as the type, but still allow overriding via explicit type in
the yaml file if desired.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Functional, after much hair tearing.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Accessing Pin.n and Pin.get_portnum() will give you values suitable for
use with EXTI and similar places.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
While checking STM32WB, this was easy enough to just transcribe while
working. Untested on real hardware.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
maybe you're doing something wrong, or maybe you're doing something so
so right. Hand people a salmon and let them make that decision.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
At least the constants to get started.
Note that RM0434r8 says that 0x27 is for revision "B" but rev9 says it's
not revision "X" (Presumably B nomenclature has been dropped?)
|
|
Basic registers to start with, a lot of commonality, but extra registers
on the WB.
Signed-off-by <karlp@tweak.net.au>
|
|
Not sure if "wpan" is the right directory for them, but they didn't feel
like they warranted their own directory each.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
No helpers, just the register map.
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
Makes merging and diffing easier later.
|
|
Max speed on WB is 32MHz HSE to 64MHz PLL. Must ensure that CPU2
doesn't exceed 32MHz though.
Adds the remaining RCC registers and bits as well. Most of these are not
useful, as you can't really/meaningfully deliver software to CPU2, but
some of them are used/required by the ST provided WPAN middleware.
Signed-off-by: Karl Palsson <karlp@etactica.com>
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
|
|
No API, just pointers to the calibration data and their associated
constants.
|
|
Overload all the things!
Signed-off-by: Karl Palsson <karlp@etactica.com>
|
|
less end user casting, more back end c++ magic
|
|
Sometimes you really would like to slow things down to get trace out.
|
|
So you don't always have to refer to ADC12 or ADC34
|
|
|
|
By flipping the name/number definition, we can define aliases such as
ADC and ADC1, or FMC/FSMC for the same bits, making it easier to have
code that both matches reference manuals, and also code that matches
between lines.
runtime tested on WB, compile tested on F3.
Signed-off-by: Karl Palsson <karlp@etactica.com>
|