[444] | 1 | /* |
---|
| 2 | * The authors hereby grant permission to use, copy, modify, distribute, |
---|
| 3 | * and license this software and its documentation for any purpose, provided |
---|
| 4 | * that existing copyright notices are retained in all copies and that this |
---|
| 5 | * notice is included verbatim in any distributions. No written agreement, |
---|
| 6 | * license, or royalty fee is required for any of the authorized uses. |
---|
| 7 | * Modifications to this software may be copyrighted by their authors |
---|
| 8 | * and need not follow the licensing terms described here, provided that |
---|
| 9 | * the new terms are clearly indicated on the first page of each file where |
---|
| 10 | * they apply. |
---|
| 11 | */ |
---|
| 12 | |
---|
| 13 | #pragma once |
---|
| 14 | #ifndef __NO_BUILTIN |
---|
| 15 | #pragma system_header /* sys/mc_typedef.h */ |
---|
| 16 | #endif |
---|
| 17 | /************************************************************************ |
---|
| 18 | * |
---|
| 19 | * sys/mc_typedef.h |
---|
| 20 | * |
---|
| 21 | * (c) Copyright 2007-2009 Analog Devices, Inc. All rights reserved. |
---|
| 22 | * |
---|
| 23 | ************************************************************************/ |
---|
| 24 | |
---|
| 25 | /* Define testset_t. */ |
---|
| 26 | |
---|
| 27 | #ifndef _SYS_MC_TYPEDEF_H |
---|
| 28 | #define _SYS_MC_TYPEDEF_H |
---|
| 29 | |
---|
| 30 | #if !defined(__ADSPLPBLACKFIN__) |
---|
| 31 | typedef volatile unsigned char testset_t; |
---|
| 32 | #elif defined(__WORKAROUND_TESTSET_ALIGN) || defined(__WORKAROUND_05000412) |
---|
| 33 | /* these workarounds require 32-bit aligned address */ |
---|
| 34 | typedef volatile unsigned int testset_t; |
---|
| 35 | #else |
---|
| 36 | typedef volatile unsigned short testset_t; |
---|
| 37 | #endif |
---|
| 38 | |
---|
| 39 | #endif /* _SYS_MC_TYPEDEF_H */ |
---|