/[H7]/branches/linux-serial/serial1.cpp
ViewVC logotype

Diff of /branches/linux-serial/serial1.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 48 by torben, Mon Feb 5 00:48:02 2007 UTC revision 49 by torben, Mon Feb 5 07:06:43 2007 UTC
# Line 1  Line 1 
1  // serial1.cpp : Defines the entry point for the console application.  // serial1.cpp : Defines the entry point for the console application.
2  //  //
3    
4  #ifdef _WINDOWS  #ifdef _MSC_VER
 #include "stdafx.h"  
   
5  #include "serial1.h"  #include "serial1.h"
6  #endif  #endif
7    
8    #include "stdafx.h"
9    
10    
11  #ifdef _DEBUG  #ifdef _DEBUG
12  #define new DEBUG_NEW  #define new DEBUG_NEW
# Line 36  int main() Line 36  int main()
36                    
37          try          try
38          {          {
39                  serial.open("/dev/ttyUSB0", 9600);  
40                    serial.open("COM8", 9600);
41                  // tænd lysdiode S3 / RB1                  // tænd lysdiode S3 / RB1
42                  std::cout << "--------------------------------------" << std::endl;                  std::cout << "--------------------------------------" << std::endl;
43                  serial.writeTarget(1,1);                  serial.writeTarget(1,1);

Legend:
Removed from v.48  
changed lines
  Added in v.49

  ViewVC Help
Powered by ViewVC 1.1.20