aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/i2c.c
Commit message (Collapse)AuthorAgeFilesLines
* I2C. Added forgotten check of BUSY flag.barthess2011-12-091-0/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3587 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Added timeout in functions. Code clean ups.barthess2011-12-081-58/+36
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3583 35acf78f-673a-0410-8e92-d51de3d6d3f4
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3581 ↵barthess2011-12-081-6/+2
| | | | 35acf78f-673a-0410-8e92-d51de3d6d3f4
* git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3578 ↵gdisirio2011-12-081-30/+24
| | | | 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Error handling from userland code added.barthess2011-12-071-2/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3572 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Switch to synchronous model.barthess2011-12-071-19/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3570 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Bug fixes.barthess2011-12-061-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3562 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Tested on tmp75, mma8451, max1236.barthess2011-12-041-29/+11
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3553 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. DMA works.barthess2011-12-021-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3550 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Code compiles but does not work.barthess2011-12-011-8/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3548 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Nop.barthess2011-12-011-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3545 35acf78f-673a-0410-8e92-d51de3d6d3f4
* I2C. Merge code from trunk.barthess2011-08-281-0/+4
|\ | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3263 35acf78f-673a-0410-8e92-d51de3d6d3f4
| * git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3254 ↵gdisirio2011-08-261-0/+4
| | | | | | | | 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3250 ↵barthess2011-08-231-1/+1
| | | | | | | | 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. 1 - Merge code from trunk. 2 - Fix driver problems detected by the ↵barthess2011-08-231-4/+12
|\| | | | | | | | | | | CH_DBG_SYSTEM_STATE_CHECK git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3249 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Added template of synchronouse deriver. It does not work for a moment.barthess2011-08-051-0/+8
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3190 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. STOP waitings was replaced by GPT callback functions. Need much of testing.barthess2011-07-191-2/+2
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3166 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Documentation improvements. Dead code clenups.barthess2011-07-121-6/+12
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3153 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Code clean ups.barthess2011-07-111-21/+2
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3151 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Main problem fixed, but some minor problems must to be fixed.barthess2011-07-091-2/+0
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3142 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Driver still cause stack overflows.barthess2011-07-071-3/+1
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3134 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3117 ↵barthess2011-07-041-9/+8
| | | | | | | | 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Driver looks working, but sometimes hangs up. I don't know, my big ↵barthess2011-07-031-18/+24
| | | | | | | | | | | | project cause troubles in it, or driver cause troubles in my project. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3116 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Trying to add optional WAIT support. Driver broken.barthess2011-07-011-22/+18
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3101 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Added dirty hack to realize thread safe dirver. Needs to be rewrited.barthess2011-06-301-10/+6
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3100 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. API changed. Transmit and receive buffers removed from I2CSlaveConfig. ↵barthess2011-06-301-5/+10
| | | | | | | | | | | | Now pointers to that buffers pass in functions arguments. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3099 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Some coding style improvements.barthess2011-06-231-4/+11
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3074 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Commetns style changed to /**/.barthess2011-06-231-9/+8
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3073 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Fixed indent style. All tabs changed to 2 spaces.barthess2011-06-231-16/+16
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3071 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Variables shared among I2C1 and I2C2 interrupt handlers moved to driver ↵barthess2011-06-231-0/+2
| | | | | | | | | | | | structure. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3070 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Slave config structure now have const qualifier. Moset of fields moved ↵barthess2011-06-211-6/+18
| | | | | | | | | | | | to the driver structure. May be broken events subsystem in driver. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3067 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Some fields from I2CSlaveConfig moved to driver.barthess2011-06-211-15/+15
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3066 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. "Slave_addr" and "nbit_addr" fields from I2CSlaveConfig structure ↵barthess2011-06-181-22/+8
| | | | | | | | | | | | merged together. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3057 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Code cleanups.barthess2011-06-181-1/+1
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3056 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. API BROKEN! Structure fields renamed in underscore naming style.barthess2011-06-181-2/+2
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3055 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Merged code from trunk.barthess2011-06-071-1/+2
|\| | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3036 35acf78f-673a-0410-8e92-d51de3d6d3f4
| * License updated.gdisirio2011-03-181-1/+2
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2827 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Some refactorings.barthess2011-05-281-2/+2
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3000 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Code cleanups.barthess2011-05-081-2/+2
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2937 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Some fixes.barthess2011-05-061-2/+9
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2922 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Code compiles successfully, but totally not tested.barthess2011-05-051-41/+109
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2921 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Additional locks added to avoiding system hangups. Some mistypes in ↵barthess2011-04-021-1/+8
| | | | | | | | | | | | comments fixed. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2865 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Mutual exclusion support added. Need testing.barthess2011-03-271-0/+13
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2847 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Code cleanups.barthess2011-02-271-12/+29
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2776 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Added own slave address handling and error callback.barthess2011-02-091-3/+0
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2723 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. After comparing of two drivers decided to start of importing features ↵barthess2011-02-051-0/+215
| | | | | | | | | | | | from Alberto driver to mine. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2712 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Moved Alberto drivers to backup.barthess2011-02-051-268/+0
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2711 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Added driver from albi.barthess2011-02-051-0/+268
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2710 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Move barthess driver to backup files.barthess2011-02-051-215/+0
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2709 35acf78f-673a-0410-8e92-d51de3d6d3f4
* | I2C. Async transmit done. Need much of testing.barthess2011-01-301-3/+3
| | | | | | | | git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2697 35acf78f-673a-0410-8e92-d51de3d6d3f4