Author Topic: Using "outportb" to send out data to computer ports  (Read 345 times)

Offline ssepm

  • Single posting newcomer
  • *
  • Posts: 2
Using "outportb" to send out data to computer ports
« on: April 17, 2017, 05:33:23 pm »
Hi every one!  Im a beginner user of Code::Blocks. I have very old C projects, now I want to upgrade my old codes, so by Codeblocks program l found there is an error of using "outportb" function...

Does anybody know how to implement "outportb" in Code::Blocks?

This is a section of my code:

void MOTOSEC1(void)
   {
    for(i=0;i<300;i++)
   {
          outportb(PS1,PASO1);    /* MOTOR SEQUENCE 1 */
     delay(DELAYSEC);
     outportb(PS1,0x000);
     delay(DELAYSEC);
     outportb(PS1,PASO1);}
   } /* END MOTOSEC1*/


error: undefined reference to "outportb"

Thanks

Ernesto

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5898
    • My Best Post
Re: Using "outportb" to send out data to computer ports
« Reply #1 on: April 17, 2017, 05:59:24 pm »
This is an Compiler and Operating System (OS) question; as in the answer depends on the Compiler and OS being used!

Please read the rules!! http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org