Commit Graph

1118 Commits

Author SHA1 Message Date
Piotr Esden-Tempski b3d895bc64 SPIEX: Fixed warnings in the new SPI examples. 2013-02-26 19:44:45 -08:00
Stephen Dwyer cf87aeb714 [examples] added simple spi and dma based spi examples for stm32 f1 on Lisa/M v2 board 2013-02-26 19:38:40 -08:00
Piotr Esden-Tempski 3d3ddc7014 Fixed all warnings for examples. 2013-02-26 19:33:42 -08:00
Piotr Esden-Tempski 9c552e7585 Fix all remaining lib warnings. 2013-02-26 17:32:07 -08:00
Piotr Esden-Tempski ea67d6a36a Fixed all warnings in stm32l1 lib. 2013-02-26 17:28:20 -08:00
Piotr Esden-Tempski 1a025b5379 Fix all warnings for stm32f4 lib. 2013-02-26 17:19:22 -08:00
Piotr Esden-Tempski 7cd9b43529 Fix all warnings for stm32f2 lib. 2013-02-26 17:17:43 -08:00
Piotr Esden-Tempski 80fd23580a Fix all warnings for stm32f1 lib. 2013-02-26 17:14:31 -08:00
Piotr Esden-Tempski b0233ae6fb Added more warning CFLAGS to all makefiles. 2013-02-26 16:42:20 -08:00
Michael Aherne c51e01e0fe Remove duplicate declaration 2013-02-26 16:20:03 -08:00
Piotr Esden-Tempski e56f4194a6 COMMON: Fix a tiny macro typo! 2013-02-26 16:00:04 -08:00
Piotr Esden-Tempski 5e7ec39440 FLASH: Make sure that the flash unlock register state is cleared before trying to unlock the flash. 2013-02-26 15:25:55 -08:00
Vegard Storheil Eriksen bc853e7ebd Fixed gpio_primary_remap; swjdisable is pre-shifted and therefore needs to be u32. 2013-02-26 13:49:42 +01:00
Piotr Esden-Tempski 1e1859e8c7 ADC: Fix CR usage in adc_enable_discontinuous_mode_regular. Fixes #101 2013-02-25 17:15:43 -08:00
Karl Palsson e62f0e10f3 Merge pull request #100 from alex-n-/master
stm32f4 forgotten can.o in Makefile. fix sdio base adress stm32f2/stm32f4
2013-02-25 05:38:50 -08:00
alexn 0dbcf69d41 fix stm32f2 sdio base adress 2013-02-25 14:08:53 +01:00
alexn 3e587dce68 fix stm32f4 sdio base adress 2013-02-25 14:07:51 +01:00
alexn aa54eae5be CAN support STM32F4 2013-02-25 14:04:18 +01:00
Felix Ruess 9e24b33d90 [cm3] add missing declaration for systick_get_reload 2013-02-24 16:06:27 +01:00
Piotr Esden-Tempski 3277c58550 Merge remote-tracking branch 'github/deprecationmacro' 2013-02-19 11:37:56 -08:00
Felix Ruess 3ef44bff54 [cm3] fix doxygen for systick_get_value, add systick_get_reload
Fix the reload value in the examples:
to get a SysTick interrupt every N clock pulses: set reload to N-1
see http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/BGBEEJHC.html#BABGACGG
2013-02-19 19:22:49 +01:00
Piotr Esden-Tempski 46263e90b4 Merge pull request #88 "Fix logical operator error in tim_ic_set_input reported by hmjack2008"
Merge remote-tracking branch 'ksarkies/timer'
2013-02-18 14:19:53 -08:00
Piotr Esden-Tempski b4634ba8ff Merge pull request #92 "DMA tidyup"
Merge remote-tracking branch 'karlp/dma_tidy'
2013-02-18 14:14:22 -08:00
Piotr Esden-Tempski b13e55da8c Adjusted code for l1 to the new api introduced by karlp in pr #84 2013-02-18 14:12:48 -08:00
Piotr Esden-Tempski 3c110fec8e Merge pull request #85 "Add notes on build prerequisites"
Merge remote-tracking branch 'karlp/pr_prereq_docs'
2013-02-18 14:10:10 -08:00
Piotr Esden-Tempski 6eef01ce26 Merge pull request #84 "Pr flash reg rename"
Merge remote-tracking branch 'karlp/pr_flash-reg-rename'

Conflicts:
	include/libopencm3/stm32/l1/flash.h
