Karl Palsson
40f3ac58fb
[l1] Add PWR register definitions
...
Just the include file.
2012-11-14 00:16:56 +00:00
Karl Palsson
259d4e5171
[l1] Add missing TIM5 bit from newer ref manual
2012-11-14 00:16:52 +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
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
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
020ec859df
Fixed cut and paste typo for CAN banks.
2012-11-08 14:29:11 -08:00
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
f3557b8d60
stm32f4/dma: Fix DMA_ISR_OFFSET definition
2012-11-08 12:13:16 -05: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
b860504fed
Add L1 to nvic, now that it's all generated
2012-11-07 21:50:27 +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
9aed64a19d
Finish RCC definitions => Working example!
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
720e85f850
Further re-factor USB string handling code
...
This commit refactors USB string code, making it, hopefully, less
buggy and more easier to understand. It also removes "magic" bit
manipulation and "magic" numbers;
2012-11-07 11:30:44 -08:00
Andrey Smirnov
c5c4db0196
Extend control hook framework
...
This commits adds a new error code that can be return from a
registered control callback: USBD_REQ_NEXT_CALLBACK. This return code
signifies that the callback is done processing the data successfully,
but user would like to have all matching callbacks down the callback
chain to be executed too.
This change allows for example to intercept standard requests like
GET_DESCRIPTOR, do some small action upon receiving of one, but still
have the standard callback executed and do it's job. This way user
doesn't have to re-implement standard GET_DESCRIPTOR functionality if
they want to intercept that request to do some small thing.
2012-11-07 10:33:51 -08: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
Andrey Smirnov
7a5da60e26
Change USB strings handling code
...
This commit add an extra field to the _usbd_device, that allows to
keep track of the number of USB strings which allows simplify
boundaries checking code in usb_standard_get_descriptor.
This commit also changes the index base for strings in
usb_standard_get_descriptor which allows to get rid of necessity to
have a dummy one-character string in a strings array.
2012-11-06 16:46:55 -08:00
Jeff Ciesielski
e5cf92b9ae
stm32/f1/rcc: expose method for selecting MCO source
2012-11-02 10:52:25 -07:00
Jeff Ciesielski
7e9b79aa55
stm32/can: add 'shift' defines for can timing bits
...
Useful whe you want to return min/max values of timing parameters
2012-10-31 17:01:56 -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
Ken Sarkies
0bd415365d
STM32F4: New adc module
...
Note adc.h was provided by Matthew Lai but was never merged.
adc.c is new.
2012-10-30 10:22:52 +10:30
chrysn
a1f4c29872
Merge branch 'efm32'
...
this adds support for energy micro's efm32 tiny gecko, gecko, leopard gecko and
giant gecko series.
also, the experimental libopencmsis is included in this branch, as it is
required for full operation of the free energymicro standard library
2012-10-29 14:44:37 +01:00
chrysn
a01e5c201b
Merge branch 'generalizations'
...
this merges common c and header files of different architectures, adds a
dispatch mechanism and yaml descriptions of interrupt handlers from which the
whole interrupt table setup c code is generated.
2012-10-29 14:34:42 +01:00
Thomas Daede
0fd7cc3559
Fix CAN standard ID mask to be 11 bits.
2012-10-28 02:56:22 -05:00
Jeff Ciesielski
f80bf1ccb1
stm32/i2c: Add DOXYGEN strings for i2c helper functions.
...
Also: Define i2c_dutycycle group in i2c header
2012-10-22 15:48:22 -07:00
Karl Palsson
e55a9e3875
Missing EXTI ports and flag numbers for F4
...
(Also missing for forthcoming L1)
2012-10-22 22:37:44 +00:00
chrysn
a67a070438
deprecation macro ( closes #48 )
2012-10-22 15:56:21 +02:00
Silvio Gissi
0a1cf977eb
Added irq.yaml to lpc_13xx and lpc_17xx families
2012-10-21 08:54:40 +02:00
Jeff Ciesielski
069a758f6c
stm32/f1/rcc: add 25mhz in to 72mhz out clock tree setup function.
...
also: added support for previously undefined PLLs
2012-10-19 16:31:52 -07:00
Jeff Ciesielski
be4ee41ef9
stm32/f1/i2c: add a whole bevy of additional helper functions
2012-10-19 16:29:20 -07:00
Jeff Ciesielski
a2fc8768c6
stm32/f1/dma: add clear_flag helper function
2012-10-19 16:28:44 -07:00
Jeff Ciesielski
4b86c28141
stm32/f1/can: Add loopback/silent vars to init function.
...
Also: add helper function for mailbox checking
2012-10-19 16:27:17 -07:00
chrysn
a433217c5d
Merge branch 'generalizations' into efm32
2012-10-19 19:29:32 +02:00
chrysn
14a5fc78cf
completing dispatch
...
the LM3S irq list was previously unused as it was missing in the
dispatch files; now it got added. (before HEAD^, it wouldn't have made
any difference because the discriminating constant wasn't defined
anyway)
also, this enhances the warning messages
2012-10-19 19:10:42 +02:00
chrysn
ab5a544d45
added irqs for the rest of the efm32 devices
2012-10-19 01:11:43 +02:00
chrysn
d526dd3268
rename tinygecko->efm32tg everywhere
2012-10-19 00:59:49 +02:00
chrysn
d13043d787
change discriminator in efm32 series from TINYGECKO to EFM32TG
2012-10-19 00:31:10 +02:00