Commit Graph

1537 Commits

Author SHA1 Message Date
Karl Palsson af3389652c stm32: timers: Fix edge polarity setup
The CCxP/CCxNP bits are actually separated by a reserved bit, so the
correct mask is 0xa, (0b1010) not 0x6 (0b0110)

Reported by PyroDevil on the mailinglist
2014-07-15 13:28:02 +00:00
Karl Palsson cf5fb002f6 [l1-flash/eeprom] Add lock/unlock/eeprom helper routines 2014-07-14 17:54:20 +00:00
Frantisek Burian 4d28c1b849 USB: Fix definition of function according to previous commit. 2014-07-14 14:50:07 +02:00
Franck Jullien d6bad27735 Allow more than one usbd_register_set_config_callback
In a composite device if one want to separate code
for each interface, usbd_register_set_config_callback
can now register more than one callback.

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
2014-07-14 14:04:58 +02:00
Pavol Rusnak 806ebb18fa add MSC (Mass Storage Class) support 2014-07-03 18:46:55 +02:00
Felix Ruess f6b6d62ec5 [stm32] fix dox for rcc_periph_x
closes #329
2014-06-28 02:40:36 +02:00
Felix Ruess f49c1f264a [stm32] fix i2c_reset
rcc_periph_reset_pulse needs RST_I2Cx instead of RCC_I2Cx as argument
see also #329
2014-06-26 00:05:46 +02:00
Felix Ruess c01f9ee323 [stm32] implement i2c_reset using rcc_periph_reset_pulse
this also adds support for I2C3 in i2c_reset
2014-06-11 12:58:05 +00:00
Karl Palsson 67b538a540 usb/stm32: Add top level commentary for scope
Remove some unncessary commentary and fixed bit fields introduced earlier via
insufficient review.
2014-05-25 19:54:06 +00:00
Roger Wolff c07a1291f4 usb/stm32 added NOVBUSSENS bit definitions 2014-05-25 19:45:52 +00:00
Roger Wolff 5c5c77d4dc stm32/f0: DMA base address compatibility tweak 2014-05-25 19:35:20 +00:00
Karl Palsson b37597f1db stm32/dac: Follow ref-man guidelines on GPIO config
GPIO pins should be configured for Analog IN on virtually all families
to reduce parasitic consumption.

Reported-by: Roger Wolff <R.E.Wolff@BitWizard.nl>
2014-05-19 10:29:11 +00:00
Roger Wolff a99e3a2cd3 stm32/flash: Make comments match reality
Copy/paste commentary with wrong sizes.
2014-05-19 10:21:56 +00:00
Karl Palsson d3e228176f libopencmsis: Fill in missing CMSIS interrupt links
And correct a minor typo in the generated code.
2014-05-14 16:11:43 +00:00
Felix Ruess 67242de60d [f3] add USART_SR_x defines for common status flags
enables the use of usart_get_flag(USARTx, USART_SR_x) on F3 just like on F124

closes #283
2014-04-09 16:41:20 +02:00
Karl Palsson d839ce41f6 stm32f1: Fix RCC CAN defines
Thanks to Марко Краљевић <krasnaya.zvezda@gmail.com>
2014-04-08 18:51:26 +00:00
Karl Palsson 34ed0a740b sync: use matching #ifdefs in source as in header
Fixes github issue #298
2014-04-04 20:19:37 +00:00
Karl Palsson 5a0c305aad Clarify toolchains and install steps
Including removing the extremely unhelpful DETECT_TOOLCHAIN option.
2014-04-04 20:12:28 +00:00
Karl Palsson cb33acc32a stm32f1: Add missing peripheral base address for F100 2014-03-31 13:56:50 +00:00
Frantisek Burian d7ec7f0370 Update README to match all supported families 2014-03-20 21:22:09 +00:00
Karl Palsson 5b6e97732b cm0 doesn't support sync operations
So remove the warning, the sync code is already left out of the cm0
builds.

Fixes #291
2014-03-12 09:40:03 +00:00
Ken Sarkies 1f5ce647ff stm32: adc.h regression: Add missing register definitions
The adc unification pull left out some of the shortcut definitions for
ADC1.  See 27bc12de61
2014-03-12 09:27:56 +00:00
Karl Palsson d2c49bce6a gitignore more project files
And sort one of the lists alphabetically.
2014-03-12 09:27:08 +00:00
Nikolay Merinov ec29bd7f48 stm32l1: lcd: Basic LCD configure functions. 2014-03-11 21:44:48 +00:00
Nikolay Merinov 553a14f21d stm32l1: lcd: Define all LCD registers
Define minimal susbet of necessary functions for work with LCD screen.
2014-03-11 21:44:48 +00:00
Frantisek Burian 14f1ac4764 stm32: common: SPI: Fix spi_common_all warning
Fixes #226