2013-02-18 14:09:31 -08:00
Piotr Esden-Tempski f980f197ca Merge pull request #81 "[examples f1] ADC+DAC very basic example"
Merge remote-tracking branch 'karlp/pr_f1_adc_dac'
2013-02-18 14:07:00 -08:00
Piotr Esden-Tempski 9095f58fa3 Merge pull request #79 "More L1 support (and f2/f4 rtc)"
Merge remote-tracking branch 'karlp/pr_more_l1_rtc'
2013-02-18 14:06:02 -08:00
Piotr Esden-Tempski b903ae75d8 Merging pull request #78 "Remove assembly forcing stack."
Merge remote-tracking branch 'karlp/destroy-all-the-asm'
2013-02-18 14:03:19 -08:00
Piotr Esden-Tempski daf4cc0feb Merging pull request #76 "LM4F clock api"
Merge remote-tracking branch 'mrnuke/lm4f_clock_api'
2013-02-18 13:53:57 -08:00
Piotr Esden-Tempski 9193d3d273 Fixes #93 copypasta error in RCC_CSR_BORRSTF definition. 2013-02-15 16:14:30 -08:00
Karl Palsson 7afc13930f [stm32] Use common memorymap include for consistency
Most peripheral headers simply include <libopencm3/stm32/memorymap.h>
which, like the rest of libopencm3 requires the correct compiler define
flag to be set.  A few peripherals were directly including the platform
include, libopencm3/stm32/xx/memorymap.h, and in some of those cases it
wasn't even correctly including the correct platform.  (Likely the
result of copy/paste errors)

These direct includes have been eliminated
2013-02-06 11:47:23 +00:00
Karl Palsson e4c0a50286 [stm32-dma] Eliminate redundant write.
Clearing a single bit in DMA_CCR, then immediately writing a 0 over the
entire register is completely redundant on the F1, F3 and L1 DMA
peripherals.  (Unlike the F2 & F4 DMA Peripheral, where this is
required)
2013-02-06 11:43:20 +00:00
Ken Sarkies e20ef7a416 Fix logical operator error in tim_ic_set_input reported by hmjack2008 2013-02-01 21:44:00 +10:30
Piotr Esden-Tempski c9276b7aa2 Fixing gpio_set_af now really... 2013-01-29 13:42:11 -08:00
Piotr Esden-Tempski ae55194d4a Fix gpio_set_af register usage. 2013-01-29 13:33:58 -08:00
Piotr Esden-Tempski 8b062bb659 Added IRQ USART example for the f4 discovery board. 2013-01-29 13:33:58 -08:00
Karl Palsson b2722a010b Add notes on build prerequisites 2013-01-23 21:21:27 +00:00
Karl Palsson 40d9d630f0 [flash] f4: use "proper" bit definition naming.
Part 4 of 4: updated f4 to use flash_<reg>_bit instead of just
flash_bit
2013-01-23 13:58:11 +00:00
Karl Palsson 316b068cb4 [flash] f2: use "proper" bit definition naming.
Part 3 of 4: updated f2 to use flash_<reg>_bit instead of just
flash_bit
2013-01-23 13:58:11 +00:00
Karl Palsson 1eb4e6ed29 [flash] f1: use "proper" bit definition naming.
Part 2 of 4: updated f1 to use flash_<reg>_bit instead of just
flash_bit
2013-01-23 13:58:11 +00:00
Karl Palsson c0ea749452 [flash] l1: use "proper" bit definition naming.
Part 1 of 4: updated l1 to use flash_<reg>_bit instead of just flash_bit
2013-01-23 13:58:06 +00:00
Karl Palsson d9fb4f7401 Add examples making use of the RTC
Add an example using the RTC to help with a lower power design.  This is
a sister example to the existing "button-irq-printf", which is
functionally identical, but uses far less power.

There's more tricks that can be done to lower the power even further,
but this shows a few of the early steps that can be done, using the RTC
wakeup instead of a timer.
2013-01-23 00:01:46 +00:00
Karl Palsson e5b3250382 [stm32] Support the "new" BCD style RTC peripheral
Add the register definitions and some of the most basic helper functions
for the new style BCD RTC module found on the F2, F4, L1, F3 and F0.

This tries to keep as close to HACKING_COMMON_DOC as possible, while
maintaining sane names.
2013-01-22 23:55:59 +00:00
Karl Palsson b6ee57a5b9 [l1] rcc: support MSI clocking
Some new definitions and helpers.  Main change really that the list of
preconfigured clock configs is no longer restricted to HSI/PLL
2013-01-22 22:55:25 +00:00
Karl Palsson 2306c907ab [l1] Update to newest ref man definitions
Support for the Medium+ and High density parts, mostly by way of extra
irqs and register definitions.
2013-01-22 22:55:25 +00:00
Karl Palsson df5e3e5ff1 [l1] PWR: fix style for common code
Code added for L1 to support the PWR Control block didn't properly
follow the HACKING_COMMON_DOC guidelines.  The naming was wrong, and
some headers were missing.  This commit has no functional changes, it
only addresses the style and structure problems.
2013-01-22 22:55:19 +00:00
Karl Palsson 48eed286b9 [l1] fix whitespace and missing license info
Earlier additions to the L1 support were not correctly using linux
coding guidelines as specified in /HACKING.

Some examples were also missing license information.
2013-01-22 21:51:24 +00:00
Karl Palsson 13dedaafc1 [examples f1] ADC+DAC very basic example
Just shows some basic working examples of using the DAC with the ADC. No
special features, but very little hardware required to demonstrate.
2013-01-22 18:07:02 +00:00
Karl Palsson 22d8891fee Remove assembly forcing stack.
Fixes #51

There should be no reason for manually trying to load the stack.  Cortex
devices can be programmed with only C, and any code that needed this
would indicate broken vectors.
2013-01-16 20:41:26 +00:00