changeset 178:7706b4a8700d main

Add conditional compliation definitions from "project_defs.h". See each header file for details.
author Bob Cook <bob@bobcookdev.com>
date Mon, 01 Apr 2013 19:31:29 -0700
parents 317c0d923c51
children 240d07f41efe
files main/packages/common/util/crc16.cpp main/packages/common/util/crc16.h main/packages/common/util/crc32.cpp main/packages/common/util/crc32.h
diffstat 4 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/packages/common/util/crc16.cpp	Sun Mar 31 15:37:27 2013 -0700
+++ b/main/packages/common/util/crc16.cpp	Mon Apr 01 19:31:29 2013 -0700
@@ -39,10 +39,16 @@
 //
 // ----------------------------------------------------------------------------------------
 
+#include "project_defs.h"
+
 #include "crc16.h"
 
 // ----------------------------------------------------------------------------------------
 
+#if defined( PRJ_UTIL_CRC16_ENABLE )
+
+// ----------------------------------------------------------------------------------------
+
 #if defined( __AVR__ )
 
 #include <avr/pgmspace.h>
@@ -107,3 +113,7 @@
 
 // ----------------------------------------------------------------------------------------
 
+#endif // #if defined( PRJ_UTIL_CRC16_ENABLE )
+
+// ----------------------------------------------------------------------------------------
+
--- a/main/packages/common/util/crc16.h	Sun Mar 31 15:37:27 2013 -0700
+++ b/main/packages/common/util/crc16.h	Mon Apr 01 19:31:29 2013 -0700
@@ -35,6 +35,15 @@
 #include <stdint.h>
 
 // ----------------------------------------------------------------------------------------
+//  definitions from "project_defs.h"
+//
+//  enable CRC-16 computations
+//
+//      + PRJ_UTIL_CRC16_ENABLE
+//
+// ----------------------------------------------------------------------------------------
+
+// ----------------------------------------------------------------------------------------
 //  crc16
 //
 //      An object that accumulates the CRC-16 value over multiple function calls.
--- a/main/packages/common/util/crc32.cpp	Sun Mar 31 15:37:27 2013 -0700
+++ b/main/packages/common/util/crc32.cpp	Mon Apr 01 19:31:29 2013 -0700
@@ -39,10 +39,16 @@
 //
 // ----------------------------------------------------------------------------------------
 
+#include "project_defs.h"
+
 #include "crc32.h"
 
 // ----------------------------------------------------------------------------------------
 
+#if defined( PRJ_UTIL_CRC32_ENABLE )
+
+// ----------------------------------------------------------------------------------------
+
 #if defined( __AVR__ )
 
 #include <avr/pgmspace.h>
@@ -98,3 +104,7 @@
 
 // ----------------------------------------------------------------------------------------
 
+#endif // #if defined( PRJ_UTIL_CRC32_ENABLE )
+
+// ----------------------------------------------------------------------------------------
+
--- a/main/packages/common/util/crc32.h	Sun Mar 31 15:37:27 2013 -0700
+++ b/main/packages/common/util/crc32.h	Mon Apr 01 19:31:29 2013 -0700
@@ -35,6 +35,15 @@
 #include <stdint.h>
 
 // ----------------------------------------------------------------------------------------
+//  definitions from "project_defs.h"
+//
+//  enable CRC-32 computations
+//
+//      + PRJ_UTIL_CRC32_ENABLE
+//
+// ----------------------------------------------------------------------------------------
+
+// ----------------------------------------------------------------------------------------
 //  crc32
 //
 //      An object that accumulates the CRC-32 value over multiple functions.