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
Piotr Esden-Tempski
204eb047b4
Merging pull request #72 Doc
...
Merge remote-tracking branch 'ksarkies/doc'
Conflicts:
doc/stm32f1/Doxyfile
doc/stm32f2/Doxyfile
doc/stm32f4/Doxyfile
lib/stm32/f1/Makefile
lib/stm32/f2/Makefile
lib/stm32/f4/Makefile
2013-01-09 01:05:37 -08:00
Ken Sarkies
efee94901a
CRC moved to common area
2013-01-08 19:58:18 +10:30
Ken Sarkies
e831f4db51
I2C to common area
...
F2/4 has now I2C3 included
2013-01-08 19:57:19 +10:30
Ken Sarkies
312d887825
IWDG moved to common area
2013-01-08 19:51:49 +10:30
Ken Sarkies
0878a534cd
Move usart files to common area
...
Again added to L1 which is similar to F1
2013-01-08 19:51:08 +10:30
Ken Sarkies
1029597e70
Move DAC to common area
...
(Note there are now dummy source files dac.c (and others) that are
not compiled but are needed for documentation).
2013-01-08 19:50:22 +10:30
Ken Sarkies
7ec382c7d5
STM32: Moved SPI code into the common area.
...
Updated the documentation so that it appears in all families
Also added it to the L1 area, but is untested. An addition to the memorymap
allows commonality and a #ifdef added to the spi_common_all code to
exclude the case of SPI3 for L1 and F0 as SPI3 doesn't exist in those.
An rcc dispatch header was added to remove same code from the spi header.
2013-01-08 19:48:52 +10:30
Ken Sarkies
61f2cb3f99
Move STM32F1 DMA files to respective common directories
...
This sets the stage for adding DMA to STM32F3xx (when added) and STM32L1xx as the controller appears to be identical in these.
2013-01-08 18:07:28 +10:30
Ken Sarkies
a60ae5044c
STM32 DMA: replaced F4 header to match that for F2, and move header and source files to common.
...
In the header:
- Fix DMA_SxCR_CT: change shift from 18 to 19
For use with the convenience functions:
- Added DMA_SxCR_CHSEL generic values
- Added DMA_STREAM - generic values
- Added dma_if_offset - rather than separating out LISR and HISR
- Added masks
- Added dma_disable_double_buffer_mode()
2013-01-08 08:16:25 +10:30
Piotr Esden-Tempski
27ccf45182
Merging pull request #67 L1 support: flash, power basics, timers
...
Merge remote-tracking branch 'karlp/pr_l1_flash-rcc-pwr-timers'
2013-01-06 17:58:27 -08:00
Piotr Esden-Tempski
44e350ad20
Merging pull request #64 Various changes
...
Merge remote-tracking branch 'bgamari/master'
2013-01-06 17:56:13 -08:00
Piotr Esden-Tempski
c904c3ae57
Merging pull request #63 Improvements to STM32F1 I2C, CAN, RCC, and USB (f107)
...
Merge remote-tracking branch 'icd/master'
2013-01-06 17:52:43 -08:00
Ben Gamari
08a14a9d9e
stm32/f4/adc: DMA can always be used with ADC2
...
I can't find any evidence in the manual to support this comment's claim.
2012-11-14 20:07:28 -05:00
Karl Palsson
523943a3d2
[l1] Add common timer code support.
...
This has only been tested functionally with basic timers, and basic operations.
Advanced timer support has been #ifdefed to compile, but this probably needs more testing.
2012-11-14 00:27:13 +00:00
Karl Palsson
df1808e2dc
[l1] Add rcc clock setup helper routines
...
Despite the L1 being a low power device, my initial focus is on making
it basically compatible with existing devices.
To that end, provide clock setup helper routines that configure it for maximum performance,
allowing some similar clock speeds to F1 devices to help with testing. This requires adding
the power chipset routines to set the voltage range.
Clock setup style is similar to the F4 code, which seems nicer than the overflow of different
routines used on the F1 code.
NOTE: Both the F4 existing pwr code, and this code don't actually include the f1 core power
code, even though it should be compatible
2012-11-14 00:16:56 +00:00
Karl Palsson
72666a5b93
[l1] Add Flash Memory Controller Register defns for L1.
...
Also, some of the most basic essential helper functions.
2012-11-14 00:16:46 +00:00
Jeff Ciesielski
db35fbb7ba
Merge branch 'master' of git://github.com/libopencm3/libopencm3 into upstream-merge
2012-11-13 13:13:40 -08:00
Ken Sarkies
70746ccd67
Change to make L1 series fit with common files
2012-11-13 18:43:06 +10:30
Ken Sarkies
7d55ebbe0c
Adjustments to fix documentation
2012-11-13 18:41:31 +10:30
Ken Sarkies
e34ad9b3d2
rebase and fix
2012-11-13 18:41:31 +10:30
Ken Sarkies
4ab5c94b90
Proposed deduplication of peripherals, GPIO example
...
See rambling post on dev list for justification
2012-11-13 18:41:31 +10:30
Piotr Esden-Tempski
d08d366e75
[doc] Added preliminary STM32 CAN documentation.
2012-11-12 15:43:45 -08:00
Piotr Esden-Tempski
b2af3ca540
[doc] Cosmetic.
2012-11-12 15:14:06 -08:00
Piotr Esden-Tempski
d64ec3cf58
Merge pull request #62 "Documentation updates for new devices"
...
Merge remote-tracking branch 'ksarkies/doc'
2012-11-12 14:11:46 -08:00
Ken Sarkies
35c0863a75
Documentation updates
2012-11-12 21:44:52 +10:30
Piotr Esden-Tempski
f714ee42c0
Merging pull request #60 Miscellaneous DMA fixes for F4
...
Merge remote-tracking branch 'bgamari/master'
2012-11-08 12:04:28 -08:00
Ben Gamari
9fea26e455
stm32/usart: Add enable_/disable_error_interrupt
2012-11-08 14:54:41 -05:00
Ben Gamari
095e6cdb5d
stm32f4/dma: Fix cut-and-paste error
2012-11-08 12:20:36 -05:00
Ben Gamari
2fe567e25d
stm32f4: Add dma.o
2012-11-08 12:12:59 -05:00
Karl Palsson
d417666095
Eliminate redundant gpio code from f2/f4/l1
...
Implemented as per exti2
2012-11-07 21:58:16 +00:00
Karl Palsson
ce8f47e7df
Enable nvic and exti support for L1
...
And include an example that uses it.
2012-11-07 21:54:18 +00:00
Karl Palsson
25acaa5878
Add usart support for L1.
...
Only tested with basic tx blocking, ie, the same example code as on
F2/F4, but the description of the block is almost identical.
2012-11-07 21:50:27 +00:00
Karl Palsson
4941286454
STM32L1 support, rebased onto upstream generalizations branch.
...
Working example again.
2012-11-07 21:50:27 +00:00
Karl Palsson
e4f84278f2
Add most of the rcc functions.
...
(Add the forgotten gpio.c file from before)
2012-11-07 21:50:27 +00:00
Karl Palsson
8318384cf1
More progress towards L1 support.
...
Believe gpio is complete, but untested without finishing at least the
RCC defines.
RCC defines are a work in progress
2012-11-07 21:50:27 +00:00
Karl Palsson
2011941b55
Vectors and Memory Map for STM32L1 series
2012-11-07 21:50:27 +00:00
Andrey Smirnov
12e1786863
Add a desig_get_unique_id_as_string
...
This commit adds desig_get_unique_id_as_string which is useful if one
wants to use device ID as USB serial number(iSerialNumber), for example.
2012-11-06 16:48:40 -08:00
Jeff Ciesielski
6c41c808c3
stm32/f1/can: Add clearing of can timing bits on init
...
This corrects a bug introduced with the addition of allowing loopback
and silent parameters in the init function.
2012-11-01 18:02:11 -07:00
Jeff Ciesielski
fa1d5f8e43
stm32/f1/can: clean up can_available_mailbox ->fewer 'if' statements
2012-10-31 17:03:26 -07:00
Piotr Esden-Tempski
507a1742dc
Merge pull request #57 F2/F4 timer merging action
...
Merge remote-tracking branch 'tdaede/f4-timer'
2012-10-31 13:47:54 -07:00
Piotr Esden-Tempski
def9b9f381
Added new f4 adc module to the library makefile.
2012-10-31 13:39:24 -07:00
Piotr Esden-Tempski
f5df25d6de
Merge pull request #55 STM32F4: New adc module
...
Merge remote-tracking branch 'ksarkies/adc-f4'
2012-10-31 13:38:51 -07:00
Piotr Esden-Tempski
60aa32e2b9
Merge pull request #53 CAN fixes
...
Merge remote-tracking branch 'tdaede/master'
2012-10-31 13:37:19 -07:00
Ken Sarkies
68e6818761
STM32F4 New: headers and source code for DMA
...
This has been tested with some dac, timer and (as yet uncommitted) adc examples.
2012-10-31 13:36:07 -07:00
Ken Sarkies
5a6b1a1934
STM32F1 Addition to DMA to add interrupt flag read and clear.
...
Additional macros and defines added to header for the purpose.
Also disable of increment modes (seem to have been omitted originally).
2012-10-31 13:35:59 -07:00
Piotr Esden-Tempski
6b2ca89f48
Merge pull request #22 fixing usb and f4 alignment issues
...
Merge remote-tracking branch 'jdk/master'
Conflicts:
lib/stm32/f1/Makefile
lib/stm32/f4/Makefile
2012-10-31 13:34:18 -07:00
Thomas Daede
016c74af25
F2 timers are the same as F4 timers, so make the same changes to them
2012-10-31 15:34:10 -05:00
Thomas Daede
9468933735
Add back timer_set_option for STM32F4, and document.
2012-10-31 00:42:58 -05:00