Hello again ...
I wonder why GC Basic uses : Define SERn_RXPORT PORTx
It would be more "logical" to use : Define SERn_RXPORT PINx
???
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.
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
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