Commit Graph

1200 Commits

Author SHA1 Message Date
Gautier Hattenberger a4b582f91d add 16MHz resonator for stm32f4 2013-04-23 17:52:27 +02:00
Piotr Esden-Tempski 8545d9d565 Using while(1) instead of exit.
The exit function can significantly increase code size, and adds
dependency on stdlibc.
2013-04-21 19:13:35 -07:00
Piotr Esden-Tempski 3e2be1d4a4 Removed examples, they are moved into libopencm3-examples repository. 2013-04-19 19:33:32 -07:00
Alan Braithwaite 67903bfbfe API change to remove dual loading default case for dac_load_data_buffer_single
Also change dac_data from u32 to u16
2013-04-20 00:31:30 +02:00
Ken Sarkies 84fe022609 Add usb to main index 2013-04-19 10:26:01 +09:30
Ken Sarkies 1374d2622b Place generic USB header and source files into the documentation tree. 2013-04-19 10:26:01 +09:30
Alan Braithwaite 2288e35739 Fixed bug with dac_load_data_buffer_dual with register offsets 2013-04-17 09:36:28 +02:00
molnarkares 93007d20d9 Fixes:
CAN RX: ID conversion was incorrect
2013-04-16 17:12:10 -07:00
molnarkares 162522b3b2 can speed optimizations 2013-04-16 17:10:56 -07:00
molnarkares 9585e59df1 CAN2 on STM32F1 is slave and its filter banks are configured thru CAN1 FMR 2013-04-16 17:10:03 -07:00
molnarkares 867b57a1d2 can.c >> bug fixed in receive 2013-04-16 17:08:50 -07:00
Andrey Smirnov 6cb7d8abf3 Add a "noreturn" attribute to 'scb_reset_system'
Adding this attribute allows to avoid warnings issued by GCC in cases
when 'scb_reset_system' is used as a last call in a function with
"noreturn" attribute set(usually reset handler of some sorts)
2013-04-16 16:57:58 -07:00
Andrey Smirnov e944876b63 Add a exception handling helper code
This commit add a structure definition that represents the stack frame
layout as it is upon entering exception handler. This is useful when
one wants to alter the exception return address, or get information
about registers state saved by the CPU.
2013-04-16 16:57:45 -07:00
John Howe dd906c0656 Updated links to ST programming manuals 2013-04-16 16:35:19 -07:00
Ken Sarkies 1627cd60c3 Documentation structures added to place the non-STM32 families into the documentation tree.
Actual documentation has not been added. Volunteers?
2013-04-14 15:30:02 +02:00
Karl Palsson 69902568d1 [stm32-l1] Turn on the DMA code.
It appears to be the same dma peripheral as in the F1 and F3, so just
enable it as is.
2013-04-14 14:51:30 +02:00
Karl Palsson 4636eb134c [stm32l1] Update linker scripts
Add the M+ and H density parts, and include the EEPROM sizes
2013-04-14 14:49:57 +02:00
Mikhail 4907e161e2 Added Windows installation information into README 2013-03-31 20:32:07 +04:00
Ken Sarkies 5b8953124e This mainly moves the STM32 timers' code to the common area.
F2 and F4 have a common section to deal with the options register (TIM2 and TIM5 only)
L1 has been made common with timer_common_all as its options register has very different settings to F2/F4. Code is in the L1/timer.c L1/timer.h files

Note that F3 and F05 timers should fit into this scheme, with F3 having additional features.

Bundled with this is L1/pwr.h to change a documentation setting
Also all the Doxyfiles have added "ENABLE_PREPROCESSING = NO" to fix a problem introduced by commit 118.
2013-03-09 14:39:01 +10:30
Ken Sarkies a9a85f080b Add test in common headers for improper inclusion of such files in application.
(prevents inclusion and also issues warning)
Changes to some source files to remove references to common headers.
Changes to rng.h to make guard symbols the same in f2 and f4.
2013-03-07 18:35:04 +10:30
Ken Sarkies e2022f5884 Repair to documentation (most documented files)
to remove errors, duplications and inconsistencies.
File lib/stm32/f1/pwr.c - all code removed as it duplicates that in common/pwr_common.c
Remaining changes do not affect code. Compiles OK.
TODO efm32 has no code so generates no modules
TODO F2 needs pwr.c
TODO L1 needs dma.h and dma.c
2013-03-07 11:14:06 +10:30
Austin Palmer 31aa3b6f5a EXTI: Added function to get flag status 2013-03-01 10:36:57 -08:00
lappi af8c5a85d6 [stm32] Added *DECLS in stm32/common/gpio_common_all.h and stm32/l1/rcc.h 2013-03-01 21:03:59 +04:00
Michael Aherne 93f2b1ad5b Fixing some errors introduced with #107.
Namely:
 - I never added rtc to the makefile, so it wasn't getting compiled
 - I missed 2 includes that are needed once it's actually compiling
2013-02-27 13:21:21 -08:00
Michael Aherne dd75633245 Adding some useful functions for wakeup timer interrupts 2013-02-26 21:22:58 -08:00
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