bertos.git
13 years agoAdd timer support for ATMega 1280 (contributed by Fabio Bizzi)
lottaviano [Mon, 2 Aug 2010 19:25:46 +0000 (19:25 +0000)]
Add timer support for ATMega 1280 (contributed by Fabio Bizzi)

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

13 years agoFirst support for ATMega 1280
lottaviano [Mon, 2 Aug 2010 19:10:47 +0000 (19:10 +0000)]
First support for ATMega 1280

This patch introduces detect macros and kdebug serial code.

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

13 years agoRemove old api that using i2c. Add interface to allow the compatibily with old api.
asterix [Mon, 2 Aug 2010 14:28:44 +0000 (14:28 +0000)]
Remove old api that using i2c. Add interface to allow the compatibily with old api.

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

13 years agoAdd documentation; remove ASSERT on partial write.
batt [Mon, 2 Aug 2010 13:13:33 +0000 (13:13 +0000)]
Add documentation; remove ASSERT on partial write.

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

13 years agoAdd documentation; remove ASSERT on partial write.bertos/io/kfile_block.c
batt [Mon, 2 Aug 2010 13:12:56 +0000 (13:12 +0000)]
Add documentation; remove ASSERT on partial write.bertos/io/kfile_block.c

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

13 years agoAdd KFile over a KBlock device (first implementation).
batt [Mon, 2 Aug 2010 12:55:16 +0000 (12:55 +0000)]
Add KFile over a KBlock device (first implementation).

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

13 years agoUpdate doc.
batt [Mon, 2 Aug 2010 12:54:27 +0000 (12:54 +0000)]
Update doc.

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

13 years agoChange clearerr prototype; Automatically flush the device on close.
batt [Mon, 2 Aug 2010 12:53:25 +0000 (12:53 +0000)]
Change clearerr prototype; Automatically flush the device on close.

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

13 years agoFix doxygen documentation.
asterix [Sun, 1 Aug 2010 15:37:41 +0000 (15:37 +0000)]
Fix doxygen documentation.

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

13 years agoUpdate hw files.
asterix [Fri, 30 Jul 2010 16:09:10 +0000 (16:09 +0000)]
Update hw files.

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

13 years agoAdd deprecared i2c api switch for eeprom. Silent warning.
asterix [Fri, 30 Jul 2010 16:05:58 +0000 (16:05 +0000)]
Add deprecared i2c api switch for eeprom. Silent warning.

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

13 years agoUse shortest name for all macros.
asterix [Fri, 30 Jul 2010 15:49:13 +0000 (15:49 +0000)]
Use shortest name for all macros.

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

13 years agoTypo.
asterix [Fri, 30 Jul 2010 15:48:49 +0000 (15:48 +0000)]
Typo.

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

13 years agoUpdate i2c cfg file.
asterix [Fri, 30 Jul 2010 15:45:06 +0000 (15:45 +0000)]
Update i2c cfg file.

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

13 years agoAdd deprecated switch.
asterix [Fri, 30 Jul 2010 15:35:20 +0000 (15:35 +0000)]
Add deprecated switch.

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

13 years agoRemove from wizart i2c backend selection. Add deprecate switch to disable old i2c...
asterix [Fri, 30 Jul 2010 15:34:00 +0000 (15:34 +0000)]
Remove from wizart i2c backend selection. Add deprecate switch to disable old i2c api support.

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

13 years agoAdd support for devices which can partial write a block.
batt [Fri, 30 Jul 2010 15:10:43 +0000 (15:10 +0000)]
Add support for devices which can partial write a block.
Update drivers accordingly.

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

13 years agoSilent warning.
asterix [Fri, 30 Jul 2010 15:04:03 +0000 (15:04 +0000)]
Silent warning.

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

13 years agoUse drecate macro instead the warning key.
asterix [Fri, 30 Jul 2010 15:03:47 +0000 (15:03 +0000)]
Use drecate macro instead the warning key.

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

13 years agoUse macro to define i2c generic init.
asterix [Fri, 30 Jul 2010 14:49:13 +0000 (14:49 +0000)]
Use macro to define i2c generic init.

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

