include/pic24_libconfig.h File Reference

Go to the source code of this file.

Defines

Defines from pic24_clockfreq.h
#define CLOCK_CONFIG   FRCPLL_FCY40MHz
Defines from pic24_delay.h
#define DEBOUNCE_DLY   15
Defines from pic24_serial.h
#define SERIAL_EOL_DEFAULT   SERIAL_EOL_LF
#define DEFAULT_UART   1
Defines from pic24_uart.h
#define DEFAULT_BAUDRATE   57600
#define DEFAULT_BRGH   0
#define DEFAULT_BAUDRATE1   DEFAULT_BAUDRATE
#define DEFAULT_BRGH1   0
Defines from pic24_util.h
#define USE_CLOCK_TIMEOUT   1
#define USE_HEARTBEAT   1
#define HB_LED   _LATB15
#define CONFIG_HB_LED()   CONFIG_RB15_AS_DIG_OD_OUTPUT()


Detailed Description

This file consolidates all the user-configurable #defines scattered throughout the PIC24 support library. These may be changed by either editing the files in which these #defines occur, copying then editing the #defines below to a position below this comment (which overrides values set by the previous method), or by defining them via passing a -Dname=value flag to the compiler.

Definition in file pic24_libconfig.h.


Define Documentation

#define CLOCK_CONFIG   FRCPLL_FCY40MHz

 
#define CONFIG_HB_LED (  )     CONFIG_RB15_AS_DIG_OD_OUTPUT()

Define a config function for the heartbeat pin.

See also:
pic24_uart.h::CONFIG_HB_LED

Definition at line 199 of file pic24_libconfig.h.

#define DEBOUNCE_DLY   15

See also:
pic24_delay.h::DEBOUNCE_DLY
See also:
pic24_delay.h::DEBOUNCE_DLY

Definition at line 105 of file pic24_libconfig.h.

#define DEFAULT_BAUDRATE   57600

Chose a default baud rate for the UART, used by configUART1 to set up the UART.

See also:
pic24_uart.h::DEFAULT_BAUDRATE

Definition at line 150 of file pic24_libconfig.h.

#define DEFAULT_BAUDRATE1   DEFAULT_BAUDRATE

Chose a default baud rate for UART1, used by configUART1 to set up UART1.

See also:
pic24_uart.h::DEFAULT_BAUDRATE1

Definition at line 163 of file pic24_libconfig.h.

#define DEFAULT_BRGH   0

Default BRGH value used by CONFIG_BAUDRATE_UART1 when configurating a UART. This value may be overridden on a per-UART basis by #defineing DEFAULT_BRGH1 to 4. Allowed values:

  • BRGH = 0 - the baud rate divisor is 16
  • BRGH = 1 - the baud rate divisor is 4
See also:
pic24_uart.h::DEFAULT_BRGH

Definition at line 158 of file pic24_libconfig.h.

#define DEFAULT_BRGH1   0

Chose a default BRGH for UART1, used by CONFIG_BAUDRATE_UART1 to set up UART1.

See also:
pic24_uart.h::DEFAULT_BRGH1

Definition at line 168 of file pic24_libconfig.h.

#define DEFAULT_UART   1

Defines the default UART which the configUART() function initializes and which serial I/O is directed to until the

See also:
pic24_serial.h::DEFAULT_UART

Definition at line 132 of file pic24_libconfig.h.

#define HB_LED   _LATB15

Choose a pin for the heartbeat. If USE_HEARTBEAT is false, the heartbeat is disabled.

See also:
pic24_uart.h::HB_LED

Definition at line 197 of file pic24_libconfig.h.

#define SERIAL_EOL_DEFAULT   SERIAL_EOL_LF

This macro defines end-of-line output behavior when the outString() function is passed a new line ("\n"). Set this to either SERIAL_EOL_CR_LF, SERIAL_EOL_CR, or SERIAL_EOL_LF.

See also:
pic24_serial.h::SERIAL_EOL_DEFAULT

Definition at line 124 of file pic24_libconfig.h.

#define USE_HEARTBEAT   1

If this macro is true, heartbeat functionality is enabled. If false, heartbeat is disabled.

See also:
pic24_uart.h::USE_HEARTBEAT

Definition at line 186 of file pic24_libconfig.h.


Generated on Sun Mar 15 11:14:22 2009 for PIC24 Support Libraries by  doxygen 1.5.8