Clone of official tools
config/header.tmpl@47:21ae3e5a7128, 2021-02-04 (annotated)
- Committer:
- Anders Blomdell
- Date:
- Thu Feb 04 17:17:13 2021 +0100
- Revision:
- 47:21ae3e5a7128
- Parent:
- 36:96847d42f010
Add a few normpath calls
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
The Other Jimmy |
36:96847d42f010 | 1 | /* |
The Other Jimmy |
36:96847d42f010 | 2 | * mbed SDK |
The Other Jimmy |
36:96847d42f010 | 3 | * Copyright (c) 2017 ARM Limited |
The Other Jimmy |
36:96847d42f010 | 4 | * |
The Other Jimmy |
36:96847d42f010 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
The Other Jimmy |
36:96847d42f010 | 6 | * you may not use this file except in compliance with the License. |
The Other Jimmy |
36:96847d42f010 | 7 | * You may obtain a copy of the License at |
The Other Jimmy |
36:96847d42f010 | 8 | * |
The Other Jimmy |
36:96847d42f010 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
The Other Jimmy |
36:96847d42f010 | 10 | * |
The Other Jimmy |
36:96847d42f010 | 11 | * Unless required by applicable law or agreed to in writing, software |
The Other Jimmy |
36:96847d42f010 | 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
The Other Jimmy |
36:96847d42f010 | 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
The Other Jimmy |
36:96847d42f010 | 14 | * See the License for the specific language governing permissions and |
The Other Jimmy |
36:96847d42f010 | 15 | * limitations under the License. |
The Other Jimmy |
36:96847d42f010 | 16 | */ |
The Other Jimmy |
36:96847d42f010 | 17 | |
The Other Jimmy |
36:96847d42f010 | 18 | // Automatically generated configuration file. |
The Other Jimmy |
36:96847d42f010 | 19 | // DO NOT EDIT, content will be overwritten. |
The Other Jimmy |
36:96847d42f010 | 20 | |
The Other Jimmy |
36:96847d42f010 | 21 | #ifndef __MBED_CONFIG_DATA__ |
The Other Jimmy |
36:96847d42f010 | 22 | #define __MBED_CONFIG_DATA__ |
The Other Jimmy |
36:96847d42f010 | 23 | |
The Other Jimmy |
36:96847d42f010 | 24 | {% if cfg_params -%} |
The Other Jimmy |
36:96847d42f010 | 25 | // Configuration parameters |
The Other Jimmy |
36:96847d42f010 | 26 | {% for name, value, set_by in cfg_params -%} |
The Other Jimmy |
36:96847d42f010 | 27 | {% if value is not none -%} |
The Other Jimmy |
36:96847d42f010 | 28 | #define {{name.ljust(name_len)}} {{value.ljust(val_len)}} // set by {{set_by}} |
The Other Jimmy |
36:96847d42f010 | 29 | {%- endif %} |
The Other Jimmy |
36:96847d42f010 | 30 | {% endfor %} |
The Other Jimmy |
36:96847d42f010 | 31 | {%- endif -%} |
The Other Jimmy |
36:96847d42f010 | 32 | |
The Other Jimmy |
36:96847d42f010 | 33 | {%- if macros -%} |
The Other Jimmy |
36:96847d42f010 | 34 | // Macros |
The Other Jimmy |
36:96847d42f010 | 35 | {% for name, value, set_by in macros -%} |
The Other Jimmy |
36:96847d42f010 | 36 | {% if value is not none -%} |
The Other Jimmy |
36:96847d42f010 | 37 | #define {{name.ljust(name_len)}} {{value.ljust(val_len)}} // defined by {{set_by}} |
The Other Jimmy |
36:96847d42f010 | 38 | {%- else -%} |
The Other Jimmy |
36:96847d42f010 | 39 | #define {{name.ljust(name_len + val_len + 1)}} // defined by {{set_by}} |
The Other Jimmy |
36:96847d42f010 | 40 | {%- endif %} |
The Other Jimmy |
36:96847d42f010 | 41 | {% endfor %} |
The Other Jimmy |
36:96847d42f010 | 42 | {%- endif %} |
The Other Jimmy |
36:96847d42f010 | 43 | #endif |
The Other Jimmy |
36:96847d42f010 | 44 |