Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
nz_db66dev1.h File Reference

Contains hardware specific defines for DB66DEV1 Revision 1 board. More...

Go to the source code of this file.

Detailed Description

Contains hardware specific defines for DB66DEV1 Revision 1 board.

Author
Modtronix Engineering
Compiler:
MPLAB XC16 Compiler

Description

This module includes hardware specific defines for DB66DEV1 Revision 1 board.

Configuration

The following defines are used to configure this module, and should be placed in projdefs.h. Note that all items marked [-DEFAULT-] are defaults, and do not have to be placed in projdefs.h if they contain desired configuration! For details, see Project Configuration.

// *********************************************************************
// ---------- nz_db66dev1 Configuration (from nz_db66dev1.h) -----------
// *********************************************************************
//All defines below that define a millisecond time value should be multiples of
//the DB66DEV1_SERVICE_TIME_MS define (default 10ms)!
#define DB66DEV1_DEBOUNCE_RST_MS 30 //Debounce time = 30ms default
#define DB66DEV1_DEBOUNCE_REPEAT_MS 250 //Initial delay between repeats = 250ms default
#define DB66DEV1_DEBOUNCE_REPEAT_TIMES 2 //2 times = 2*250ms = 500ms default
#define DB66DEV1_DEBOUNCE_REPEAT2_MS 100 //Next delay between repeats = 100ms default
#define DB66DEV1_DEBOUNCE_REPEAT2_TIMES 5 //5 times = 5*100ms = 500ms default
#define DB66DEV1_DEBOUNCE_REPEAT3_MS 50 //Next delay between repeats = 50ms default
#define DB66DEV1_DEBOUNCE_REPEAT3_TIMES 20 //20 times = 20*50ms = 1 Second
#define DB66DEV1_DEBOUNCE_REPEAT4_MS 10 //Next delay between repeats = 10ms default
#define DB66DEV1_SERVICE_TIME_MS 10 //Specifies how often the service routine is called, default is 10ms

Usage

To use the DB66DEV1 in a project, the following must be done:

  • Copy the Configuration section above (from nz_db66dev1.h) to the projdefs.h file.
  • In this "Configuration" section, change any default values if required (if default values should be used, define is not required in projdefs.h).
  • Add nz_db66dev1.c to the MPLAB project.
  • Include nz_db66dev1.h in the c file it is used in.
  • In HardwareProfile.h, add a define for this board:
    //Define any expansion boards, is a XBRD_xxx define (see nz_board.h for supported boards).
    #define XBRD_DB66DEV1_R1 //This project uses the DB66DEV1 expansion daughter board

Software License Agreement

The software supplied herewith is owned by Modtronix Engineering, and is protected under applicable copyright laws. The software supplied herewith is intended and supplied to you, the Company customer, for use solely and exclusively on products manufactured by Modtronix Engineering. The code may be modified and can be used free of charge for commercial and non commercial applications. All rights are reserved. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license.

THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

File History

2012-08-06, David H. (DH):

  • Initial version