aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-11-07Further re-factor USB string handling codeAndrey Smirnov
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-07Extend control hook frameworkAndrey Smirnov
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-06Add a desig_get_unique_id_as_stringAndrey Smirnov
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-06Change USB strings handling codeAndrey Smirnov
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-06Enable OTG clock during initializationAndrey Smirnov
Add a call to enable USB clock, otherwise the dive will not enumerate.
2012-11-02stm32/f1/rcc: expose method for selecting MCO sourceJeff Ciesielski
2012-11-01stm32/f1/can: Add clearing of can timing bits on initJeff Ciesielski
This corrects a bug introduced with the addition of allowing loopback and silent parameters in the init function.
2012-10-31stm32/f1/can: clean up can_available_mailbox ->fewer 'if' statementsJeff Ciesielski
2012-10-31stm32/can: add 'shift' defines for can timing bitsJeff Ciesielski
Useful whe you want to return min/max values of timing parameters
2012-10-31Merge pull request #57 F2/F4 timer merging actionPiotr Esden-Tempski
Merge remote-tracking branch 'tdaede/f4-timer'
2012-10-31Fixed header clean target find call for Darwin BSD find too.Piotr Esden-Tempski
2012-10-31Merge pull request #56 Allow make to build libs/examples in parallel.Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/pr_parallel_makes'
2012-10-31Fixed stm32f4-discovery/usb_cdcacm example for deduplication patches.Piotr Esden-Tempski
2012-10-31Added new f4 adc module to the library makefile.Piotr Esden-Tempski
2012-10-31Merge pull request #55 STM32F4: New adc modulePiotr Esden-Tempski
Merge remote-tracking branch 'ksarkies/adc-f4'
2012-10-31Merge pull request #53 CAN fixesPiotr Esden-Tempski
Merge remote-tracking branch 'tdaede/master'
2012-10-31STM32F4 New: headers and source code for DMAKen Sarkies
This has been tested with some dac, timer and (as yet uncommitted) adc examples.
2012-10-31STM32F1 Addition to DMA to add interrupt flag read and clear.Ken Sarkies
Additional macros and defines added to header for the purpose. Also disable of increment modes (seem to have been omitted originally).
2012-10-31Merge pull request #22 fixing usb and f4 alignment issuesPiotr Esden-Tempski
Merge remote-tracking branch 'jdk/master' Conflicts: lib/stm32/f1/Makefile lib/stm32/f4/Makefile
2012-10-31F2 timers are the same as F4 timers, so make the same changes to themThomas Daede
2012-10-31Fixed find call for Darwin BSD find.Piotr Esden-Tempski
2012-10-31Add back timer_set_option for STM32F4, and document.Thomas Daede
2012-10-31Update comments and copy author from F4 version.Thomas Daede
2012-10-30Move timer.c to be common to all stm32 seriesThomas Daede
2012-10-30Allow make to build libs/examples in parallel.Karl Palsson
You cannot issue make inside a for loop if you want to let it run in parallel. Performance increases seen: 10:03 < zyp> I tested make all -j8 without your change, it takes 8.7s 10:03 < zyp> so on my cpu, your change gives >2x speedup My own cpu gives more modest speed increases, of only about 20%.
2012-10-30STM32F4: New adc moduleKen Sarkies
Note adc.h was provided by Matthew Lai but was never merged. adc.c is new.
2012-10-29Merge branch 'efm32'chrysn
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-29Merge branch 'generalizations'chrysn
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-28Fix CAN standard ID mask to be 11 bits.Thomas Daede
2012-10-28Release the correct fifo in can_receive()Thomas Daede
2012-10-28Add CAN support for F2 and F4 series.Thomas Daede
All stm32 series currently released share the same bxCAN hardware, so share can.c among all the families.
2012-10-23fixes for generated header cleanupchrysn
* make target phony * don't complain about missing files
2012-10-23make `make clean` work againchrysn
the irq2nvic_h generates files in a way make doesn't understand, so it now also provides an option to clean up again
2012-10-23only generate irq headers on demandchrysn
as header file generation is not directly controlled by make (which, by the way, makes the generatedheaders target phony), the script has to take care of not needlessly generating files itself lest to have make rebuild everything everytime
2012-10-22stm32/i2c: Add DOXYGEN strings for i2c helper functions.Jeff Ciesielski
Also: Define i2c_dutycycle group in i2c header
2012-10-22Missing EXTI ports and flag numbers for F4Karl Palsson
(Also missing for forthcoming L1)
2012-10-22stm32/f1: Add user_reset_hook to reset_handler w/ jump_to_dfu presetJeff Ciesielski
This allows for pragramatic jumping to the DFU bootloader on CL devices, or could be used for things like CRC checking of the firmware before boot
2012-10-22stm32/f1/can: Add function to detect if can system has an available mailboxJeff Ciesielski
2012-10-22deprecation macro (closes #48)chrysn
2012-10-21Added irq.yaml to lpc_13xx and lpc_17xx familiesSilvio Gissi
2012-10-19stm32/f1/i2c: remove unnecessary parenthesisJeff Ciesielski
2012-10-19stm32/f1/can: Replace mistaken logical operators with bitwise operators.Jeff Ciesielski
also: remove unnecessary parenthesis
2012-10-19stm32/f1/gpio: use |= instead of = when setting up registersJeff Ciesielski
2012-10-19examples: fix lisa-m-1 can example to use new can init functionJeff Ciesielski
2012-10-19stm32/f1/rtc: add PLL2/3 to switch statement to avoid compiler warningJeff Ciesielski
2012-10-19stm32/f1/rcc: add 25mhz in to 72mhz out clock tree setup function.Jeff Ciesielski
also: added support for previously undefined PLLs
2012-10-19stm32/f1/vector: add ability to boot to DFU bootloaderJeff Ciesielski
note: Only works on CL devices also: this could probably use a helper function
2012-10-19stm32/f1/i2c: add a whole bevy of additional helper functionsJeff Ciesielski
2012-10-19stm32/f1/dma: add clear_flag helper functionJeff Ciesielski
2012-10-19stm32/f1/can: Add loopback/silent vars to init function.Jeff Ciesielski
Also: add helper function for mailbox checking