Toyomasa Watarai / simple-mbed-cloud-client

Dependents:  

Committer:
MACRUM
Date:
Mon Jul 02 06:30:39 2018 +0000
Revision:
0:276e7a263c35
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MACRUM 0:276e7a263c35 1 /*
MACRUM 0:276e7a263c35 2 * Copyright (c) 2014-2015 ARM Limited. All rights reserved.
MACRUM 0:276e7a263c35 3 * SPDX-License-Identifier: Apache-2.0
MACRUM 0:276e7a263c35 4 * Licensed under the Apache License, Version 2.0 (the License); you may
MACRUM 0:276e7a263c35 5 * not use this file except in compliance with the License.
MACRUM 0:276e7a263c35 6 * You may obtain a copy of the License at
MACRUM 0:276e7a263c35 7 *
MACRUM 0:276e7a263c35 8 * http://www.apache.org/licenses/LICENSE-2.0
MACRUM 0:276e7a263c35 9 *
MACRUM 0:276e7a263c35 10 * Unless required by applicable law or agreed to in writing, software
MACRUM 0:276e7a263c35 11 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
MACRUM 0:276e7a263c35 12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MACRUM 0:276e7a263c35 13 * See the License for the specific language governing permissions and
MACRUM 0:276e7a263c35 14 * limitations under the License.
MACRUM 0:276e7a263c35 15 */
MACRUM 0:276e7a263c35 16 #ifndef EVENTLOOP_CONFIG_H_
MACRUM 0:276e7a263c35 17 #define EVENTLOOP_CONFIG_H_
MACRUM 0:276e7a263c35 18
MACRUM 0:276e7a263c35 19 /*
MACRUM 0:276e7a263c35 20 * Options can be picked up from mbed-cli JSON configuration, or from
MACRUM 0:276e7a263c35 21 * Yotta JSON configuration, or from a user configuration file - see below.
MACRUM 0:276e7a263c35 22 *
MACRUM 0:276e7a263c35 23 * Undefine all internal flags before evaluating the configuration.
MACRUM 0:276e7a263c35 24 */
MACRUM 0:276e7a263c35 25
MACRUM 0:276e7a263c35 26 /* Use platform-provided low-resolution tick timer for eventloop (requires "platform_tick_timer" API) */
MACRUM 0:276e7a263c35 27 #undef NS_EVENTLOOP_USE_TICK_TIMER
MACRUM 0:276e7a263c35 28 /* Exclude high resolution timer from build (removes need for "platform_timer" API) */
MACRUM 0:276e7a263c35 29 #undef NS_EXCLUDE_HIGHRES_TIMER
MACRUM 0:276e7a263c35 30
MACRUM 0:276e7a263c35 31 /*
MACRUM 0:276e7a263c35 32 * mbedOS 5 specific configuration flag mapping to internal flags
MACRUM 0:276e7a263c35 33 */
MACRUM 0:276e7a263c35 34 #ifdef MBED_CONF_NANOSTACK_EVENTLOOP_USE_PLATFORM_TICK_TIMER
MACRUM 0:276e7a263c35 35 #define NS_EVENTLOOP_USE_TICK_TIMER 1
MACRUM 0:276e7a263c35 36 #endif
MACRUM 0:276e7a263c35 37
MACRUM 0:276e7a263c35 38 #ifdef MBED_CONF_NANOSTACK_EVENTLOOP_EXCLUDE_HIGHRES_TIMER
MACRUM 0:276e7a263c35 39 #define NS_EXCLUDE_HIGHRES_TIMER 1
MACRUM 0:276e7a263c35 40 #endif
MACRUM 0:276e7a263c35 41
MACRUM 0:276e7a263c35 42 /*
MACRUM 0:276e7a263c35 43 * For mbedOS 3 and minar use platform tick timer by default, highres timers should come from eventloop adaptor
MACRUM 0:276e7a263c35 44 */
MACRUM 0:276e7a263c35 45 #ifdef YOTTA_CFG_MINAR
MACRUM 0:276e7a263c35 46 #define NS_EVENTLOOP_USE_TICK_TIMER 1
MACRUM 0:276e7a263c35 47 #endif
MACRUM 0:276e7a263c35 48
MACRUM 0:276e7a263c35 49 /*
MACRUM 0:276e7a263c35 50 * Include the user config file if defined
MACRUM 0:276e7a263c35 51 */
MACRUM 0:276e7a263c35 52 #ifdef NS_EVENTLOOP_USER_CONFIG_FILE
MACRUM 0:276e7a263c35 53 #include NS_EVENTLOOP_USER_CONFIG_FILE
MACRUM 0:276e7a263c35 54 #endif
MACRUM 0:276e7a263c35 55
MACRUM 0:276e7a263c35 56 #endif /* EVENTLOOP_CONFIG_H_ */