This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HELP! How to use 'inportb' or/and 'outportb'??

Hi all,

I wanna use the function like outportb and inportb to read/write my RS-232 port. I have included the "stdio.h" in my C program and it gives out the error messages like ''outportb' missing function prototype'. I have read soem books about that and it just says to include the "stdio.h" will do. Would anyone tell me what I have done wrong? Or the 'stdio.h' header file in my PC is wrong? And where could I download a 'usable' header file?

Parents
  • Sorry, wrong forum. Take a look at Keil's main web page http://www.keil.com and at the top you'll see:

    "Keil Software makes C compilers, macro assemblers, real-time kernels, debuggers, simulators, integrated environments, and evaluation boards for the 8051, 251, ARM, and XC16x/C16x/ST10 microcontroller families."

    No PC-targeted compilers there, I'm afraid.

Reply
  • Sorry, wrong forum. Take a look at Keil's main web page http://www.keil.com and at the top you'll see:

    "Keil Software makes C compilers, macro assemblers, real-time kernels, debuggers, simulators, integrated environments, and evaluation boards for the 8051, 251, ARM, and XC16x/C16x/ST10 microcontroller families."

    No PC-targeted compilers there, I'm afraid.

Children
No data