Cette page vous affiche les différences entre la révision choisie et la version actuelle de la page.
robotics:computing:communication_serie_asynchrone_sous_linux [2011/10/10 17:40] gdo created |
robotics:computing:communication_serie_asynchrone_sous_linux [2013/10/03 22:39] (Version actuelle) gdo [Test program] |
||
---|---|---|---|
Ligne 30: | Ligne 30: | ||
Here is the header file **serialCom.h** : | Here is the header file **serialCom.h** : | ||
- | <code>#ifndef _SERIALCOM_H_ | + | <code c>#ifndef _SERIALCOM_H_ |
#define _SERIALCOM_H_ | #define _SERIALCOM_H_ | ||
Ligne 66: | Ligne 66: | ||
And the source file **serialCom.c** with more explanations in code comments : | And the source file **serialCom.c** with more explanations in code comments : | ||
- | <code>#ifdef __cplusplus | + | <code c>#ifdef __cplusplus |
extern "C" | extern "C" | ||
{ | { | ||
Ligne 143: | Ligne 143: | ||
Explanations are in code comments : | Explanations are in code comments : | ||
- | <code>using namespace std; | + | <code c>using namespace std; |
#include <iostream> | #include <iostream> |