Commit Graph

117 Commits (f153a37e010fb829291766a1add5ca6e2ba06c52)

Author SHA1 Message Date
barthess 6ee04cf232 I2C. Added template of synchronouse deriver. It does not work for a moment.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3190 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-08-05 17:24:23 +00:00
barthess 28b3dd95f1 I2C. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3187 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-31 21:06:23 +00:00
barthess 302d06cc66 I2C. All polling waitins code replaced by "waiting" GPT interrups. Documentation fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3167 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-20 08:35:05 +00:00
barthess b569145b24 I2C. STOP waitings was replaced by GPT callback functions. Need much of testing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3166 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-19 20:45:57 +00:00
barthess e02d3607dc I2C. Waits moved from ISR.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3161 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-14 14:47:13 +00:00
barthess 2bdd9885e2 I2C. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3159 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-13 20:41:26 +00:00
barthess 146118a136 I2C. Stability improvements in very hi load scenarios.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3157 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-13 11:07:48 +00:00
barthess 71ebbf914f I2C. Comments cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3154 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-12 18:34:11 +00:00
barthess 621d794bf0 I2C. Documentation improvements. Dead code clenups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3153 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-12 18:26:39 +00:00
barthess 44960790c5 I2C. Comments improvements. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3152 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-12 14:21:44 +00:00
barthess caeaf6536e I2C. Fixed bug occures when read-through-write two bytes. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3150 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-10 21:40:49 +00:00
barthess 0088567492 I2C. Most of problems have been resolved. Needs testing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3149 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-10 18:17:16 +00:00
barthess b064c25e39 I2C. Main problem fixed, but some minor problems must to be fixed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3142 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-09 22:25:31 +00:00
barthess 6eca655484 I2C. Driver still cause stack overflows.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3134 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-07 21:53:01 +00:00
barthess ff535c27e6 I2C. Fix one potential problem in driver, but main problem with stack overflow still not solved.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3124 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-06 13:54:56 +00:00
barthess 2303c1542c I2C. Small fixes
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3122 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-05 14:27:15 +00:00
barthess 03acd18161 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3117 35acf78f-673a-0410-8e92-d51de3d6d3f4 2011-07-04 14:27:00 +00:00
barthess ccb28114da I2C. Driver looks working, but sometimes hangs up. I don't know, my big 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
2011-07-03 18:02:55 +00:00
barthess af0e40079d I2C. Trying to add optional WAIT support. Driver broken.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3101 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-07-01 13:36:59 +00:00
barthess f73960c8dc I2C. API changed. Transmit and receive buffers removed from I2CSlaveConfig. 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
2011-06-30 13:43:42 +00:00
barthess d2b62026fc I2C. Small comment added.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3076 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-23 20:18:58 +00:00
barthess b1d043cede I2C. Some coding style improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3074 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-23 19:06:33 +00:00
barthess 97e643a2a2 I2C. Commetns style changed to /**/.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3073 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-23 18:50:13 +00:00
barthess 10153a4f30 I2C. Fixed indent style. All tabs changed to 2 spaces.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3071 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-23 18:29:22 +00:00
barthess fbeff97d92 I2C. Variables shared among I2C1 and I2C2 interrupt handlers moved to driver structure.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3070 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-23 18:05:20 +00:00
barthess 70179f12dd I2C. Slave config structure now have const qualifier. Moset of fields moved 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
2011-06-21 20:17:14 +00:00
barthess b54133ab1b I2C. Some fields from I2CSlaveConfig moved to driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3066 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-21 18:30:50 +00:00
barthess 79f477ba95 I2C. "Slave_addr" and "nbit_addr" fields from I2CSlaveConfig structure merged together.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3057 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-18 14:31:27 +00:00
barthess 350ae0a1a9 I2C. API BROKEN! Structure fields renamed in underscore naming style.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3055 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-18 11:12:33 +00:00
barthess 140560ea82 I2C. Remove duplicate code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3052 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-17 07:32:57 +00:00
barthess 152f34a80c I2C. Some refactorings.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3000 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-05-28 12:31:47 +00:00
barthess 07556a2d03 I2C. Remove dead variable.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2950 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-05-13 13:24:32 +00:00
barthess 732eaa72c1 I2C. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2937 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-05-08 13:20:10 +00:00
barthess 60975ca7fe I2C. Some fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2922 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-05-06 15:16:15 +00:00
barthess 4fda4dc84f I2C. Code compiles successfully, but totally not tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2921 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-05-05 17:43:54 +00:00
barthess 5387a1b39f I2C. All is broken. Need rewrite.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2919 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-05-04 14:34:49 +00:00
barthess 57fb5e703b I2C. Additional locks added to avoiding system hangups. Some mistypes in comments fixed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2865 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-04-02 09:33:46 +00:00
barthess 1ab46c6fb9 I2C. Doxy comments improvement.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2846 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-03-27 15:58:39 +00:00
barthess d16a6e24d9 I2C. API changes. rw_bit field moved from slave config ctructure to the driver structure.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2845 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-03-27 14:57:47 +00:00
barthess d0397838ae I2C. Small bugfix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2844 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-03-26 21:28:14 +00:00
barthess 4457815932 I2C. Some improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2841 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-03-26 14:28:52 +00:00
barthess 4e4d882c04 I2C. Cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2777 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-27 19:35:04 +00:00
barthess 4f827c235a I2C. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2776 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-27 15:22:18 +00:00
barthess e96e10761e I2C. Small bugfix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2731 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-10 17:36:37 +00:00
barthess 12778b0075 I2C. Cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2730 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-10 17:21:20 +00:00
barthess eafaa7d6cf I2C. 10-bit slave addressing done. Not tested at all.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2729 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-10 16:35:28 +00:00
barthess c2d458110c I2C. Begin of 10-bit slave address realization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2727 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-09 23:02:49 +00:00
barthess 76bac6bb87 I2C. Added own slave address handling and error callback.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2723 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-09 19:33:19 +00:00
barthess eddd171ec8 I2C. Alberto's clock setting code tested. Minor changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2721 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-09 15:00:08 +00:00
barthess 918ff6d6b6 I2C. Merged Alberto's clock setting code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2720 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-09 13:31:34 +00:00
barthess 00800dd8ed I2C. Async transfer complete. Needs testing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2716 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-06 13:36:29 +00:00
barthess da3a453945 I2C. Merged changes from trunk.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2713 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-06 00:28:12 +00:00
barthess d6f77c1ef1 I2C. After comparing of two drivers decided to start of importing features 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
2011-02-05 18:22:45 +00:00
barthess a74dd37c2c I2C. Moved Alberto drivers to backup.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2711 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-05 18:10:23 +00:00
barthess aad95ce063 I2C. Added driver from albi.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2710 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-05 14:55:56 +00:00
barthess 34f9fdfb62 I2C. Move barthess driver to backup files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2709 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-05 14:53:42 +00:00
barthess 6034aab6e6 I2C. Nop.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2704 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-04 09:55:51 +00:00
barthess 0f5f6dd222 I2C. Nop.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2703 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-03 14:02:02 +00:00
barthess cb7d5725fb I2C. Nop.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2702 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-02 22:34:03 +00:00
barthess 30ba99b968 I2C. Nop.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2701 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-02 21:01:22 +00:00
barthess 25d42f8b90 I2C. Master receiving and master trasmitting written. Needs testing and debugging.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2699 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-01-30 23:28:02 +00:00
barthess 47cd88dcc6 I2C. Function movement in source file
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2698 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-01-30 21:24:45 +00:00
barthess f4bdefbd11 I2C. Async transmit done. Need much of testing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2697 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-01-30 21:19:51 +00:00
barthess 7ebdd9c730 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2688 35acf78f-673a-0410-8e92-d51de3d6d3f4 2011-01-27 22:32:14 +00:00
barthess 9babeb847e I2C. Rewriting low level driver to handle IRQs and DMA
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2687 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-01-26 22:36:12 +00:00
barthess 9c45802837 I2C. Some hy level functions created and tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2686 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-01-25 21:25:10 +00:00
barthess 063c6e138d Initial commit of I2C driver code
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2684 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-01-25 18:59:18 +00:00