Menu

A little question about software RS232

2020-08-12
2020-08-12
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-08-12

    Hello again ...

    I wonder why GC Basic uses :
    Define SERn_RXPORT PORTx

    It would be more "logical" to use :
    Define SERn_RXPORT PINx

    ???

     

    Last edit: Bertrand BAROTH 2020-08-12
  • Frank Steinberg

    Frank Steinberg - 2020-08-12

    Hi Bertrand!

    Port and pin both have to be defined separately because the assembler directives used by the library also need separate ones.

    The names of the constants are then given a name that contains the word PORT or PIN. That seems logical to me.

    Regards
    Frank

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.