bertos.git
13 years agoAutomatically decrement transfer size.
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

13 years agoAdd test stop and generic error.
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

13 years agoAdd test stop and generic error.
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

13 years agoAdd some errors.
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

13 years agoFix start argument. Add arblst flag.
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

13 years agoRefactor i2c start.
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

13 years agoRefactor the i2c api.
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

13 years agoAdd stop flag defition.
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

13 years agoAdd cpu header selecter for i2c.
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

13 years agoInline oveloaded functions. Some fix. Add missing include.
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

13 years agoAdd implementation for oveloaded functions.
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

13 years agoAdd definition and function for new i2c api.
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

13 years agoSVNSILENT
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

13 years agoAdd missing stop and check errors.
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

13 years agoClean up.
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

13 years agoImplement put function and remove send.
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

13 years agoClean up. Add timeout on some status polling.
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

13 years agoReformat.
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

13 years agoRefactor to implement put and get.
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

13 years agoSome fix.
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

13 years agoReoeder and add missing includes.
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

13 years agoFix newline.
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

13 years agoAdd the macro to count the argument number of functions.
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

13 years agoMerged revisions 4003-4037 via svnmerge from
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

13 years agoInitialized merge tracking via "svnmerge" with revisions "1-4002" from
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

13 years agoAdd states definition. Some fix.
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

13 years agoFix read function. Add comment. Use macro for registers devices specific.
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

13 years agoImplement the write function. Write first skell for read function.
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

13 years agoAdd some i2c definition.
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

13 years agoReorder includes.
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

13 years agoAdd first implemtation of i2c for lpc23xx.
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

13 years agoAdd some defines to use also the second i2c device.
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

13 years agoFix the i2c implemtation for lm3s. Add some defines to use also the second i2c device.
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

13 years agoAdd first implementation of i2c driver for lm3s.
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

13 years agoReorder includes.
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

13 years agoReorder includes.
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

13 years agoAdd missing include.
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

13 years agoAdd i2c pins definition. Use include for all lm3s.
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

13 years agoRename file to more generic name.
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

13 years agoAdd mask for i2c events. Reformat.
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

13 years agoReformat; Optimize flush.
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

13 years agoAdd some documentation.
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

13 years agoSilence warning.
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

13 years agoRemove unneeded configuration.
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

13 years agoFlush the transfer before exiting from write function.
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

13 years agoImprove docs.
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

13 years agoIncrease read/write performances; add some comments.
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

13 years agoSilence warning during night test.
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

13 years agoAdd first implementation of i2c for lm3s.
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

13 years agoReformat;Increase NAC timeout; Fix warning; Add simple write test.
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

13 years agoAdd i2c definition for lm3s cpu.
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

13 years agoSimplify driver in order to use less memory. The FIFO implementation had also a bug...
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

13 years agoAdd comments. Extract method for cheching function. Clean up.
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

13 years agoUse recv instead get.
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

13 years agoUse recv instead get.
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

13 years agoFix i2c driver to use correctly the stm32 i2c implementation.
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

13 years agoAdd status registry defines.
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

13 years agoI2C driver develop.
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

13 years agoAdd missing dependancy.
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

13 years agoUpdate SD driver in order to use the new KBlock API.
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

13 years agoAdd generic KBlock disk interface for FatFs module.
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

13 years agoAdd log level options to fat module.
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

13 years agoUpdate to latest KBlock low level API.
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

13 years agoRemove readBlock method in order to simplify low level API.
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

13 years agoAdd newline at end of file.
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

13 years agoEmulate an hw buffer.
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

13 years agoUse new cache accessors to increase performances.
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

13 years agoSet cache_dirty flag to be a bitmask; add accessors and update code.
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

13 years agoUpdate in order to use the new KBlock API.
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

13 years agoAdd unbuffered methods for accessing a KBlock.
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

13 years agoImplement read functions.
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

