Conditional compilation

Libraries ›› The SSERIAL unit ››
Parent Previous Next

Parameter / feature

$DEFINE format

Default

Example

Port to use for TX and / or RX

SERIAL_PORT 'PORTx'

GPIO or PORTB.

{$DEFINE SERIAL_PORT 'PORTA'}

Bit to use for TX

SERIAL_TX_BIT N

empty, no TX emulation

{$DEFINE SERIAL_TX_BIT 1}

Bit to use for RX

SERIAL_RX_BIT N

empty, no RX emulation

{$DEFINE SERIAL_RX_BIT RA2}

Baud rate to use

SERIAL_BAUD N

9600

{$DEFINE SERIAL_BAUD 19200}

Stop bits to use

SERIAL_8N2

8N1

{$DEFINE SERIAL_8N2}

Inverted mode

SERIAL_INVERT

Normal mode

{$DEFINE SERIAL_INVERT}