1325 Commits

Author SHA1 Message Date
Michael Aherne
a121769785 Adding f4-specific rtc functions
These should also work with the f2
2013-02-26 21:22:58 -08:00
Michael Aherne
8c8b6440e7 Formatting and commenting
- No changes to content
- Lots of comments added
- Tabs --> spaces  and uniform spacing
2013-02-26 21:22:58 -08:00
Michael Aherne
8498b54c66 Minor fixes to RTC definitions 2013-02-26 21:22:58 -08:00
Piotr Esden-Tempski
5b596c72d6 [stm32] [lib] Fixed declaration of spi_clean_disable to match implementation. 2013-02-26 20:03:00 -08:00
Zachary Crockett
9d24a480ae Implement SPI clean disable from TODO comment 2013-02-26 19:59:15 -08:00
Piotr Esden-Tempski
8a0b8fa9d8 [examples] [maple] Fixed all warnings in the new leaf maple examples. 2013-02-26 19:53:57 -08:00
Weston Schmidt
6ce2c6e13d Add a few example programs for the Leaf Maple / IteadMaple boards. 2013-02-26 19:50:13 -08:00
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