From 2f8fc3e2979815c2e8a1dcda375cf219b253555e Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 17 Jun 2008 20:34:54 +0000 Subject: 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 --- software/include/octosdependant.h | 3 +++ software/include/octtype.h | 4 ++++ 2 files changed, 7 insertions(+) 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; -- cgit v1.2.3