/[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 43 by torben, Sun Feb 4 20:11:41 2007 UTC revision 44 by torben, Sun Feb 4 21:22:44 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
5  #include "stdafx.h"  #include "stdafx.h"
6    
7  #include "serial1.h"  #include "serial1.h"
8    #endif
9    
10    
11  #ifdef _DEBUG  #ifdef _DEBUG
12  #define new DEBUG_NEW  #define new DEBUG_NEW
13  #endif  #endif
# Line 13  Line 18 
18  #include <iomanip>  #include <iomanip>
19  #include <exception>  #include <exception>
20    
 #include <conio.h>  
21    
22  void pause()  void my_pause()
23  {  {
24          char d[1];          char d[1];
25          std::cout << "Press enter to continue" << std::endl;          std::cout << "Press enter to continue" << std::endl;
# Line 74  int main() Line 78  int main()
78          //std::cout << serial.readTarget(2) << std::endl;          //std::cout << serial.readTarget(2) << std::endl;
79    
80    
81          pause();          my_pause();
82          return 0;          return 0;
83  }  }
84    

Legend:
Removed from v.43  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.20