summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-06-17 20:34:54 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-02-27 21:09:15 +0200
commit2f8fc3e2979815c2e8a1dcda375cf219b253555e (patch)
tree80e1a115d04de8d9777f9cdc5eb2d81cc053dcb2
parent97546c36fdd39f75b229dfe85db89ac70eeb6bab (diff)
some minor Blackfin-related fixes from Tzafrir Cohen
git-svn-id: http://svn.asterisk.org/svn/octasic_api/oct612x/trunk@35 537310ab-6354-42db-a3cc-247b777f7be6
-rw-r--r--software/include/octosdependant.h3
-rw-r--r--software/include/octtype.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/software/include/octosdependant.h b/software/include/octosdependant.h
index 6e797bc..d7008a4 100644
--- a/software/include/octosdependant.h
+++ b/software/include/octosdependant.h
@@ -103,6 +103,9 @@ extern "C" {
/* Look for PowerPC */
#elif defined( _M_MPPC ) || defined( _M_PPC ) || defined(PPC) || defined(__PPC) || defined(_ARCH_PPC)
#define OCT_MACH_ENDIAN OCT_MACH_BIG_ENDIAN
+ /* Look for Blackfin */
+ #elif defined( __bfin__ )
+ #define OCT_MACH_ENDIAN OCT_MACH_LITTLE_ENDIAN
#elif defined( CPU )
#if CPU==PPC860 || CPU==SIMNT
#define OCT_MACH_ENDIAN OCT_MACH_BIG_ENDIAN
diff --git a/software/include/octtype.h b/software/include/octtype.h
index 4400570..c8f46d4 100644
--- a/software/include/octtype.h
+++ b/software/include/octtype.h
@@ -52,6 +52,10 @@ extern "C" {
No target-specific header available
----------------------------------------------------------------------------*/
+#ifdef SZ
+#undef SZ
+#endif
+
/***************************** DEFINES *************************************/
/* 16-bit integer */
typedef unsigned short UINT16;