Constants

‘u’ or ‘U’ to indicate an unsigned constant, like 33u
‘ul’ or ‘UL’ to indicate an unsigned long constant, like 32767ul

Defines

General Define Usage

Create a define:

#define	NUM_OF_ANODES	2

In code: (more…)

Include

#include "..\ap-main"

Line Continuation Character


	\	//Put a '\' at the end of a line to signify to compiler next line shoud be part of this line
		//This is useful for defines etc, e.g.:-

 (more...)

State ? ( ) : ( )

Usage Examples


#define	USART_DIR_TX(state)	(state ? ([true]) : ([false]))

(state ? true : false)  //1:0

 (more...)