Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers eventloop_config.h Source File

eventloop_config.h

00001 /*
00002  * Copyright (c) 2014-2015 ARM Limited. All rights reserved.
00003  * SPDX-License-Identifier: Apache-2.0
00004  * Licensed under the Apache License, Version 2.0 (the License); you may
00005  * not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef EVENTLOOP_CONFIG_H_
00017 #define EVENTLOOP_CONFIG_H_
00018 
00019 /*
00020  * Options can be picked up from mbed-cli JSON configuration, or from
00021  * Yotta JSON configuration, or from a user configuration file - see below.
00022  *
00023  * Undefine all internal flags before evaluating the configuration.
00024  */
00025 
00026 /* Use platform-provided low-resolution tick timer for eventloop (requires "platform_tick_timer" API) */
00027 #undef NS_EVENTLOOP_USE_TICK_TIMER
00028 /* Exclude high resolution timer from build (removes need for "platform_timer" API) */
00029 #undef NS_EXCLUDE_HIGHRES_TIMER
00030 
00031 /*
00032  * mbedOS 5 specific configuration flag mapping to internal flags
00033  */
00034 #ifdef MBED_CONF_NANOSTACK_EVENTLOOP_USE_PLATFORM_TICK_TIMER
00035 #define NS_EVENTLOOP_USE_TICK_TIMER     1
00036 #endif
00037 
00038 #ifdef MBED_CONF_NANOSTACK_EVENTLOOP_EXCLUDE_HIGHRES_TIMER
00039 #define NS_EXCLUDE_HIGHRES_TIMER        1
00040 #endif
00041 
00042 /*
00043  * For mbedOS 3 and minar use platform tick timer by default, highres timers should come from eventloop adaptor
00044  */
00045 #ifdef YOTTA_CFG_MINAR
00046 #define NS_EVENTLOOP_USE_TICK_TIMER     1
00047 #endif
00048 
00049 /*
00050  * Include the user config file if defined
00051  */
00052 #ifdef NS_EVENTLOOP_USER_CONFIG_FILE
00053 #include NS_EVENTLOOP_USER_CONFIG_FILE
00054 #endif
00055 
00056 #endif /* EVENTLOOP_CONFIG_H_ */