13 years agoAdd status definition.
asterix [Fri, 2 Jul 2010 16:51:47 +0000 (16:51 +0000)]
Add status definition.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3989 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd i2c pins definition.
asterix [Fri, 2 Jul 2010 16:51:06 +0000 (16:51 +0000)]
Add i2c pins definition.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3988 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRecode files to unix newlines.
batt [Fri, 2 Jul 2010 10:49:47 +0000 (10:49 +0000)]
Recode files to unix newlines.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3987 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove \version svn tag.
batt [Fri, 2 Jul 2010 10:20:16 +0000 (10:20 +0000)]
Remove \version svn tag.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3986 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoMove kfile interface to the io/ directory.
batt [Fri, 2 Jul 2010 10:01:25 +0000 (10:01 +0000)]
Move kfile interface to the io/ directory.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3985 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoSilence warning.
batt [Fri, 2 Jul 2010 09:36:15 +0000 (09:36 +0000)]
Silence warning.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3984 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove unneeded if block, add some TODOs.
batt [Fri, 2 Jul 2010 09:32:32 +0000 (09:32 +0000)]
Remove unneeded if block, add some TODOs.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3983 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoUse correct macro.
batt [Fri, 2 Jul 2010 09:23:55 +0000 (09:23 +0000)]
Use correct macro.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3982 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRead/Write only one block at a time.
batt [Thu, 1 Jul 2010 17:10:48 +0000 (17:10 +0000)]
Read/Write only one block at a time.

Since kblock API is meant to be used one block at a time,
this committ remove the multiblock support. This will speed up
access a bit in the common case.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3981 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove redundant information from BattFS disk descriptor.
batt [Thu, 1 Jul 2010 17:08:27 +0000 (17:08 +0000)]
Remove redundant information from BattFS disk descriptor.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3980 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoDisable old BattFS interface in dataflash.
batt [Thu, 1 Jul 2010 16:26:11 +0000 (16:26 +0000)]
Disable old BattFS interface in dataflash.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3979 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoUpdate BattFS in order to use the new kblock interface.
batt [Thu, 1 Jul 2010 16:25:33 +0000 (16:25 +0000)]
Update BattFS in order to use the new kblock interface.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3978 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoLoad first page.
batt [Thu, 1 Jul 2010 16:24:55 +0000 (16:24 +0000)]
Load first page.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3977 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd kblock over a file (using libc functions).
batt [Thu, 1 Jul 2010 16:24:27 +0000 (16:24 +0000)]
Add kblock over a file (using libc functions).

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3976 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd block start address even in direct Reads, add some comments.
batt [Thu, 1 Jul 2010 16:00:35 +0000 (16:00 +0000)]
Add block start address even in direct Reads, add some comments.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3975 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove unneeded file.
asterix [Tue, 29 Jun 2010 15:06:53 +0000 (15:06 +0000)]
Remove unneeded file.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3974 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove svn tag.
asterix [Tue, 29 Jun 2010 15:05:52 +0000 (15:05 +0000)]
Remove svn tag.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3973 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoClean up. Add other i2c regitry defines.
asterix [Tue, 29 Jun 2010 15:04:45 +0000 (15:04 +0000)]
Clean up. Add other i2c regitry defines.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3972 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoUpdate copyright.
asterix [Tue, 29 Jun 2010 15:04:01 +0000 (15:04 +0000)]
Update copyright.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3971 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoImplement i2c init.
asterix [Tue, 29 Jun 2010 15:03:30 +0000 (15:03 +0000)]
Implement i2c init.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3970 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoFirst implementation of i2c module for stm32.
asterix [Tue, 29 Jun 2010 10:51:17 +0000 (10:51 +0000)]
First implementation of i2c module for stm32.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3969 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRemove svn tags.
asterix [Tue, 29 Jun 2010 10:50:45 +0000 (10:50 +0000)]
Remove svn tags.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3968 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd i2c definition for stm32.
asterix [Tue, 29 Jun 2010 10:17:48 +0000 (10:17 +0000)]
Add i2c definition for stm32.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3967 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoImplement the temperature computation in fixed point.
asterix [Tue, 29 Jun 2010 09:25:19 +0000 (09:25 +0000)]
Implement the temperature computation in fixed point.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3966 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRefactor interface in order to simplify user API access.
batt [Mon, 28 Jun 2010 18:19:46 +0000 (18:19 +0000)]
Refactor interface in order to simplify user API access.
Documentation is still incomplete.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3965 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoReformat. Clean up. Use more clear variable names.
asterix [Mon, 28 Jun 2010 18:16:39 +0000 (18:16 +0000)]
Reformat. Clean up. Use more clear variable names.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3964 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoRevert last commit and add comments.
asterix [Mon, 28 Jun 2010 18:12:07 +0000 (18:12 +0000)]
Revert last commit and add comments.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3963 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd some adc function hw specific.
asterix [Mon, 28 Jun 2010 18:03:04 +0000 (18:03 +0000)]
Add some adc function hw specific.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3962 38d2e660-2303-0410-9eaa-f027e97ec537

13 years agoAdd some adc function hw specific.
asterix [Mon, 28 Jun 2010 18:01:35 +0000 (18:01 +0000)]
Add some adc function hw specific.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3961 38d2e660-2303-0410-9eaa-f027e97ec537