Commit Graph

13 Commits

Author SHA1 Message Date
Kristian Sloth Lauszus
4b5d5310d1 Make the loop depend on the clock frequency when sending out the resume signal, as the delay time is critical
See: http://www.usbmadesimple.co.uk/ums_3.htm and https://www.nxp.com/docs/en/application-note/AN5385.pdf
2018-03-11 18:38:30 +01:00
László Monda
9fbf2bbf08 Iterate mult of I2C_MasterSetBaudRate from 0 to 2 instead of just 0. This allows for a more accurate actual I2C frequency. Make sure not to use repeated start because of the related silicon bug. 2018-01-14 17:59:41 +01:00
László Monda
217f0b3bdb Add I2C_ActualBaudRate 2018-01-14 17:55:13 +01:00
László Monda
7142722eed Make the I2C driver able to handle variable length messages by reading the first byte of the message (the message length) and update transfer.dataSize accordingly. 2017-09-25 03:00:37 +02:00
László Monda
cd173f98d1 Only use prescaler 0 in order to workaround errata 6070 for mask 2N03G and 3N03G - a silicon bug causing I2C to misbehave upon repeated starts. I'm not sure whether MK22FN512VLH12 is affected but better be safe than sorry. 2017-07-10 00:18:55 +02:00
László Monda
ed719ab139 Make I2C_Watchdog volatile. 2017-03-16 14:01:47 +01:00
László Monda
f2c20af612 Make the KSDK not depend on the UHK firmware. 2017-02-18 21:24:24 +01:00
László Monda
bc5aeb58ee Make git convert line endings of *.[ch] files to Unix format. 2017-02-18 18:21:35 +01:00
László Monda
49b0207883 Convert Windows line endings to Unix line endings. 2017-02-18 18:19:53 +01:00
Santiago
c756064704 I2C dead-lock fix
Small modification to the KSDK 2.0 I2C driver to control when the interrupt stops happening.
2017-02-18 13:22:33 +01:00
László Monda
8e3cffc998 Update README.md 2017-01-21 01:13:59 +01:00
László Monda
e522962619 Modify startup_MK22F51212.S in order to relocate the UHK firmware that links to the KSDK. This way, the UHK firmware works with KBOOT. 2017-01-21 00:59:27 +01:00
László Monda
69affcfe62 Add KSDK and readme. 2016-08-09 18:06:35 +02:00