asterix [Fri, 30 Jul 2010 10:28:47 +0000 (10:28 +0000)]
Add support for i2c bitbang.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4091
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 29 Jul 2010 15:17:31 +0000 (15:17 +0000)]
Fix flag test.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4090
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 29 Jul 2010 14:21:18 +0000 (14:21 +0000)]
Use different api name for new i2c interface. Comply all driver.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4089
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 28 Jul 2010 17:22:31 +0000 (17:22 +0000)]
Add data nack error.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4088
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 28 Jul 2010 17:22:09 +0000 (17:22 +0000)]
Add firt implementation for avr i2c with new api.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4087
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 28 Jul 2010 16:29:18 +0000 (16:29 +0000)]
Move generic i2c_hw_init prototype to i2c header.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4086
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 28 Jul 2010 16:23:43 +0000 (16:23 +0000)]
Refactor the recv. Add comments. Change fist_send flag names.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4085
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 28 Jul 2010 15:48:28 +0000 (15:48 +0000)]
Refactor to works with new api. Clean up.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4084
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 28 Jul 2010 15:40:25 +0000 (15:40 +0000)]
Refactor to works with new api. Clean up.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4083
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 16:13:01 +0000 (16:13 +0000)]
Split long function. Add comments.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4082
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 15:45:00 +0000 (15:45 +0000)]
Clean up. Use cpu_relax for while loop. Rename check_i2cStatus to wait_event.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4081
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 15:06:52 +0000 (15:06 +0000)]
Add missing define to use i2c2 devices.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4080
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 14:59:02 +0000 (14:59 +0000)]
Modify driver to work with new api.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4079
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 14:58:37 +0000 (14:58 +0000)]
Remove dependece from log module.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4078
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 12:22:54 +0000 (12:22 +0000)]
Add some header to use new i2c api.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4077
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 12:21:55 +0000 (12:21 +0000)]
Clean up.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4076
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 27 Jul 2010 09:28:40 +0000 (09:28 +0000)]
Add defines for all i2c devices.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4075
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 15:42:10 +0000 (15:42 +0000)]
Fix include.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4074
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 15:41:14 +0000 (15:41 +0000)]
Remove unneeded macros. Remove empty header.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4073
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 15:33:27 +0000 (15:33 +0000)]
Move cm3 type to generic types header.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4072
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 15:32:44 +0000 (15:32 +0000)]
Add comments.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4071
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 15:32:24 +0000 (15:32 +0000)]
Add support for more i2c devices.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4070
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 14:07:48 +0000 (14:07 +0000)]
Clean up.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4069
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 14:02:05 +0000 (14:02 +0000)]
Fix count params macro.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4068
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 14:01:19 +0000 (14:01 +0000)]
Add definition for generic send and recv.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4067
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 14:00:27 +0000 (14:00 +0000)]
Add header for i2c for lpc2.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4066
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 26 Jul 2010 13:59:45 +0000 (13:59 +0000)]
Refactor the driver for new api.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4065
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 23 Jul 2010 19:41:23 +0000 (19:41 +0000)]
First version of new i2c bitbang API.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4063
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 23 Jul 2010 19:40:40 +0000 (19:40 +0000)]
Add generic i2c_recv and i2c_send implementation.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4062
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 23 Jul 2010 19:40:05 +0000 (19:40 +0000)]
Automatically decrement transfer size.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4061
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 23 Jul 2010 16:46:29 +0000 (16:46 +0000)]
Add test stop and generic error.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4060
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 23 Jul 2010 16:41:43 +0000 (16:41 +0000)]
Add test stop and generic error.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4059
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 23 Jul 2010 15:54:17 +0000 (15:54 +0000)]
Add some errors.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4058
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 23 Jul 2010 15:49:13 +0000 (15:49 +0000)]
Fix start argument. Add arblst flag.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4057
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 23 Jul 2010 15:15:43 +0000 (15:15 +0000)]
Refactor i2c start.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4056
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 23 Jul 2010 15:02:48 +0000 (15:02 +0000)]
Refactor the i2c api.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4055
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 17:13:51 +0000 (17:13 +0000)]
Add stop flag defition.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4054
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 17:10:36 +0000 (17:10 +0000)]
Add cpu header selecter for i2c.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4053
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 17:09:48 +0000 (17:09 +0000)]
Inline oveloaded functions. Some fix. Add missing include.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4052
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 16:49:59 +0000 (16:49 +0000)]
Add implementation for oveloaded functions.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4051
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 16:33:59 +0000 (16:33 +0000)]
Add definition and function for new i2c api.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4050
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 15:24:33 +0000 (15:24 +0000)]
SVNSILENT
Merged revisions 4038-4048 via svnmerge from
https://src.develer.com/svnoss/bertos/trunk
........
r4048 | asterix | 2010-07-22 17:17:46 +0200 (gio, 22 lug 2010) | 1 line
Add missing stop and check errors.
........
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4049
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 15:17:46 +0000 (15:17 +0000)]
Add missing stop and check errors.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4048
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 14:28:40 +0000 (14:28 +0000)]
Clean up.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4047
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 10:20:01 +0000 (10:20 +0000)]
Implement put function and remove send.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4046
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 10:00:52 +0000 (10:00 +0000)]
Clean up. Add timeout on some status polling.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4045
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 09:37:27 +0000 (09:37 +0000)]
Reformat.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4044
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 22 Jul 2010 09:35:38 +0000 (09:35 +0000)]
Refactor to implement put and get.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4043
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 21 Jul 2010 12:29:48 +0000 (12:29 +0000)]
Some fix.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4042
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 17:22:59 +0000 (17:22 +0000)]
Reoeder and add missing includes.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4041
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 16:58:48 +0000 (16:58 +0000)]
Fix newline.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4040
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 13:52:21 +0000 (13:52 +0000)]
Add the macro to count the argument number of functions.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4039
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 10:57:51 +0000 (10:57 +0000)]
Merged revisions 4003-4037 via svnmerge from
https://src.develer.com/svnoss/bertos/trunk
........
r4010 | batt | 2010-07-08 17:42:42 +0200 (gio, 08 lug 2010) | 1 line
Simplify driver in order to use less memory. The FIFO implementation had also a bug in write mode.
........
r4012 | batt | 2010-07-08 18:29:42 +0200 (gio, 08 lug 2010) | 2 lines
Reformat;Increase NAC timeout; Fix warning; Add simple write test.
........
r4014 | batt | 2010-07-08 18:32:34 +0200 (gio, 08 lug 2010) | 1 line
Silence warning during night test.
........
r4015 | batt | 2010-07-08 18:59:42 +0200 (gio, 08 lug 2010) | 1 line
Increase read/write performances; add some comments.
........
r4016 | batt | 2010-07-08 19:19:43 +0200 (gio, 08 lug 2010) | 1 line
Improve docs.
........
r4017 | batt | 2010-07-09 12:43:19 +0200 (ven, 09 lug 2010) | 10 lines
Flush the transfer before exiting from write function.
Since the buffer is used by the DMA, if we return early we run the
risk of having the buffer overwritten before the transfer will be
completed.
Waiting for the flush could be theorically a pessimization, but from
tests, since the typical use involves mixed reads/writes, we already
wait for the transfers to be completed, and performance are
almost the same.
........
r4018 | batt | 2010-07-09 12:43:34 +0200 (ven, 09 lug 2010) | 1 line
Remove unneeded configuration.
........
r4019 | batt | 2010-07-09 12:47:03 +0200 (ven, 09 lug 2010) | 1 line
Silence warning.
........
r4020 | batt | 2010-07-09 18:39:21 +0200 (ven, 09 lug 2010) | 1 line
Add some documentation.
........
r4021 | batt | 2010-07-09 18:43:14 +0200 (ven, 09 lug 2010) | 1 line
Reformat; Optimize flush.
........
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4038
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 10:55:29 +0000 (10:55 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-4002" from
https://src.develer.com/svnoss/bertos/trunk
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4037
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 10:17:53 +0000 (10:17 +0000)]
Add states definition. Some fix.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4036
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Tue, 20 Jul 2010 10:17:00 +0000 (10:17 +0000)]
Fix read function. Add comment. Use macro for registers devices specific.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4035
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 19 Jul 2010 17:51:35 +0000 (17:51 +0000)]
Implement the write function. Write first skell for read function.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4034
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 19 Jul 2010 17:50:25 +0000 (17:50 +0000)]
Add some i2c definition.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4033
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 19 Jul 2010 17:49:58 +0000 (17:49 +0000)]
Reorder includes.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4032
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 15 Jul 2010 16:48:06 +0000 (16:48 +0000)]
Add first implemtation of i2c for lpc23xx.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4031
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 15 Jul 2010 13:35:38 +0000 (13:35 +0000)]
Add some defines to use also the second i2c device.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4030
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 15 Jul 2010 13:35:15 +0000 (13:35 +0000)]
Fix the i2c implemtation for lm3s. Add some defines to use also the second i2c device.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4029
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:45:44 +0000 (10:45 +0000)]
Add first implementation of i2c driver for lm3s.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4028
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:44:57 +0000 (10:44 +0000)]
Reorder includes.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4027
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:44:32 +0000 (10:44 +0000)]
Reorder includes.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4026
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:43:53 +0000 (10:43 +0000)]
Add missing include.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4025
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:43:27 +0000 (10:43 +0000)]
Add i2c pins definition. Use include for all lm3s.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4024
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:41:33 +0000 (10:41 +0000)]
Rename file to more generic name.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4023
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Mon, 12 Jul 2010 10:35:43 +0000 (10:35 +0000)]
Add mask for i2c events. Reformat.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4022
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 9 Jul 2010 16:43:14 +0000 (16:43 +0000)]
Reformat; Optimize flush.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4021
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 9 Jul 2010 16:39:21 +0000 (16:39 +0000)]
Add some documentation.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4020
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 9 Jul 2010 10:47:03 +0000 (10:47 +0000)]
Silence warning.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4019
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 9 Jul 2010 10:43:34 +0000 (10:43 +0000)]
Remove unneeded configuration.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4018
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Fri, 9 Jul 2010 10:43:19 +0000 (10:43 +0000)]
Flush the transfer before exiting from write function.
Since the buffer is used by the DMA, if we return early we run the
risk of having the buffer overwritten before the transfer will be
completed.
Waiting for the flush could be theorically a pessimization, but from
tests, since the typical use involves mixed reads/writes, we already
wait for the transfers to be completed, and performance are
almost the same.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4017
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 8 Jul 2010 17:19:43 +0000 (17:19 +0000)]
Improve docs.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4016
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 8 Jul 2010 16:59:42 +0000 (16:59 +0000)]
Increase read/write performances; add some comments.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4015
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 8 Jul 2010 16:32:34 +0000 (16:32 +0000)]
Silence warning during night test.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4014
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 8 Jul 2010 16:32:16 +0000 (16:32 +0000)]
Add first implementation of i2c for lm3s.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4013
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 8 Jul 2010 16:29:42 +0000 (16:29 +0000)]
Reformat;Increase NAC timeout; Fix warning; Add simple write test.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4012
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Thu, 8 Jul 2010 16:26:32 +0000 (16:26 +0000)]
Add i2c definition for lm3s cpu.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4011
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Thu, 8 Jul 2010 15:42:42 +0000 (15:42 +0000)]
Simplify driver in order to use less memory. The FIFO implementation had also a bug in write mode.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4010
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 7 Jul 2010 17:05:25 +0000 (17:05 +0000)]
Add comments. Extract method for cheching function. Clean up.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4009
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 7 Jul 2010 16:08:40 +0000 (16:08 +0000)]
Use recv instead get.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4008
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 7 Jul 2010 16:08:30 +0000 (16:08 +0000)]
Use recv instead get.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4007
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 7 Jul 2010 16:08:01 +0000 (16:08 +0000)]
Fix i2c driver to use correctly the stm32 i2c implementation.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4006
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 7 Jul 2010 16:06:44 +0000 (16:06 +0000)]
Add status registry defines.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4005
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Wed, 7 Jul 2010 16:04:04 +0000 (16:04 +0000)]
I2C driver develop.
git-svn-id: https://src.develer.com/svnoss/bertos/branches/i2c@4003
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Tue, 6 Jul 2010 16:05:26 +0000 (16:05 +0000)]
Add missing dependancy.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4002
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Tue, 6 Jul 2010 15:59:49 +0000 (15:59 +0000)]
Update SD driver in order to use the new KBlock API.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4001
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Tue, 6 Jul 2010 15:58:29 +0000 (15:58 +0000)]
Add generic KBlock disk interface for FatFs module.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4000
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Tue, 6 Jul 2010 15:55:38 +0000 (15:55 +0000)]
Add log level options to fat module.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3999
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 5 Jul 2010 22:20:11 +0000 (22:20 +0000)]
Update to latest KBlock low level API.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3998
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 5 Jul 2010 22:19:25 +0000 (22:19 +0000)]
Remove readBlock method in order to simplify low level API.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3997
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Mon, 5 Jul 2010 10:38:51 +0000 (10:38 +0000)]
Add newline at end of file.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3996
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sat, 3 Jul 2010 13:35:28 +0000 (13:35 +0000)]
Emulate an hw buffer.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3995
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sat, 3 Jul 2010 13:34:52 +0000 (13:34 +0000)]
Use new cache accessors to increase performances.
A common pattern is to write on a file one byte at a time.
Since consecutive writes are mostly on the same block, BattFS
would allocate a new block each time to avoid burning
the sector.
This is very inefficient, and since we have a cache, we can
avoid re-writing the block by using it.
This patch does not rewrite a block if it is cached, and use
the cache efficiently.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3994
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sat, 3 Jul 2010 13:28:13 +0000 (13:28 +0000)]
Set cache_dirty flag to be a bitmask; add accessors and update code.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3993
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sat, 3 Jul 2010 12:33:08 +0000 (12:33 +0000)]
Update in order to use the new KBlock API.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3992
38d2e660-2303-0410-9eaa-
f027e97ec537
batt [Sat, 3 Jul 2010 12:31:04 +0000 (12:31 +0000)]
Add unbuffered methods for accessing a KBlock.
Since some modules which will use KBlock use an
internal buffer, the buffered API supplied by KBlock
may be redundant.
Specifically, if a module (like the FatFS) has its
own internal block buffer, the buffer inside the KBlock
would be wasted.
In order to avoid this waste of RAM, this patch adds
an unbuffered and simplified version of the API.
All KBlocks will implement this unbuffered API, and
they will give the user the option of adding a software
emulated buffer at init time. In this way we can have both
APIs with no RAM wasting.
In order to simplify KBlock implementors' job, a series of
generic functions is supplied. If the device supports
only a few functions of the KBlock low level API, the missing
ones may be generated using the generic ones.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3991
38d2e660-2303-0410-9eaa-
f027e97ec537
asterix [Fri, 2 Jul 2010 16:52:28 +0000 (16:52 +0000)]
Implement read functions.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3990
38d2e660-2303-0410-9eaa-
f027e97ec537