Commit Graph

66 Commits

Author SHA1 Message Date
barthess e43bc0f967 I2C. Clock checks moved to header file.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3713 35acf78f-673a-0410-8e92-d51de3d6d3f4
2012-01-02 19:25:44 +00:00
barthess 86b3f07923 I2C. Reorganized locks.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3711 35acf78f-673a-0410-8e92-d51de3d6d3f4
2012-01-02 19:04:50 +00:00
barthess fc44d8dbc6 I2C. Deleted unneeded __IO macro from driver fields.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3710 35acf78f-673a-0410-8e92-d51de3d6d3f4
2012-01-02 18:17:16 +00:00
barthess 7f64ca7a5d I2C. Functions: i2c_lld_set_clock(), and i2c_lld_set_opmode() and i2c_lld_master_transceive() now static.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3709 35acf78f-673a-0410-8e92-d51de3d6d3f4
2012-01-02 17:54:20 +00:00
barthess d0c36ae0e6 I2C. "id_" prefixes deleted from driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3707 35acf78f-673a-0410-8e92-d51de3d6d3f4
2012-01-02 17:39:45 +00:00
barthess 72266f8b59 I2C. Fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3694 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-31 09:40:52 +00:00
barthess 2234fd3e31 I2C. API changes mostly done.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3692 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-30 20:45:56 +00:00
barthess edfa9d2fae I2C. Added timeout in functions. Code clean ups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3583 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-08 19:24:21 +00:00
barthess 0738591b02 I2C. Switch to synchronous model.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3570 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-07 17:57:42 +00:00
barthess 2db3c769f1 I2C. Bug fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3562 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-06 18:09:34 +00:00
barthess 6777c09f08 I2C. Added checks. Cleaned copypaste errors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3559 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-06 13:37:08 +00:00
barthess dbee267868 I2C. Added support of stm32f1x.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3557 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-06 09:08:26 +00:00
barthess 23d0cbc3b5 I2C. Added forgotten I2C3 interface
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3555 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-06 07:13:26 +00:00
barthess 59014aa2be I2C. Tested on tmp75, mma8451, max1236.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3553 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-04 17:46:19 +00:00
barthess 62608271ad I2C. Code compiles but does not work.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3548 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-01 20:17:58 +00:00
barthess 7463a3f1ff I2C. Totally broken.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3546 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-12-01 18:17:30 +00:00
gdisirio ed26815f85 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3481 35acf78f-673a-0410-8e92-d51de3d6d3f4 2011-11-10 17:54:41 +00:00
barthess 71ff7f78d2 I2C. Dead code removing.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3454 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-10-27 08:00:32 +00:00
barthess d3e15bccfc I2C. Revert const qualifier to the pointer to I2CSlaveConfig.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3310 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-09-12 15:50:35 +00:00
barthess ff11f4aa9a I2C. Remove const qualifier from pointer to I2CSlaveConfig.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3306 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-09-11 18:19:03 +00:00
barthess 4e57582138 I2C. Added forgotten copyrights.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3283 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-09-02 13:32:19 +00:00
barthess c877f5bfcc I2C. Small fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3242 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-08-19 22:37:36 +00:00
barthess 45b4898518 I2C. Default choise changed to callback based driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3191 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-08-06 07:41:02 +00:00
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 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 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 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 73ce7b4fe0 I2C. Commets in examples changed to /**/
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3077 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-24 10:36:41 +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 2f77482083 I2C. "Sevent" field moved from I2CSlaveConfig to I2CDriver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3072 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-23 18:31:24 +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 30c130dc10 I2C. Dead code removed. Comments fixed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3059 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-18 14:55:29 +00:00
barthess f3e571839b I2C. Code cleanups.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3056 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-06-18 13:35:26 +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 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 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 b2f4a22581 I2C. Platform independent I2CSlaveConfig structure moved to i2c.h.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2778 35acf78f-673a-0410-8e92-d51de3d6d3f4
2011-02-27 20:11:34 +00:00