|
PIC24 Support Libraries
|
Go to the source code of this file.
Macros | |
Supported hardware platforms | |
This library supports the following hardware platforms. More can easily be added. | |
| #define | EXPLORER16_100P 0 |
| #define | DANGEROUS_WEB 1 |
| #define | STARTER_BOARD_28P 2 |
| #define | DEFAULT_DESIGN 3 |
| #define | HARDWARE_PLATFORM DEFAULT_DESIGN |
Defines configuring pic24_clockfreq.h | |
| #define | CLOCK_CONFIG FRCPLL_FCY40MHz |
Defines configuring pic24_delay.h | |
| #define | DEBOUNCE_DLY 15 |
outString() end-of-line behavior in pic24_serial.h | |
| #define | SERIAL_EOL_CR_LF 0 |
| #define | SERIAL_EOL_CR 1 |
| #define | SERIAL_EOL_LF 2 |
| #define | SERIAL_EOL_DEFAULT SERIAL_EOL_LF |
Defines from pic24_serial.h | |
| #define | DEFAULT_UART 1 |
| #define | DEFAULT_BAUDRATE 230400 |
| #define | DEFAULT_BRGH 0 |
Defines configuring pic24_util.h | |
| #define | USE_CLOCK_TIMEOUT 1 |
| #define | USE_HEARTBEAT 1 |
| #define | HB_LED _LATB15 |
| #define | CONFIG_HB_LED() CONFIG_RB15_AS_DIG_OUTPUT() |
This file consolidates all the user-configurable #defines scattered throughout the PIC24 support library. These may be changed by editing the #defines below, or by defining them via passing a -Dname=value flag to the compiler.
Definition in file pic24_libconfig.h.
| #define CLOCK_CONFIG FRCPLL_FCY40MHz |
Clock configuration for the PIC24 - set CLOCK_CONFIG to one of the following. Naming convention is OSCTYPE_[PRIFREQ]_FCYFREQ where OSCTYPE gives the oscillator type (see FNOSC_SEL for details), the optional PRIFREQ specifies primary oscillator frequency, and FCYFREQ determiens the processor clock (FCY) frequency. The "#defines for CLOCK_CONFIG" section gives the definition of the values below.
Definition at line 144 of file pic24_libconfig.h.
| #define CONFIG_HB_LED | ( | ) | CONFIG_RB15_AS_DIG_OUTPUT() |
Define a config function for the heartbeat pin.
Definition at line 309 of file pic24_libconfig.h.
Referenced by configHeartbeat().
| #define DANGEROUS_WEB 1 |
The Dangerous Prototypes web platform. See http://dangerousprototypes.com/docs/Web_platform_hardware_design
Definition at line 54 of file pic24_libconfig.h.
| #define DEBOUNCE_DLY 15 |
Define a debounce delay for use in reading pushbutton switches. The value is specified in milliseconds.
Definition at line 169 of file pic24_libconfig.h.
Referenced by main().
| #define DEFAULT_BAUDRATE 230400 |
Default baud rate used by configBasic() to configure the DEFAULT_UART.
Definition at line 237 of file pic24_libconfig.h.
Referenced by configBasic(), and main().
| #define DEFAULT_BRGH 0 |
Default BRGH value used by configUART1 to 4 when configurating a UART. This value may be overridden on a per-UART basis by #defineing DEFAULT_BRGH1 to 4. Allowed values:
Definition at line 253 of file pic24_libconfig.h.
| #define DEFAULT_DESIGN 3 |
Any of three targets, which share the same hardware configuration:
Definition at line 73 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 _C30_UART variable is changed.
Definition at line 226 of file pic24_libconfig.h.
Referenced by configDefaultUART().
| #define EXPLORER16_100P 0 |
The Microchip Explorer 16 Development Board with a 100-pin plug-in module, part number DM240001.
Definition at line 49 of file pic24_libconfig.h.
| #define HARDWARE_PLATFORM DEFAULT_DESIGN |
Select one of the hardware platform above to compile for.
Definition at line 78 of file pic24_libconfig.h.
| #define HB_LED _LATB15 |
Choose a pin for the heartbeat. If USE_HEARTBEAT is false, the heartbeat is disabled.
Definition at line 303 of file pic24_libconfig.h.
Referenced by configHeartbeat(), and toggleHeartbeat().
| #define SERIAL_EOL_CR 1 |
Set SERIAL_EOL_DEFAULT to this value to send a carriage return only ("\r") to end a line.
Definition at line 189 of file pic24_libconfig.h.
| #define SERIAL_EOL_CR_LF 0 |
Set SERIAL_EOL_DEFAULT to this value to send a CR with every LF in outString. PuTTY uses this, expects "\n\r".
Definition at line 184 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.
Definition at line 204 of file pic24_libconfig.h.
| #define SERIAL_EOL_LF 2 |
Set SERIAL_EOL_DEFAULT to this value to sends a new line only ("\n"). This works for Bully Bootloader, MPLAB SIM, TeraTerm, RealTerm.
Definition at line 196 of file pic24_libconfig.h.
| #define STARTER_BOARD_28P 2 |
The Microchip 16-bit 28-pin Starter Board, Part number DM300027. Thanks to István for contributing this!
Note: When you use a Microchip 16-bit 28-pin Starter Board with this library collection or just try out the example programs of the texbook, the SW2 switch shoud be set in the USB/debug state.
Definition at line 63 of file pic24_libconfig.h.
| #define USE_CLOCK_TIMEOUT 1 |
When set to 1, verify that calls to switchClock() do successfully switch the clock, reporting an error message on failure. See also checkClockTimeout().
Definition at line 274 of file pic24_libconfig.h.
| #define USE_HEARTBEAT 1 |
If this macro is true, heartbeat functionality is enabled. If false, heartbeat is disabled.
Definition at line 288 of file pic24_libconfig.h.
1.8.4