| Commit message (Collapse) | Author | Age | 
| | 
| 
| 
| 
| 
| 
|  | 
This lets the compiler short-circuit the tests in ao_enable_gpio and
ao_disable_gpio to save a bit of code space and time.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Look at the flash size and the device id registers to figure out how
much flash is available.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Unused variables, mismatching signed/unsigned and a few other misc
warnings.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Adds new telemetry and logging formats along with code for TeleMetrum
v2.0 design.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
This splits the fast-timer portion out of the debounce helper code and
shares that with the quadrature driver which now uses it directly.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
And get it loaded to RAM so it can execute correctly.
Nothing calls it yet...
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
It's probably more power efficient than using one of the timers, and
it's certainly easier to configure.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
This cleans up a few values, adds more comments and a few more NVIC fields.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Turn a bunch of the macros into inline functions.
Clean up the reboot method to use the stm_scb structure.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
This marks the lowest portion of the stack as inaccessible to the CPU,
causing the processor to fault when it reaches it. The fault then
generates a panic message so that the user can know what happened.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
Add sample-based profiling, using a 1kHz timer
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
The EXTI routing information is in the syscfg unit, so that needs to
be powered up or writes to its registers will be lost.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
Needed to support general GPIO interrupts
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
|  | 
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
This seems better than the random loop that it replaces, but I still
have no idea why this is required; it doesn't coorespond to the docs
at all...
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
This provides a simple method for getting high-resolution timer data
to use in performance tuning code. It's not used by default anywhere.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Which GPIO a particular pin interrupt comes from is selected by the
SYSCFG EXTICR registers; set these when an exti interrupt is configured.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
TX is 6, RX is 7
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
This does "something" in radio test mode, appearing to generate a
730MHz signal.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
|  | 
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
This moves all of the STM clock configuration into ao_pins.h so that
each product can configure it separately. While doing this, I
discovered that the flash memory mode (64-bit, prefetch, latency 1)
wasn't actually getting set, which is why the CPU refused to work at
32MHz.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
Drives the MegaMetrum beeper
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
Not well tested yet...
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Each stm32l has two-point factory temperature calibration data.
Provide access to that for displaying temperature data.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
DMA-based driver for the STM analog to digital converter.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
Eliminates a cast when assigning to them.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
|  | 
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
| 
|  | 
When selecting an alternate function, set the pin to alternate mode as
well; there's no sense requiring two separate calls everywhere.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
|  | 
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
|  | 
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
This gets stm-demo working
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
| | 
| 
| 
| 
| 
|  | 
This runs AltOS and talks over the serial port.
Signed-off-by: Keith Packard <keithp@keithp.com>
 | 
|   
  
  
  
  
  
  
   | 
The stm-bringup doesn't run altos, it just initializes the device and
writes stuff over a serial port. Works on the STM32L Discovery board
at least, should do stuff on other boards too.
Signed-off-by: Keith Packard <keithp@keithp.com>
 |