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 configuring pic24_uart.h operation
#define DEFAULT_BAUDRATE   230400
#define DEFAULT_BRGH   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 213 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 107 of file pic24_libconfig.h.

#define DEFAULT_BAUDRATE   230400

Default baud rate used by configBasic() to configure the DEFAULT_UART.

Definition at line 152 of file pic24_libconfig.h.

#define DEFAULT_BRGH   0

Default BRGH value used by CONFIG_BAUDRATE_UART1 to 4 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

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 134 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 211 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 126 of file pic24_libconfig.h.

#define USE_HEARTBEAT   1

Todo:
Putting this is a group causes the functions not to be displayed by Doxygen 1.5.8!
If this macro is true, heartbeat functionality is enabled. If false, heartbeat is disabled.
See also:
pic24_util.h::USE_HEARTBEAT

Definition at line 193 of file pic24_libconfig.h.


Generated on Mon Oct 18 07:40:48 2010 for Python-on-a-chip by  doxygen 1.5.9