]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
I2C blikani
authorkubiaj1 <kubiaj1@78ed6b52-5822-0410-8084-884f26da6e90>
Tue, 20 Mar 2007 13:10:46 +0000 (13:10 +0000)
committerkubiaj1 <kubiaj1@78ed6b52-5822-0410-8084-884f26da6e90>
Tue, 20 Mar 2007 13:10:46 +0000 (13:10 +0000)
git-svn-id: svn+ssh://rtime.felk.cvut.cz/var/svn/eurobot/trunk/soft@115 78ed6b52-5822-0410-8084-884f26da6e90

app/i2c/i2c.kdevelop
app/i2c/i2c.kdevses
app/i2c/src/i2c.cc
build/ppc/config.omk-default [new file with mode: 0644]
build/ppc/i2c [new symlink]

index 1507e7e5526d41d3b7885b4d8d52e66af5667067..fd6502499b67f0979e8ac6eaf9409fdf2bf897fb 100644 (file)
       <includestyle>3</includestyle>
       <root>/usr/share/qt3</root>
       <designerintegration>EmbeddedKDevDesigner</designerintegration>
-      <qmake>/usr/bin/qmake-qt3</qmake>
-      <designer>/usr/bin/designer-qt3</designer>
+      <qmake>/usr/bin/qmake</qmake>
+      <designer>/usr/bin/designer</designer>
       <designerpluginpaths/>
     </qt>
-    <references>
-      <pcs>Qt4</pcs>
-    </references>
+    <references/>
     <codecompletion>
       <automaticCodeCompletion>false</automaticCodeCompletion>
       <automaticArgumentsHint>true</automaticArgumentsHint>
index 9cb9030b7f68ecede3995440826a2b4e1a41cf79..6644c0ebf203d0d78abecf683db28578994007a6 100644 (file)
@@ -1,14 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version = '1.0' encoding = 'UTF-8'?>
 <!DOCTYPE KDevPrjSession>
 <KDevPrjSession>
- <DocsAndViews NumberOfDocuments="2" >
-  <Doc0 NumberOfViews="1" URL="file:///home/martin/i2c/configure.in" >
-   <View0 Encoding="" line="8" Type="Source" />
-  </Doc0>
-  <Doc1 NumberOfViews="1" URL="file:///home/martin/backup/robocore/configure.in" >
-   <View0 Encoding="" line="0" Type="Source" />
-  </Doc1>
- </DocsAndViews>
+ <DocsAndViews NumberOfDocuments="0" />
  <pluginList>
   <kdevdebugger>
    <breakpointList/>
index bfaf15455b5d4cbc6eeb74efb91b452e7c4fcbef..4a2fd007611f600b18767f8161180629772bc61f 100644 (file)
@@ -72,14 +72,27 @@ int main(int argc, char *argv[])
        }  
 
 
-  buf[0] = 0;
-  buf[1] = 0x43;
-  buf[2] = 0x65;
-  if ( write(file,buf,1) != 1) { cout<<"err"<<"\n";perror("close");
-    /* ERROR HANDLING: i2c transaction failed */
-  }
 
 
+       while(1)
+       {
+               buf[0] = 0;
+               if ( write(file,buf,1) != 1) { cout<<"err"<<"\n";perror("close");
+               /* ERROR HANDLING: i2c transaction failed */
+               }
+               
+               delay();
+               
+               buf[0] = 0xFF;
+               if ( write(file,buf,1) != 1) { cout<<"err"<<"\n";perror("close");
+               /* ERROR HANDLING: i2c transaction failed */
+               }
+
+               delay();
+
+               
+       
+       }
 
 
 
diff --git a/build/ppc/config.omk-default b/build/ppc/config.omk-default
new file mode 100644 (file)
index 0000000..ceea140
--- /dev/null
@@ -0,0 +1,33 @@
+# Start of OMK config file
+# This file should not be altered manually
+# Overrides should be stored in file config.omk
+
+# Config for hello
+# Config for common
+# Config for orte/include
+# Config for orte/liborte
+CONFIG_OC_ETH_ORTE=y
+CONFIG_OC_ETH_ORTE_SOLIB=n
+CONFIG_OC_ETH_ORTE_RTL=n
+# Config for orte/manager
+CONFIG_OC_ETH_ORTE_MANAGER=y
+CONFIG_OC_ETH_ORTE_MANAGER_RTL=n
+# Config for orte/examples/ping
+# Config for orte/examples/multicast
+# Config for orte/examples/spy
+# Config for orte/examples/hello
+# Config for orte/examples/reliable
+# Config for orte/examples/schneider
+# Config for orte/examples/mpo/ddso
+# Config for orte/examples/mpo
+# Config for orte/examples
+CONFIG_OC_ETH_ORTE_EXAMPLES=y
+CONFIG_OC_ETH_ORTE_EXAMPLES_RTL=n
+# Config for orte/idl-compiler
+CONFIG_OC_ETH_ORTE_IDL=n
+# Config for orte/libjorte
+CONFIG_OC_ETH_JORTE=n
+# Config for orte/java
+CONFIG_OC_JAVA_ORTE=n
+# Config for orte
+# Config for 
diff --git a/build/ppc/i2c b/build/ppc/i2c
new file mode 120000 (symlink)
index 0000000..0bf4c02
--- /dev/null
@@ -0,0 +1 @@
+/home/jirka/trunk/soft/app/i2c
\ No newline at end of file