13 years agoAdd support for new api.
asterix [Fri, 30 Jul 2010 14:48:43 +0000 (14:48 +0000)]
Add support for new api.

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

13 years agoSilent warning. Make static sono i2c table.
asterix [Fri, 30 Jul 2010 12:40:12 +0000 (12:40 +0000)]
Silent warning. Make static sono i2c table.

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

13 years agoMerged revisions 4004-4036,4039-4048,4050-4095,4097-4100 via svnmerge from
asterix [Fri, 30 Jul 2010 12:32:58 +0000 (12:32 +0000)]
Merged revisions 4004-4036,4039-4048,4050-4095,4097-4100 via svnmerge from
https://src.develer.com/svnoss/bertos/branches/i2c

........
  r4005 | asterix | 2010-07-07 18:06:44 +0200 (mer, 07 lug 2010) | 1 line

  Add status registry defines.
........
  r4006 | asterix | 2010-07-07 18:08:01 +0200 (mer, 07 lug 2010) | 1 line

  Fix i2c driver to use correctly the stm32 i2c implementation.
........
  r4007 | asterix | 2010-07-07 18:08:30 +0200 (mer, 07 lug 2010) | 1 line

  Use recv instead get.
........
  r4008 | asterix | 2010-07-07 18:08:40 +0200 (mer, 07 lug 2010) | 1 line

  Use recv instead get.
........
  r4009 | asterix | 2010-07-07 19:05:25 +0200 (mer, 07 lug 2010) | 1 line

  Add comments. Extract method for cheching function. Clean up.
........
  r4011 | asterix | 2010-07-08 18:26:32 +0200 (gio, 08 lug 2010) | 1 line

  Add i2c definition for lm3s cpu.
........
  r4013 | asterix | 2010-07-08 18:32:16 +0200 (gio, 08 lug 2010) | 1 line

  Add first implementation of i2c for lm3s.
........
  r4022 | asterix | 2010-07-12 12:35:43 +0200 (lun, 12 lug 2010) | 1 line

  Add mask for i2c events. Reformat.
........
  r4023 | asterix | 2010-07-12 12:41:33 +0200 (lun, 12 lug 2010) | 1 line

  Rename file to more generic name.
........
  r4024 | asterix | 2010-07-12 12:43:27 +0200 (lun, 12 lug 2010) | 1 line

  Add i2c pins definition. Use include for all lm3s.
........
  r4025 | asterix | 2010-07-12 12:43:53 +0200 (lun, 12 lug 2010) | 1 line

  Add missing include.
........
  r4026 | asterix | 2010-07-12 12:44:32 +0200 (lun, 12 lug 2010) | 1 line

  Reorder includes.
........
  r4027 | asterix | 2010-07-12 12:44:57 +0200 (lun, 12 lug 2010) | 1 line

  Reorder includes.
........
  r4028 | asterix | 2010-07-12 12:45:44 +0200 (lun, 12 lug 2010) | 1 line

  Add first implementation of i2c driver for lm3s.
........
  r4029 | asterix | 2010-07-15 15:35:15 +0200 (gio, 15 lug 2010) | 1 line

  Fix the i2c implemtation for lm3s. Add some defines to use also the second i2c device.
........
  r4030 | asterix | 2010-07-15 15:35:38 +0200 (gio, 15 lug 2010) | 1 line

  Add some defines to use also the second i2c device.
........
  r4031 | asterix | 2010-07-15 18:48:06 +0200 (gio, 15 lug 2010) | 1 line

  Add first implemtation of i2c for lpc23xx.
........
  r4032 | asterix | 2010-07-19 19:49:58 +0200 (lun, 19 lug 2010) | 1 line

  Reorder includes.
........
  r4033 | asterix | 2010-07-19 19:50:25 +0200 (lun, 19 lug 2010) | 1 line

  Add some i2c definition.
........
  r4034 | asterix | 2010-07-19 19:51:35 +0200 (lun, 19 lug 2010) | 1 line

  Implement the write function. Write first skell for read function.
