FRDM K64F Metronome

Committer:
ram54288
Date:
Sun May 14 18:35:07 2017 +0000
Revision:
0:a2cb7295a1f7
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:a2cb7295a1f7 1 /*
ram54288 0:a2cb7295a1f7 2 * Copyright (c) 2016 ARM Limited. All rights reserved.
ram54288 0:a2cb7295a1f7 3 * SPDX-License-Identifier: Apache-2.0
ram54288 0:a2cb7295a1f7 4 * Licensed under the Apache License, Version 2.0 (the License); you may
ram54288 0:a2cb7295a1f7 5 * not use this file except in compliance with the License.
ram54288 0:a2cb7295a1f7 6 * You may obtain a copy of the License at
ram54288 0:a2cb7295a1f7 7 *
ram54288 0:a2cb7295a1f7 8 * http://www.apache.org/licenses/LICENSE-2.0
ram54288 0:a2cb7295a1f7 9 *
ram54288 0:a2cb7295a1f7 10 * Unless required by applicable law or agreed to in writing, software
ram54288 0:a2cb7295a1f7 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
ram54288 0:a2cb7295a1f7 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ram54288 0:a2cb7295a1f7 13 * See the License for the specific language governing permissions and
ram54288 0:a2cb7295a1f7 14 * limitations under the License.
ram54288 0:a2cb7295a1f7 15 */
ram54288 0:a2cb7295a1f7 16
ram54288 0:a2cb7295a1f7 17
ram54288 0:a2cb7295a1f7 18 #ifndef _PAL_COFIGURATION_H
ram54288 0:a2cb7295a1f7 19 #define _PAL_COFIGURATION_H
ram54288 0:a2cb7295a1f7 20
ram54288 0:a2cb7295a1f7 21 #ifdef __cplusplus
ram54288 0:a2cb7295a1f7 22 extern "C" {
ram54288 0:a2cb7295a1f7 23 #endif
ram54288 0:a2cb7295a1f7 24
ram54288 0:a2cb7295a1f7 25 //! pal configuration options
ram54288 0:a2cb7295a1f7 26 #define PAL_NET_TCP_AND_TLS_SUPPORT true/* add pal support for TCP */
ram54288 0:a2cb7295a1f7 27 #define PAL_NET_ASYNCHRONOUS_SOCKET_API true/* add pal support for asynchronous sockets */
ram54288 0:a2cb7295a1f7 28 #define PAL_NET_DNS_SUPPORT true/* add pal support for DNS lookup */
ram54288 0:a2cb7295a1f7 29
ram54288 0:a2cb7295a1f7 30 #define PAL_RTOS_64BIT_TICK_SUPPORTED false /* add pal support for asynchronous sockets */
ram54288 0:a2cb7295a1f7 31 #define PAL_UNIQUE_THREAD_PRIORITY (!defined(PAL_IGNORE_UNIQUE_THREAD_PRIORITY))/* if defined code skips the uniqueness priority check */
ram54288 0:a2cb7295a1f7 32
ram54288 0:a2cb7295a1f7 33 //! number of valid priorities limits the number of threads- if priorities are added this value should be increased
ram54288 0:a2cb7295a1f7 34 #define PAL_MAX_NUMBER_OF_THREADS 7
ram54288 0:a2cb7295a1f7 35
ram54288 0:a2cb7295a1f7 36 //! the maximal number of interfaces that can be supported at once.
ram54288 0:a2cb7295a1f7 37 #define PAL_MAX_SUPORTED_NET_INTEFACES 5
ram54288 0:a2cb7295a1f7 38
ram54288 0:a2cb7295a1f7 39 #ifdef __GNUC__ // we are compiling using GCC/G++
ram54288 0:a2cb7295a1f7 40 #define PAL_TARGET_POINTER_SIZE __SIZEOF_POINTER__
ram54288 0:a2cb7295a1f7 41 #ifdef __BYTE_ORDER
ram54288 0:a2cb7295a1f7 42 #if __BYTE_ORDER == __BIG_ENDIAN //if both are not defined it is TRUE!
ram54288 0:a2cb7295a1f7 43 #define PAL_COMPILATION_ENDIANITY 1 //define pal compilation endianity (0 is little endian, 1 is big endian)
ram54288 0:a2cb7295a1f7 44 #elif __BYTE_ORDER == __LITTLE_ENDIAN
ram54288 0:a2cb7295a1f7 45 #define PAL_COMPILATION_ENDIANITY 0//define pal compilation endianity (0 is little endian, 1 is big endian)
ram54288 0:a2cb7295a1f7 46 #else
ram54288 0:a2cb7295a1f7 47 #error missing endiantiy defintion for GCC
ram54288 0:a2cb7295a1f7 48 #endif
ram54288 0:a2cb7295a1f7 49
ram54288 0:a2cb7295a1f7 50 #endif
ram54288 0:a2cb7295a1f7 51 #else
ram54288 0:a2cb7295a1f7 52 #ifdef __arm__ // we are compiling using the ARM compiler
ram54288 0:a2cb7295a1f7 53 #define PAL_TARGET_POINTER_SIZE __sizeof_ptr
ram54288 0:a2cb7295a1f7 54 #ifdef __BIG_ENDIAN
ram54288 0:a2cb7295a1f7 55 #define PAL_COMPILATION_ENDIANITY 1 //define pal compilation endianity (0 is little endian, 1 is big endian)
ram54288 0:a2cb7295a1f7 56 #else
ram54288 0:a2cb7295a1f7 57 #define PAL_COMPILATION_ENDIANITY 0 //define pal compilation endianity (0 is little endian, 1 is big endian)
ram54288 0:a2cb7295a1f7 58 #endif
ram54288 0:a2cb7295a1f7 59 #else
ram54288 0:a2cb7295a1f7 60 //#error neither ARMCC nor GCC used for compilation - not supported
ram54288 0:a2cb7295a1f7 61 #endif
ram54288 0:a2cb7295a1f7 62
ram54288 0:a2cb7295a1f7 63
ram54288 0:a2cb7295a1f7 64 #endif
ram54288 0:a2cb7295a1f7 65
ram54288 0:a2cb7295a1f7 66 #ifdef __cplusplus
ram54288 0:a2cb7295a1f7 67 }
ram54288 0:a2cb7295a1f7 68 #endif
ram54288 0:a2cb7295a1f7 69 #endif //_PAL_COFIGURATION_H