This function should be deprecated in the future.
2014-03-11 21:13:03 +00:00
Frantisek Burian bf01d890f6 [STM32F0] Add support for timers.
This commit has been based on kuldeepdhaka's pioneer work, but it was reformatted to apply libopencm3 inclusion tree correctly.

timer_common_all.c now supports new rcc_periph_reset_pulse function for all families.
2014-03-11 16:49:01 +00:00
Rick Kimball f780075d4d add dac support to stm32 f0 2014-03-11 16:40:31 +00:00
Ken Sarkies 7816501dbc Changes to the header includes for all STM32 peripherals
to remove variations, redundancies, add missing, fix errors. All c files
refer only to the dispatch style headers in /include/stm32. Those headers
#include memorymap.h and cm3/common.h. All references to
these are removed from the family specific headers. Ethernet untouched as
it appears incomplete.

Added dummy spi.c for F0/F3. Fix some doxygen anomalies.
2014-03-11 16:40:31 +00:00
Felix Held 0f29fc8b1b [sam3a] apply SRCLIBDIR patch 2014-03-01 18:16:33 +01:00
Frantisek Burian 0d08891c8d [stm32f1] Fix bad RCC_ definitions for issue #77 2014-02-24 18:44:12 +00:00
Felix Held 5248bee639 [sam3] show the sam3 subfamilies in the doxygen-generated documentation 2014-02-24 18:35:22 +00:00
Felix Held 641fbffe9a [sam3a] add irq table and memory map 2014-02-24 02:32:38 +01:00
Felix Held 26edb8ec42 [sam3s8] add flash size information for linker script generator 2014-02-24 02:32:38 +01:00
Felix Held b599095e6c [sam3x] add missing DACC_BASE and remove double definition of RTC_BASE 2014-02-24 02:32:38 +01:00
Frantisek Burian d96343d487 [FIX] Fix the ATOMIC suport. 2014-02-18 02:03:09 +01:00
Uwe Bonnes 86d35fe91c include/libopencm3/cm3/common.h: Fix CRLF. 2014-02-18 01:44:28 +01:00
R.E. Wolff fbf8c19ea4 stm32: dac: buffer enable bits were inverted. 2014-02-17 15:19:22 +00:00
bon@elektron.ikp.physik.tu-darmstadt.de 8b4ac9775e cm3/common.h: Cast addr in BBIO_xx() macros. BBIO_xx has 4 byte size. 2014-02-13 20:46:07 +01:00
Frantisek Burian 6de1b50c4e [BUILD] Fix the correct make behavior if compiling inside tree
On linux, the output of CP rule was try to write to / which is - of course, forbidden for write.

This solution adds to each part of lib correct pointer to the root of lib where the libs should be written.

Bug found by Kuldeep Singh Dhaka.
2014-02-12 15:27:03 +00:00
Karl Palsson eb44e7c617 docs: note dependencies for PDF generation
Probably lots of dependencies missing, these are what I needed _after_
getting regular html docs working.
2014-02-12 15:21:09 +00:00
Frantisek Burian cac25258e1 * [BUILD] Add build system module GENLINK, update README how to use it. 2014-02-07 07:47:54 +01:00
Frantisek Burian 78eff1210e [BUILD] Add build system module makefiles, add README how to use it. 2014-02-07 07:47:54 +01:00
Frantisek Burian 09fcb14f74 [F0] Add new irq's
Be warned that this commit changes names of some old definitions. This may broke old code !
2014-02-07 07:46:54 +01:00
Frantisek Burian 9c0ca88c2e [F0] Update CRCto be compatible wih RM0091 Rev. 5 2014-02-07 07:46:54 +01:00
Frantisek Burian fc9a7260c2 [F0] Add new peripheral Clock Recovery Subsystem as defined in RM0091 Rev. 5 2014-02-07 07:46:54 +01:00
Frantisek Burian f244bc87dd [F0] Adapted USB to be compatible wih RM0091 Rev. 5 2014-02-07 07:46:53 +01:00
Frantisek Burian 55750d5dc6 [F0] Updated RCC module to be compatible wih RM0091 Rev. 5 2014-02-07 07:46:53 +01:00
Frantisek Burian c2f73b9524 [F0] Updated Uart module to be compatible wih RM0091 Rev. 5 2014-02-07 07:46:53 +01:00
Frantisek Burian 8b0a591ca5 [F0] Updated memorymap.h to meet RM0091 Rev. 5 2014-02-07 07:46:53 +01:00