........
  r4035 | asterix | 2010-07-20 12:17:00 +0200 (mar, 20 lug 2010) | 1 line

  Fix read function. Add comment. Use macro for registers devices specific.
........
  r4036 | asterix | 2010-07-20 12:17:53 +0200 (mar, 20 lug 2010) | 1 line

  Add states definition. Some fix.
........
  r4039 | asterix | 2010-07-20 15:52:21 +0200 (mar, 20 lug 2010) | 1 line

  Add the macro to count the argument number of functions.
........
  r4040 | asterix | 2010-07-20 18:58:48 +0200 (mar, 20 lug 2010) | 1 line

  Fix newline.
........
  r4041 | asterix | 2010-07-20 19:22:59 +0200 (mar, 20 lug 2010) | 1 line

  Reoeder and add missing includes.
........
  r4042 | asterix | 2010-07-21 14:29:48 +0200 (mer, 21 lug 2010) | 1 line

  Some fix.
........
  r4043 | asterix | 2010-07-22 11:35:38 +0200 (gio, 22 lug 2010) | 1 line

  Refactor to implement put and get.
........
  r4044 | asterix | 2010-07-22 11:37:27 +0200 (gio, 22 lug 2010) | 1 line

  Reformat.
........
  r4045 | asterix | 2010-07-22 12:00:52 +0200 (gio, 22 lug 2010) | 1 line

  Clean up. Add timeout on some status polling.
........
  r4046 | asterix | 2010-07-22 12:20:01 +0200 (gio, 22 lug 2010) | 1 line

  Implement put function and remove send.
........
  r4047 | asterix | 2010-07-22 16:28:40 +0200 (gio, 22 lug 2010) | 1 line

  Clean up.
........
  r4050 | asterix | 2010-07-22 18:33:59 +0200 (gio, 22 lug 2010) | 1 line

  Add definition and function for new i2c api.
........
  r4051 | asterix | 2010-07-22 18:49:59 +0200 (gio, 22 lug 2010) | 1 line

  Add implementation for oveloaded functions.
........
  r4052 | asterix | 2010-07-22 19:09:48 +0200 (gio, 22 lug 2010) | 1 line

  Inline oveloaded functions. Some fix. Add missing include.
........
  r4053 | asterix | 2010-07-22 19:10:36 +0200 (gio, 22 lug 2010) | 1 line

  Add cpu header selecter for i2c.
........
  r4054 | asterix | 2010-07-22 19:13:51 +0200 (gio, 22 lug 2010) | 1 line

  Add stop flag defition.
........
  r4055 | asterix | 2010-07-23 17:02:48 +0200 (ven, 23 lug 2010) | 1 line

  Refactor the i2c api.
........
  r4056 | batt | 2010-07-23 17:15:43 +0200 (ven, 23 lug 2010) | 2 lines

  Refactor i2c start.
........
  r4057 | asterix | 2010-07-23 17:49:13 +0200 (ven, 23 lug 2010) | 1 line

  Fix start argument. Add arblst flag.
........
  r4058 | batt | 2010-07-23 17:54:17 +0200 (ven, 23 lug 2010) | 2 lines

  Add some errors.
........
  r4059 | asterix | 2010-07-23 18:41:43 +0200 (ven, 23 lug 2010) | 1 line

  Add test stop and generic error.
........
  r4060 | asterix | 2010-07-23 18:46:29 +0200 (ven, 23 lug 2010) | 1 line

  Add test stop and generic error.
........
  r4061 | batt | 2010-07-23 21:40:05 +0200 (ven, 23 lug 2010) | 1 line

  Automatically decrement transfer size.
........
  r4062 | batt | 2010-07-23 21:40:40 +0200 (ven, 23 lug 2010) | 1 line

  Add generic i2c_recv and i2c_send implementation.
........
  r4063 | batt | 2010-07-23 21:41:23 +0200 (ven, 23 lug 2010) | 1 line

  First version of new i2c bitbang API.
