taeil kim
/
seoul-iot-hackathon-demo
Revision Commit
Fork of seoul-iot-hackathon-demo by
main.cpp@9:179e6db867bd, 2017-10-13 (annotated)
- Committer:
- sarahmarshy
- Date:
- Fri Oct 13 18:31:31 2017 +0000
- Revision:
- 9:179e6db867bd
- Parent:
- 5:c6cb16909244
Added button macro
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sarahmarshy |
0:6b7ffde9f287 | 1 | /* |
sarahmarshy |
0:6b7ffde9f287 | 2 | * Copyright (c) 2016 ARM Limited. All rights reserved. |
sarahmarshy |
0:6b7ffde9f287 | 3 | * SPDX-License-Identifier: Apache-2.0 |
sarahmarshy |
0:6b7ffde9f287 | 4 | * Licensed under the Apache License, Version 2.0 (the License); you may |
sarahmarshy |
0:6b7ffde9f287 | 5 | * not use this file except in compliance with the License. |
sarahmarshy |
0:6b7ffde9f287 | 6 | * You may obtain a copy of the License at |
sarahmarshy |
0:6b7ffde9f287 | 7 | * |
sarahmarshy |
0:6b7ffde9f287 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
sarahmarshy |
0:6b7ffde9f287 | 9 | * |
sarahmarshy |
0:6b7ffde9f287 | 10 | * Unless required by applicable law or agreed to in writing, software |
sarahmarshy |
0:6b7ffde9f287 | 11 | * distributed under the License is distributed on an AS IS BASIS, WITHOUT |
sarahmarshy |
0:6b7ffde9f287 | 12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sarahmarshy |
0:6b7ffde9f287 | 13 | * See the License for the specific language governing permissions and |
sarahmarshy |
0:6b7ffde9f287 | 14 | * limitations under the License. |
sarahmarshy |
0:6b7ffde9f287 | 15 | */ |
sarahmarshy | 9:179e6db867bd | 16 | |
sarahmarshy | 9:179e6db867bd | 17 | #if defined(TARGET_K64F) |
sarahmarshy | 9:179e6db867bd | 18 | #define BUTTON SW2 |
sarahmarshy | 9:179e6db867bd | 19 | #else |
sarahmarshy | 9:179e6db867bd | 20 | #define BUTTON SW0 |
sarahmarshy | 9:179e6db867bd | 21 | #endif |
sarahmarshy |
0:6b7ffde9f287 | 22 | |
sarahmarshy |
0:6b7ffde9f287 | 23 | #if APP_SHIELD_DEMO == 1 |
sarahmarshy |
0:6b7ffde9f287 | 24 | #include "1_app_shield/main.h" |
sarahmarshy |
0:6b7ffde9f287 | 25 | #elif APP_SHIELD_DEMO == 0 |
sarahmarshy |
0:6b7ffde9f287 | 26 | #include "2_connected_app/main.h" |
sarahmarshy |
0:6b7ffde9f287 | 27 | #else |
sarahmarshy |
0:6b7ffde9f287 | 28 | #error "Add APP_SHIELD_DEMO macro to mbed_app.json" |
senthilrj | 4:024ed0194ea6 | 29 | #endif |