This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************//** | |
\file myusart.c | |
\application to read data from USART. | |
\the application turns on the Red light, if 'a' is received, Green Light if | |
\'b' is received and Yellow light for anything else | |
******************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <Windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
#include <Winbase.h> | |
HANDLE hCom; | |
DWORD sendData (const char* data, DWORD size) |