I'm not sure why mast last reply didn't post, but I was restating my question: How did you get the inportb and outportb function to work if not defined in a header file? Thanks.
I'm using dev c++. Do you happen to know what functions in more contemporary compilers like dev c++ are used for writing to the serial port? I simply want to spit some characters out COM1. Thanks so much.
deanlwvu,
thank you for responding. I tried compiling the code and of course I experienced errors. The errors had to do with the inportb and outportb functions. Here's one of the errors:
[Linker error] undefined reference to `outportb'. Do you know what header file contains these functions? I...
I would like to ask deanlwvu (TechnicalUser) about this email:
"I was successful in getting this to work using the inportb and outportb functions.
/* This program is used to pull data from the serial port */
#include <dos.h>
#include <stdio.h>
#include <conio.h>
#define PORT1 0x3F8 /*...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.