aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix data usb data toggle sync problemFred Sundvik2018-02-081-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB control transfers are structured as the following. For incoming transfers Setup (Data0 out) Data (Data1/Data0 in) - starting with data 1 Status (Data1 out) For outgoing transfers Setup (Data0 out) Data (Data1/Data0 out) - starting with data 1 Status (Data1 in) The in buffers (device to host) are always correctly synchronized, since they can always be reset to Data1 each setup packet without any synchronization problems. The problem occured for outgoing transfers (host to device). For incoming transfers the data banks always alternates, and will automatically stay in sync. Outgoing transfers also stays in sync when there's an odd number of data packets. However when the number is even, including zero, then the last packet received by the device will be data0 and the next setup packet also has to be data0, so there's a synchronization problem. This itself is not a problem since data toggle synchronization(DTS) is ignored for setup packets, however if the follwoing packet after that is also an out packet, then the data bank will be wrong and the packet dropped. In this case the USB spec don't allow sending a nack, so it will only recover after a timeout, when the host tries to send a new setup packet. The old code tried to take care of this situation by reinitializing both data banks when a setup packet is received. The problem is that the next packet might already have been received or is in progress of being received at this point, so the fixup comes to late. The new code does the fixup when a status packet is about to be sent from the device to avoid this problem.
* Fix typo in k20xx.hFred Sundvik2018-02-081-1/+1
|
* Merge pull request #82 from jstruebel/masterFabio Utzig2016-06-2115-0/+3161
|\ | | | | Added USB HID driver to community HAL
| * Added USB HID driver to community HALJonathan Struebel2016-06-1815-0/+3161
|/
* Merge pull request #80 from sdalu/ain_pinsFabio Utzig2016-06-062-0/+60
|\ | | | | Added Analog input/ref pins
| * Adding Analog input/ref pinsStephane D'Alu2016-05-292-0/+60
| |
* | 1-wire. Pointless uint8_t changed to more suitable size_t.barthess2016-05-311-1/+1
| |
* | 1-wire improvements.barthess2016-05-315-36/+36
| | | | | | | | | | | | | | | | | | 1) Functions reading bit from PAL now return ioline_t type. 2) Functions that handle acquired buffer with acquired bits now use uint8_t type because it corresponds to buffer type. 3) Cryptic bit shifting in bit storage functions replaced by dividion operations because all modern compilers perfectly optimise such operations.
* | 1-wire. Data acqusition code in test application rewritten in more safe waybarthess2016-05-303-9/+9
| |
* | Fixed project file for 1-wire for STM32F0xbarthess2016-05-301-4/+4
|/
* Merge pull request #76 from sdalu/priorityFabio Utzig2016-05-297-15/+62
|\ | | | | Enable priority validation, Fixed priorirty (nRF51 use a 2bit priority)
| * Enable priority validation, Fixed priorirty (nRF51 use a 2bits priority)Stephane D'Alu2016-05-177-15/+62
| |
* | Merge pull request #77 from sdalu/pwm_ppiFabio Utzig2016-05-295-17/+125
|\ \ | | | | | | allow use of GPIOTE/PPI in PWM to drive gpio pin
| * | allow use of GPIOTE/PPI to drive gpio pin (without callback)Stephane D'Alu2016-05-185-17/+125
| |/ | | | | | | changed value of PAL_NOLINE to -1
* | Merge pull request #78 from flabbergast/kinetisFabio Utzig2016-05-254-8/+3
|\ \ | | | | | | [KINETIS] Fixes for kernel-less builds.
| * | [KINETIS] Fixes for kernel-less builds.flabbergast2016-05-204-8/+3
|/ /
* | Merge pull request #75 from pl4nkton/hal_default_configUladzimir Pylinski2016-05-174-17/+44
|\ \ | | | | | | use config default as in chibios
| * | use config default as in chibiosNicolas Reinecke2016-05-174-17/+44
|/ /
* | Merge pull request #72 from pl4nkton/add_qei_driverUladzimir Pylinski2016-05-1631-1/+4383
|\ \ | |/ |/| Add qei driver
| * qei driver: fix potential overflow in qeiUpdateINicolas Reinecke2016-05-151-1/+1
| | | | | | | | | | when quiUpdate isn't called for while an cnt(uint16_t) is above 32767 delta(int16_t) can overflow.
| * qei driver: fix wrong type in qeiUpdateNicolas Reinecke2016-05-151-1/+1
| |
| * qei testhal: copyrightNicolas Reinecke2016-05-152-2/+2
| |
| * qei driver: change copyrightNicolas Reinecke2016-05-154-6/+6
| |
| * add qei testhal projectsNicolas Reinecke2016-05-0820-0/+3388
| |
| * add STM32 qei (quadrature encoder interface) driverNicolas Reinecke2016-05-0811-1/+995
| | | | | | | | | | | | | | Code from tinito in forum thread: http://forum.chibios.org/phpbb/viewtopic.php?f=14&t=685 Updated to chibios trunk.
* | Merge pull request #74 from sdalu/pallineFabio Utzig2016-05-093-12/+150
|\ \ | | | | | | PAL Line
| * | Added Analogue Line A0..A5Stephane D'Alu2016-05-091-0/+13
| | |
| * | added IO pins/lines definition (following STM32 model)Stephane D'Alu2016-05-092-0/+86
| | |
| * | added PAL_LINE supportStephane D'Alu2016-05-091-12/+51
|/ / | | | | | | follow template order
* | Merge pull request #70 from awygle/msp430xawygle2016-05-0815-515/+3402
|\ \ | | | | | | Added SPI driver and test code to MSP430X port
| * | Added SPI driver and test code to MSP430X portAndrew Wygle2016-05-0815-515/+3402
| |/ | | | | | | | | | | | | A DMA-driven SPI driver and fairly comprehensive test code for SPI on the MSP430X port. Required some cleanup to the DMA and Serial drivers as well. Includes some reformatting to be more in line with ChibiOS coding standards.
* | Merge pull request #69 from sdalu/pwmFabio Utzig2016-05-088-1/+1828
|\ \ | | | | | | PWM support for nRF51
| * | old C styleStephane D'Alu2016-05-051-1/+2
| | |
| * | Added PWM testhalStephane D'Alu2016-05-055-0/+1181
| | |
| * | PWM driverStephane D'Alu2016-05-053-1/+646
| | |
* | | Merge pull request #71 from flabbergast/kinetisFabio Utzig2016-05-0812-28/+213
|\ \ \ | |_|/ |/| | [KINETIS] PAL driver: implement PAL_LINE.
| * | [KINETIS] PAL driver: implement PAL_LINE.flabbergast2016-05-0812-28/+213
|/ /
* / Merge pull request #68 from awygle/msp430xawygle2016-05-0427-19/+4356
|/ | | MSP430X DMA Support, EXP430FR6989 Demo + Makefile Updates
* Merge pull request #55 from marcoveeneman/tiva-wdg-drivermarcoveeneman2016-05-02100-77/+2411
|\ | | | | Tiva WDG driver
| * Tiva. Updated Tiva makefiles to be compatible with the main repository.marcoveeneman2016-04-2811-22/+41
| |
| * Tiva. WDG. Changed fixed load value to the system clock in the demo.marcoveeneman2016-04-281-1/+1
| |
| * Mass license update.marcoveeneman2016-04-2883-56/+494
| |
| * Disabled SPI support in halconf.h and added some comments in main.cmarcoveeneman2016-04-112-2/+6
| |
| * Tiva. WDG. Added watchdog driver to tm4c129 platform.mk.marcoveeneman2016-04-061-1/+2
| |
| * Tiva. WDG. Added missing declarations for watchdog peripherals.marcoveeneman2016-04-061-1/+3
| |
| * Tiva. WDG. Added testhal demo for Watchdog driver.marcoveeneman2016-04-069-0/+1439
| |
| * Tiva. WDG. Added watchdog low level driver.marcoveeneman2016-04-063-1/+430
| |
| * Tiva. WDG. Added missing declarations for watchdog peripherals.marcoveeneman2016-04-061-1/+3
| |
* | Merge pull request #67 from flabbergast/kinetisFabio Utzig2016-05-011-3/+5
|\ \ | | | | | | [KINETIS] Fix KL26Z/I2C/Makefile.
| * | [KINETIS] Fix KL26Z/I2C/Makefile.flabbergast2016-05-011-3/+5
| | |