........
  r4065 | asterix | 2010-07-26 15:59:45 +0200 (lun, 26 lug 2010) | 1 line

  Refactor the driver for new api.
........
  r4066 | asterix | 2010-07-26 16:00:27 +0200 (lun, 26 lug 2010) | 1 line

  Add header for i2c for lpc2.
........
  r4067 | asterix | 2010-07-26 16:01:19 +0200 (lun, 26 lug 2010) | 1 line

  Add definition for generic send and recv.
........
  r4068 | asterix | 2010-07-26 16:02:05 +0200 (lun, 26 lug 2010) | 1 line

  Fix count params macro.
........
  r4069 | asterix | 2010-07-26 16:07:48 +0200 (lun, 26 lug 2010) | 1 line

  Clean up.
........
  r4070 | asterix | 2010-07-26 17:32:24 +0200 (lun, 26 lug 2010) | 1 line

  Add support for more i2c devices.
........
  r4071 | asterix | 2010-07-26 17:32:44 +0200 (lun, 26 lug 2010) | 1 line

  Add comments.
........
  r4072 | asterix | 2010-07-26 17:33:27 +0200 (lun, 26 lug 2010) | 1 line

  Move cm3 type to generic types header.
........
  r4073 | asterix | 2010-07-26 17:41:14 +0200 (lun, 26 lug 2010) | 1 line

  Remove unneeded macros. Remove empty header.
........
  r4074 | asterix | 2010-07-26 17:42:10 +0200 (lun, 26 lug 2010) | 1 line

  Fix include.
........
  r4075 | asterix | 2010-07-27 11:28:40 +0200 (mar, 27 lug 2010) | 1 line

  Add defines for all i2c devices.
........
  r4076 | asterix | 2010-07-27 14:21:55 +0200 (mar, 27 lug 2010) | 1 line

  Clean up.
........
  r4077 | asterix | 2010-07-27 14:22:54 +0200 (mar, 27 lug 2010) | 1 line

  Add some header to use new i2c api.
........
  r4078 | asterix | 2010-07-27 16:58:37 +0200 (mar, 27 lug 2010) | 1 line

  Remove dependece from log module.
........
  r4079 | asterix | 2010-07-27 16:59:02 +0200 (mar, 27 lug 2010) | 1 line

  Modify driver to work with new api.
........
  r4080 | asterix | 2010-07-27 17:06:52 +0200 (mar, 27 lug 2010) | 1 line

  Add missing define to use i2c2 devices.
........
  r4081 | asterix | 2010-07-27 17:45:00 +0200 (mar, 27 lug 2010) | 1 line

  Clean up. Use cpu_relax for while loop. Rename check_i2cStatus to wait_event.
........
  r4082 | asterix | 2010-07-27 18:13:01 +0200 (mar, 27 lug 2010) | 1 line

  Split long function. Add comments.
........
  r4083 | asterix | 2010-07-28 17:40:25 +0200 (mer, 28 lug 2010) | 1 line

  Refactor to works with new api. Clean up.
........
  r4084 | asterix | 2010-07-28 17:48:28 +0200 (mer, 28 lug 2010) | 1 line

  Refactor to works with new api. Clean up.
........
  r4085 | asterix | 2010-07-28 18:23:43 +0200 (mer, 28 lug 2010) | 1 line

  Refactor the recv. Add comments. Change fist_send flag names.
........
  r4086 | asterix | 2010-07-28 18:29:18 +0200 (mer, 28 lug 2010) | 1 line

  Move generic i2c_hw_init prototype to i2c header.
........
  r4087 | asterix | 2010-07-28 19:22:09 +0200 (mer, 28 lug 2010) | 1 line

  Add firt implementation for avr i2c with new api.
........
  r4088 | asterix | 2010-07-28 19:22:31 +0200 (mer, 28 lug 2010) | 1 line

  Add data nack error.
........
  r4089 | asterix | 2010-07-29 16:21:18 +0200 (gio, 29 lug 2010) | 1 line

  Use different api name for new i2c interface. Comply all driver.
