Loading...
Searching...
No Matches
syscfg.h File Reference

Apache Mynewt Copyright 2015-2021 The Apache Software Foundation. More...

Detailed Description

Apache Mynewt Copyright 2015-2021 The Apache Software Foundation.

This product includes software developed at The Apache Software Foundation (http://www.apache.org/).

Portions of this software were developed at Runtime Inc, copyright 2015.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

mynewt-core system configurations

Definition in file syscfg.h.

#include "kernel_defines.h"
+ Include dependency graph for syscfg.h:

Go to the source code of this file.

Macros

#define MYNEWT_VAL_OS_CPUTIME_TIMER_NUM   (5)
 TIMER 3 or 5 (RTC_DEV0) will be mynewt-core OS_CPUTIME timer, depending on used CPU family.
 
#define MYNEWT_VAL_TIMER_5   (1)
 Enable TIMER 3 or TIMER 5 (RTC_DEV0) depending on used CPU family.
 

MyNewt header inclusion macro definitions

PLEASE NOTE: Following macro definitions where copied directly from apache/mynewt-core and are under the copyright specified in the header.

This macro exists to ensure code includes this header when needed. If code checks the existence of a setting directly via ifdef without including this header, the setting macro will silently evaluate to 0. In contrast, an attempt to use these macros without including this header will result in a compiler error.

#define MYNEWT_VAL(_name)   MYNEWT_VAL_ ## _name
 
#define MYNEWT_VAL_CHOICE(_name, _val)   MYNEWT_VAL_ ## _name ## __ ## _val
 

Macro Definition Documentation

◆ MYNEWT_VAL

#define MYNEWT_VAL (   _name)    MYNEWT_VAL_ ## _name

Definition at line 58 of file syscfg.h.

◆ MYNEWT_VAL_CHOICE

#define MYNEWT_VAL_CHOICE (   _name,
  _val 
)    MYNEWT_VAL_ ## _name ## __ ## _val

Definition at line 59 of file syscfg.h.

◆ MYNEWT_VAL_OS_CPUTIME_TIMER_NUM

#define MYNEWT_VAL_OS_CPUTIME_TIMER_NUM   (5)

TIMER 3 or 5 (RTC_DEV0) will be mynewt-core OS_CPUTIME timer, depending on used CPU family.

Definition at line 70 of file syscfg.h.

◆ MYNEWT_VAL_TIMER_5

#define MYNEWT_VAL_TIMER_5   (1)

Enable TIMER 3 or TIMER 5 (RTC_DEV0) depending on used CPU family.

Definition at line 83 of file syscfg.h.