Commit Graph

53 Commits

Author SHA1 Message Date
Nicolas Reinecke 4a36fb944b qei driver: fix potential overflow in qeiUpdateI
when quiUpdate isn't called for while an cnt(uint16_t) is above 32767
delta(int16_t) can overflow.
2016-05-15 20:21:20 +02:00
Nicolas Reinecke 040c8c9ad2 qei driver: change copyright 2016-05-15 20:21:20 +02:00
Nicolas Reinecke 6f67aa78c3 add STM32 qei (quadrature encoder interface) driver
Code from tinito in forum thread:
http://forum.chibios.org/phpbb/viewtopic.php?f=14&t=685

Updated to chibios trunk.
2016-05-08 18:27:11 +02:00
Nicolas Reinecke f93efb407d f4 platform.mk: reoder hardware 2016-05-01 02:33:23 +02:00
Nicolas Reinecke 509816147d fix whitespace 2016-05-01 02:33:07 +02:00
Nicolas Reinecke 409a3f226d FSMC: fix build on stm32f1x and stm32f3
STM32F1,3 has no fsmc reset function so make it optional
2016-04-29 14:14:51 +02:00
Nicolas Reinecke 14dc50c95d add stm32f1xx port 2016-04-28 17:22:41 +02:00
barthess 9d74dd2661 STM32 mass update to current naming convention in ChibiOS 2016-04-07 16:39:12 +03:00
barthess 18b41efefa NAND. Cosmetical improvement 2016-03-17 12:03:18 +03:00
barthess 04c11df0b2 Updated some testhal projects to new ChibiOS code 2016-03-15 10:19:56 +03:00
Fabien Poussin 499335cd61 TIMCAP: Initial commit 2016-02-16 00:51:22 +01:00
Fabien Poussin 771feb098d USB-Host: Initial commit 2016-02-15 23:34:25 +01:00
barthess c757be0c16 Fixed typo 2015-10-14 17:52:47 +03:00
barthess a2f9bc469a FSMC code cleanup 2015-10-14 17:46:40 +03:00
Fabien Poussin 48a03708ff Changed the way files are included to a more convenient way. 2015-08-20 17:47:21 +02:00
Michael Spradling 316c3b4825 Add CRC Driver
This patch includes a high level and two low level drivers.

The high level driver is enabled with flag HAL_USE_CRC

The low level drivers include:
    * Hardware CRC for the STM32 cortex processor lines.(when supported)
        * Enabled with flag STM32_CRC_USE_CRC1
        * DMA is enabled with CRC_USE_DMA
          * SYNC api will use DMA, but put calling thread to sleep
          * ASYNC api enabled.
        * DMA Disabled
          * SYNC api spin while calculating CRC
          * ASYNC api disabled
    * Software CRC (3 modes)
        * CRCSW_CRC32_TABLE - Enables crc32 with lookup table.
        * CRCSW_CRC16_TABLE - Enables crc16 with lookup tables.
        * CRCSW_PROGRAMMBLE - Enables any crc done with computation.
          * Can calculate any crc configuration.
        * CRC_USE_DMA obviously not support with software CRC
2015-08-16 01:26:07 -04:00
barthess e7a3df6c18 Improved FSMC.
SRAM configuration is much more flexible now.
2015-08-04 13:30:01 +03:00
Andrea Zoppi 58f5fd1d72 Removed dependency on ST library for SDRAM 2015-06-28 22:53:44 +02:00
Andrea Zoppi b872d9409c Minor changes 2015-06-27 18:34:33 +02:00
Andrea Zoppi ee1353a305 Old definitions removed 2015-06-27 18:32:58 +02:00
TexZK 542d79ef90 LTDC and DMA2D ported to ChibiOS/RT 3
+ LTDC and DMA2D peripheral drivers
+ LTDC and DMA2D demo project
2015-06-24 21:24:45 +02:00
barthess 06640e31ce EICU. Fixed incorrect frequency calculation.
Timers 9, 10, 11 connected to APB2 but constant in driver
initialization code was taken for APB1.
2015-06-02 15:53:58 +03:00
barthess 82973c099e Fixed copypaste error in comment 2015-06-02 11:15:04 +03:00
barthess c44092eb0f NAND code changed to use bitmap class 2015-05-02 20:51:04 +03:00
barthess 3d45d3d4fa EICU. Updated lld according to chibios updates. 2015-03-31 16:43:14 +03:00
barthess 0feccaa469 EICU. Updated authors. 2015-03-13 23:53:00 +03:00
barthess 6398d0d351 EICU. Low level driver moved to TIMv1 directory 2015-03-13 23:26:24 +03:00
barthess 22819b0f46 EICU. Temporal code moved to main chibios repo. 2015-03-13 23:19:12 +03:00
barthess 6f9bf595fd Merge branch 'master' of github.com:ChibiOS/ChibiOS-Contrib into HEAD 2015-03-13 22:48:38 +03:00
barthess bff52a2141 EICU. Minor improvements 2015-03-13 22:48:25 +03:00
barthess bfac876090 EICU. Added support of single channel timers.
Tested in hardware with TIM11.
2015-03-13 12:07:48 +03:00
barthess ceb3c861d5 EICU improvements.
Added field containing available channels into EICU driver structure.
This simplified driver code.
2015-03-12 18:24:49 +03:00
barthess 070bcc130c EICU. Added const qualifier for driver pointer in some functions 2015-03-05 16:03:05 +03:00
barthess ae1ce0ea2b EICU. Timer widht (16-32 bits) now stored in driver field and detected durign startup 2015-03-05 15:59:32 +03:00
barthess e75668f53b EICU. Cosmetical cleanup 2015-03-03 22:43:25 +03:00
barthess 35c48df910 EICU. Deleted code for "fast" capture.
Reasons:
1) It duplicates functionality of "vanilla" ICU driver
2) Fast and slow modes are mutually exclided in single timer
2015-03-03 22:24:16 +03:00
barthess 28ab149cf7 EICU. Cosmetical improvements. 2015-03-03 21:07:44 +03:00
barthess 75688209c2 EICU now able to capture data on all channels 2015-03-03 19:01:28 +03:00
barthess 4764c3ba15 EICU. Fixed handlign of 32-bit timers. General code cleanup. PWM mode still untested. 2015-03-01 21:09:12 +03:00
barthess 71bba80a03 EICU. Fixed some typos. 2015-03-01 14:38:24 +03:00
barthess 4e7a5796b4 Added EICU driver in HAL. Added STM32 backend for EICU. 2015-02-28 21:42:40 +03:00
barthess 4ab64b4e4e Fixed copyrights 2014-12-06 20:15:59 +03:00
barthess ed62d9e4d4 FSMC. SDRAM. Fixed bug with registers' memory layout 2014-10-31 03:28:04 +03:00
barthess 1f97428d5d FSMC. SDRAM. Fixed some typos 2014-10-31 02:51:00 +03:00
barthess 1c50a03cfd FSMC. SDRAM. Added safety mask for SDRTR register 2014-10-25 15:54:24 +03:00
barthess e874067224 FSMC. SDRAM. Fixed delay code 2014-10-25 15:46:31 +03:00
barthess 3af04b9ee5 FSMC. SDRAM. Improved stop function 2014-10-25 15:39:21 +03:00
barthess b47ddce74d FSMC. SDRAM driver cleanup. Needs review. 2014-10-25 15:26:29 +03:00
barthess e9f9ddaa12 FSMC. SDRAM architecture reworked. Needs review. 2014-10-24 21:46:17 +03:00
barthess 5f231b6aaf FSMC. SDRAM. Style cleanup 2014-10-22 10:33:02 +03:00