aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/KINETIS/LLD
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #136 from wiml/k64_uartsFabien Poussin2018-03-082-72/+248
|\ | | | | Added support for additional UARTs (up to six on the K64F).
| * Added support for additional UARTs (up to six on the K64F).Wim Lewis2017-12-082-72/+248
| | | | | | | | | | Also moved some code that is duplicated per-UART into local functions to reduce the amount of duplication.
* | Merge pull request #143 from qmk/fix_kinesis_usb_data_syncFabien Poussin2018-03-081-16/+41
|\ \ | | | | | | Fix Kinetis usb databank synchronization problems
| * | 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.
* | | Add usb_lld_wakeup_host for KinetisFred Sundvik2018-02-031-0/+23
| |/ |/|
* | [KINETIS] Add saved_state to USB driver.flabbergast2016-07-171-0/+4
|/
* [KINETIS] Fixes for kernel-less builds.flabbergast2016-05-203-7/+3
|
* [KINETIS] PAL driver: implement PAL_LINE.flabbergast2016-05-081-0/+37
|
* Merge pull request #62 from flabbergast/i2cFabio Utzig2016-04-272-58/+242
|\ | | | | [KINETIS] I2C update (timeouts, KL27Z)
| * [KINETIS] Add I2C workaround for KL27Z.flabbergast2016-04-252-3/+74
| |
| * [KINETIS] Fix I2C clock divisor computation.flabbergast2016-04-251-2/+2
| |
| * [KINETIS] I2C driver: implement timeout.flabbergast2016-04-252-6/+32
| |
| * [KINETIS] Slightly rewrite and comment i2c driver.flabbergast2016-04-251-56/+143
| |
* | [KINETIS] fix ADC LLD bug, grpp access after clearbunnie2016-04-241-2/+3
|/
* [KINETIS] Fix I2C TX to not wait for RX if requested rxbytes is 0Jonathan Struebel2016-04-081-1/+1
|
* [KINETIS] Rename header guards in HAL.flabbergast2016-04-048-24/+24
|
* [KINETIS] Rename HAL LLD files.flabbergast2016-04-0416-0/+0
|
* [KINETIS] HAL cleanup/update.flabbergast2016-03-2213-4/+3776
| | | | | | | New entries in kinetis_registry.h to support new MCUs. Moved registers to ext/CMSIS, like it is done for STM32. Move the same drivers to LLD. Add USB driver.
* [KINETIS] Move from main repo to contribFabio Utzig2016-03-076-0/+1790