Main Netcruzer System file. More...
#include "nz_tick.h"
#include "nz_helpers.h"
#include "nz_ioPortDefs.h"
#include "nz_ioPorts.h"
#include "nz_analog.h"
#include "nz_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | BOARD_STATUS |
struct | WDT_FLAGS_ |
struct | _GLOBAL_DEFS |
Macros | |
#define | HAS_NZ_ADC |
#define | HAS_NZ_PWM |
#define | HAS_SERPORT_I2C |
#define | DEBUG_CONF_DEFAULT DEBUG_LEVEL_ERROR |
#define | NZ_MALLOC(size) malloc(size) |
#define | USER_RAM_SIZE 256 |
#define | MAIN_LOOP_TOP() |
#define | MAIN_LOOP_BOTTOM() inMainLoop = FALSE; |
#define | BUFFER_DUMMY_SIZE 2 |
#define | NZ_GLOBALS_SERPORT_DEBUG nzGlobals.serDebug |
#define | NZ_GLOBALS_SERPORT_FIRST nzGlobals.serUart1 |
#define | NZ_GLOBALS_SERPORT_LAST nzGlobals.serUser8 |
#define | SERPORT_COUNT (NZ_GLOBALS_SERPORT_LAST - NZ_GLOBALS_SERPORT_FIRST) |
#define | NZSYS_ENABLE_TICK |
#define | USER_RAM_WORD(adr) (*((WORD*)(&nzGlobals.userRam[adr]))) |
#define | USER_RAM_BYTE(adr) (nzGlobals.userRam[adr]) |
Typedefs | |
typedef struct WDT_FLAGS_ | WDT_FLAGS |
typedef struct _GLOBAL_DEFS | GLOBAL_DEFS |
Functions | |
void | mainLoop (void) |
void | nzSysInitDefault (void) |
void | nzSysTaskDefault (void) |
void | nzSysGlobalInit (void) |
Variables | |
GLOBAL_DEFS | nzGlobals |
Main Netcruzer System file.
This module contains Netcruzer System code.
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.
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-08, David H. (DH):
#define MAIN_LOOP_TOP | ( | ) |
#define USER_RAM_BYTE | ( | adr) | (nzGlobals.userRam[adr]) |
User Ram BYTE. Use to get or set User Ram BYTE.
For example, to get the BYTE at User Ram 0x42: BYTE val; val = USER_RAM_BYTE(0x42);
For example, to set the BYTE at User Ram 0xC2 to 0x0A: USER_RAM_BYTE(0xC2) = 0x0A;
#define USER_RAM_WORD | ( | adr) | (*((WORD*)(&nzGlobals.userRam[adr]))) |
User Ram WORD. Use to get or set User Ram WORD.
For example, to get the WORD at User Ram 0x42: WORD val; val = USER_RAM_WORD(0x42);
For example, to set the WORD at User Ram 0xC2 to 0x0A50: USER_RAM_WORD(0xC2) = 0xA50;
typedef struct _GLOBAL_DEFS GLOBAL_DEFS |
Global defines, located at 0x1000 (4096) in RAM
void nzSysGlobalInit | ( | void | ) |
Initialize global data
void nzSysInitDefault | ( | void | ) |
Default initialization. Does following:
void nzSysTaskDefault | ( | void | ) |
Default Task, must be called in main loop of function program that calls nzSysInitDefault(). Does following: