FreeEMS  0.2.0-SNAPSHOT-285-g028e24c
Macros
globalDefines.h File Reference

Global hash define literal replacements. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INLINE_ASSEMBLY(code)   __asm__ __volatile__ (code)
#define ALWAYS_INLINE   __attribute__((always_inline))
#define FALSE   (0!=0)
#define TRUE   !FALSE
#define ZEROS   0x00
#define ONES   0xFF
#define ZEROS16   0x0000
#define ONES16   0xFFFF
#define LONGHALF   0x80000000UL /* 2147483648 */
#define LONGMAX   0xFFFFFFFFUL /* 4294967295 */
#define SHORT4TH   0x4000 /* 16384 */
#define SHORTHALF   0x8000 /* 32768 */
#define SHORTMAX   0xFFFF /* 65535 */
#define BIT0   0x01 /* 1st bit = 1 */
#define BIT1   0x02 /* 2nd bit = 2 */
#define BIT2   0x04 /* 3rd bit = 4 */
#define BIT3   0x08 /* 4th bit = 8 */
#define BIT4   0x10 /* 5th bit = 16 */
#define BIT5   0x20 /* 6th bit = 32 */
#define BIT6   0x40 /* 7th bit = 64 */
#define BIT7   0x80 /* 8th bit = 128 */
#define BIT0_16   0x0001 /* 1st bit = 1 */
#define BIT1_16   0x0002 /* 2nd bit = 2 */
#define BIT2_16   0x0004 /* 3rd bit = 4 */
#define BIT3_16   0x0008 /* 4th bit = 8 */
#define BIT4_16   0x0010 /* 5th bit = 16 */
#define BIT5_16   0x0020 /* 6th bit = 32 */
#define BIT6_16   0x0040 /* 7th bit = 64 */
#define BIT7_16   0x0080 /* 8th bit = 128 */
#define BIT8_16   0x0100 /* 9th bit = 256 */
#define BIT9_16   0x0200 /* 10th bit = 512 */
#define BIT10_16   0x0400 /* 11th bit = 1024 */
#define BIT11_16   0x0800 /* 12th bit = 2048 */
#define BIT12_16   0x1000 /* 13th bit = 4096 */
#define BIT13_16   0x2000 /* 14th bit = 8192 */
#define BIT14_16   0x4000 /* 15th bit = 16384 */
#define BIT15_16   0x8000 /* 16th bit = 32768 */
#define NBIT0   0xFE /* 1st bit = 1 */
#define NBIT1   0xFD /* 2nd bit = 2 */
#define NBIT2   0xFB /* 3rd bit = 4 */
#define NBIT3   0xF7 /* 4th bit = 8 */
#define NBIT4   0xEF /* 5th bit = 16 */
#define NBIT5   0xDF /* 6th bit = 32 */
#define NBIT6   0xBF /* 7th bit = 64 */
#define NBIT7   0x7F /* 8th bit = 128 */
#define NBIT0_16   0xFFFE /* 1st bit = 1 */
#define NBIT1_16   0xFFFD /* 2nd bit = 2 */
#define NBIT2_16   0xFFFB /* 3rd bit = 4 */
#define NBIT3_16   0xFFF7 /* 4th bit = 8 */
#define NBIT4_16   0xFFEF /* 5th bit = 16 */
#define NBIT5_16   0xFFDF /* 6th bit = 32 */
#define NBIT6_16   0xFFBF /* 7th bit = 64 */
#define NBIT7_16   0xFF7F /* 8th bit = 128 */
#define NBIT8_16   0xFEFF /* 9th bit = 256 */
#define NBIT9_16   0xFDFF /* 10th bit = 512 */
#define NBIT10_16   0xFBFF /* 11th bit = 1024 */
#define NBIT11_16   0xF7FF /* 12th bit = 2048 */
#define NBIT12_16   0xEFFF /* 13th bit = 4096 */
#define NBIT13_16   0xDFFF /* 14th bit = 8192 */
#define NBIT14_16   0xBFFF /* 15th bit = 16384 */
#define NBIT15_16   0x7FFF /* 16th bit = 32768 */

Detailed Description

Global hash define literal replacements.

This holds general purpose hash defined constants and literals.

Todo:
TODO Some investigation as to whether it is best to use consts or defines is required

Definition in file globalDefines.h.

Macro Definition Documentation

#define INLINE_ASSEMBLY (   code)    __asm__ __volatile__ (code)

Definition at line 55 of file globalDefines.h.

#define ALWAYS_INLINE   __attribute__((always_inline))

Definition at line 56 of file globalDefines.h.

#define FALSE   (0!=0)

Definition at line 60 of file globalDefines.h.

Referenced by generateDerivedVars().

#define TRUE   !FALSE

Definition at line 61 of file globalDefines.h.

Referenced by generateDerivedVars(), initAllPagedRAM(), and main().

#define ZEROS   0x00

Definition at line 64 of file globalDefines.h.

Referenced by initECTTimer(), and initInterrupts().

#define ONES   0xFF
#define ZEROS16   0x0000

Definition at line 68 of file globalDefines.h.

#define ONES16   0xFFFF

Definition at line 69 of file globalDefines.h.

#define LONGHALF   0x80000000UL /* 2147483648 */

Definition at line 72 of file globalDefines.h.

#define LONGMAX   0xFFFFFFFFUL /* 4294967295 */

Definition at line 73 of file globalDefines.h.

Referenced by scheduleOutputs().

#define SHORT4TH   0x4000 /* 16384 */

Definition at line 74 of file globalDefines.h.

Referenced by calculateFuelAndIgnition().

#define SHORTHALF   0x8000 /* 32768 */

Definition at line 75 of file globalDefines.h.

Referenced by main().

#define SHORTMAX   0xFFFF /* 65535 */
#define BIT0   0x01 /* 1st bit = 1 */

Definition at line 79 of file globalDefines.h.

Referenced by PrimaryRPMISR(), and SecondaryRPMISR().

#define BIT1   0x02 /* 2nd bit = 2 */

Definition at line 80 of file globalDefines.h.

Referenced by SecondaryRPMISR().

#define BIT2   0x04 /* 3rd bit = 4 */

Definition at line 81 of file globalDefines.h.

Referenced by InjectorXISR(), and perDecoderReset().

#define BIT3   0x08 /* 4th bit = 8 */

Definition at line 82 of file globalDefines.h.

Referenced by RTIISR().

#define BIT4   0x10 /* 5th bit = 16 */

Definition at line 83 of file globalDefines.h.

Referenced by SCI0ISR().

#define BIT5   0x20 /* 6th bit = 32 */

Definition at line 84 of file globalDefines.h.

Referenced by TimerOverflow().

#define BIT6   0x40 /* 7th bit = 64 */

Definition at line 85 of file globalDefines.h.

Referenced by initGPIO(), LowVoltageISR(), and RTIISR().

#define BIT7   0x80 /* 8th bit = 128 */
#define BIT0_16   0x0001 /* 1st bit = 1 */

Definition at line 88 of file globalDefines.h.

#define BIT1_16   0x0002 /* 2nd bit = 2 */

Definition at line 89 of file globalDefines.h.

#define BIT2_16   0x0004 /* 3rd bit = 4 */

Definition at line 90 of file globalDefines.h.

#define BIT3_16   0x0008 /* 4th bit = 8 */

Definition at line 91 of file globalDefines.h.

#define BIT4_16   0x0010 /* 5th bit = 16 */

Definition at line 92 of file globalDefines.h.

#define BIT5_16   0x0020 /* 6th bit = 32 */

Definition at line 93 of file globalDefines.h.

#define BIT6_16   0x0040 /* 7th bit = 64 */

Definition at line 94 of file globalDefines.h.

#define BIT7_16   0x0080 /* 8th bit = 128 */

Definition at line 95 of file globalDefines.h.

#define BIT8_16   0x0100 /* 9th bit = 256 */

Definition at line 97 of file globalDefines.h.

