debug_init()

debug_init()

Description

Initializes debug_print function.

Syntax

debug_init(peripheral);

Parameters

Variable

Input

Variable

Input

peripheral

Can either be RS232 or RS485

Function call example

Example of initializing debug print
#include <io> #include <read> #include <float> #include <string> #include <core> #include <write> #include <define> #include <socket> #include <debug> #define RS232_SPEED 115200 #define WORD_LENGTH WORDLENGTH_8 #define STOP_BITS STOPBITS_1 #define PARITY PARITY_NONE main() { Init(RS232, RS232_SPEED, WORD_LENGTH, STOP_BITS, PARITY); debug_init(RS232); while(1) { } }

Notes and Warnings

To use debug print user should do #include <debug> as shown in line 9.