........
  r4090 | asterix | 2010-07-29 17:17:31 +0200 (gio, 29 lug 2010) | 1 line

  Fix flag test.
........
  r4091 | asterix | 2010-07-30 12:28:47 +0200 (ven, 30 lug 2010) | 1 line

  Add support for i2c bitbang.
........
  r4092 | asterix | 2010-07-30 12:30:26 +0200 (ven, 30 lug 2010) | 1 line

  Add author.
........
  r4093 | asterix | 2010-07-30 12:31:47 +0200 (ven, 30 lug 2010) | 1 line

  Add foldback for at91 i2c for nightly test.
........
  r4094 | asterix | 2010-07-30 12:32:15 +0200 (ven, 30 lug 2010) | 1 line

  Reorder includes.
........
  r4095 | asterix | 2010-07-30 12:39:13 +0200 (ven, 30 lug 2010) | 1 line

  Clean up. Remove module check where is unneeded.
........

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

13 years agoRestor propedit fix.
asterix [Fri, 30 Jul 2010 12:31:06 +0000 (12:31 +0000)]
Restor propedit fix.

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

13 years agoFix svnmerge-integrated property.
asterix [Fri, 30 Jul 2010 12:21:30 +0000 (12:21 +0000)]
Fix svnmerge-integrated property.

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

13 years agoFix svnmerge-integrated property
lmancini [Fri, 30 Jul 2010 10:58:16 +0000 (10:58 +0000)]
Fix svnmerge-integrated property

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

13 years agoInitialized merge tracking via "svnmerge" with revisions "1-4096" from
asterix [Fri, 30 Jul 2010 10:54:43 +0000 (10:54 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-4096" from
https://src.develer.com/svnoss/bertos/branches/i2c

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

13 years agoClean up. Remove module check where is unneeded.
asterix [Fri, 30 Jul 2010 10:39:13 +0000 (10:39 +0000)]
Clean up. Remove module check where is unneeded.

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

13 years agoReorder includes.
asterix [Fri, 30 Jul 2010 10:32:15 +0000 (10:32 +0000)]
Reorder includes.

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

13 years agoAdd foldback for at91 i2c for nightly test.
asterix [Fri, 30 Jul 2010 10:31:47 +0000 (10:31 +0000)]
Add foldback for at91 i2c for nightly test.

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

13 years agoAdd author.
asterix [Fri, 30 Jul 2010 10:30:26 +0000 (10:30 +0000)]
Add author.

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

13 years agoAdd support for i2c bitbang.
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

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

13 years agoUse different api name for new i2c interface. Comply all driver.
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

13 years agoAdd data nack error.
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

13 years agoAdd firt implementation for avr i2c with new api.
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

13 years agoMove generic i2c_hw_init prototype to i2c header.
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

13 years agoRefactor the recv. Add comments. Change fist_send flag names.
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

13 years agoRefactor to works with new api. Clean up.
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

13 years agoRefactor to works with new api. Clean up.
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

13 years agoSplit long function. Add comments.
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

13 years agoClean up. Use cpu_relax for while loop. Rename check_i2cStatus to wait_event.
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

13 years agoAdd missing define to use i2c2 devices.
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

13 years agoModify driver to work with new api.
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

13 years agoRemove dependece from log module.
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

13 years agoAdd some header to use new i2c api.
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

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

13 years agoAdd defines for all i2c devices.
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

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

13 years agoRemove unneeded macros. Remove empty header.
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

13 years agoMove cm3 type to generic types header.
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

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

13 years agoAdd support for more i2c devices.
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

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

13 years agoFix count params macro.
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

13 years agoAdd definition for generic send and recv.
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

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

13 years agoRefactor the driver for new api.
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

13 years agoFlush kfile in generic kfile_close implementation.
batt [Sat, 24 Jul 2010 10:23:46 +0000 (10:23 +0000)]
Flush kfile in generic kfile_close implementation.

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

13 years agoFirst version of new i2c bitbang API.
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

13 years agoAdd generic i2c_recv and i2c_send implementation.
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

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