#define BIT9_16   0x0200 /* 10th bit = 512 */

Definition at line 98 of file globalDefines.h.

#define BIT10_16   0x0400 /* 11th bit = 1024 */

Definition at line 99 of file globalDefines.h.

#define BIT11_16   0x0800 /* 12th bit = 2048 */

Definition at line 100 of file globalDefines.h.

#define BIT12_16   0x1000 /* 13th bit = 4096 */

Definition at line 101 of file globalDefines.h.

#define BIT13_16   0x2000 /* 14th bit = 8192 */

Definition at line 102 of file globalDefines.h.

#define BIT14_16   0x4000 /* 15th bit = 16384 */

Definition at line 103 of file globalDefines.h.

#define BIT15_16   0x8000 /* 16th bit = 32768 */

Definition at line 104 of file globalDefines.h.

#define NBIT0   0xFE /* 1st bit = 1 */

Definition at line 107 of file globalDefines.h.

Referenced by PrimaryRPMISR(), and SecondaryRPMISR().

#define NBIT1   0xFD /* 2nd bit = 2 */

Definition at line 108 of file globalDefines.h.

Referenced by SecondaryRPMISR().

#define NBIT2   0xFB /* 3rd bit = 4 */

Definition at line 109 of file globalDefines.h.

Referenced by InjectorXISR(), and SecondaryRPMISR().

#define NBIT3   0xF7 /* 4th bit = 8 */

Definition at line 110 of file globalDefines.h.

Referenced by RTIISR().

#define NBIT4   0xEF /* 5th bit = 16 */

Definition at line 111 of file globalDefines.h.

Referenced by SCI0ISR().

#define NBIT5   0xDF /* 6th bit = 32 */

Definition at line 112 of file globalDefines.h.

Referenced by initGPIO(), and TimerOverflow().

#define NBIT6   0xBF /* 7th bit = 64 */

Definition at line 113 of file globalDefines.h.

Referenced by initGPIO(), and LowVoltageISR().

#define NBIT7   0x7F /* 8th bit = 128 */
#define NBIT0_16   0xFFFE /* 1st bit = 1 */

Definition at line 116 of file globalDefines.h.

#define NBIT1_16   0xFFFD /* 2nd bit = 2 */

Definition at line 117 of file globalDefines.h.

#define NBIT2_16   0xFFFB /* 3rd bit = 4 */

Definition at line 118 of file globalDefines.h.

#define NBIT3_16   0xFFF7 /* 4th bit = 8 */

Definition at line 119 of file globalDefines.h.

#define NBIT4_16   0xFFEF /* 5th bit = 16 */

Definition at line 120 of file globalDefines.h.

#define NBIT5_16   0xFFDF /* 6th bit = 32 */

Definition at line 121 of file globalDefines.h.

#define NBIT6_16   0xFFBF /* 7th bit = 64 */

Definition at line 122 of file globalDefines.h.

#define NBIT7_16   0xFF7F /* 8th bit = 128 */

Definition at line 123 of file globalDefines.h.

#define NBIT8_16   0xFEFF /* 9th bit = 256 */

Definition at line 125 of file globalDefines.h.

#define NBIT9_16   0xFDFF /* 10th bit = 512 */

Definition at line 126 of file globalDefines.h.

#define NBIT10_16   0xFBFF /* 11th bit = 1024 */

Definition at line 127 of file globalDefines.h.

#define NBIT11_16   0xF7FF /* 12th bit = 2048 */

Definition at line 128 of file globalDefines.h.

#define NBIT12_16   0xEFFF /* 13th bit = 4096 */

Definition at line 129 of file globalDefines.h.

#define NBIT13_16   0xDFFF /* 14th bit = 8192 */

Definition at line 130 of file globalDefines.h.

#define NBIT14_16   0xBFFF /* 15th bit = 16384 */

Definition at line 131 of file globalDefines.h.

#define NBIT15_16   0x7FFF /* 16th bit = 32768 */

Definition at line 132 of file globalDefines.h.