Toyomasa Watarai
/
armcc_info
Describes predefine macros for mbed online compiler (armcc)
Diff: main.cpp
- Revision:
- 6:40e873bbc5f7
- Parent:
- 4:2b25b7a2c5fd
- Child:
- 7:31420b1e1298
--- a/main.cpp Thu Mar 09 00:41:56 2017 +0000 +++ b/main.cpp Thu Mar 16 21:58:09 2017 +0900 @@ -1,4 +1,26 @@ -#include "mbed.h" +/** + ****************************************************************************** + * @file main.cpp + * @author Toyomasa Watarai + * @version V1.0.0 + * @date 16 March 2017 + * @brief armcc pre-defined macro check progmra + ****************************************************************************** + * @attention + * + * Licensed 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. + */ + #include "mbed.h" #define xstr(s) str(s) #define str(s) #s @@ -9,7 +31,7 @@ #elif defined(TARGET_LPC1768) #define LED1 P0_22 Serial pc(USBTX, USBRX); // tx, rx -DigitalOut myled(P0_22, 1); +DigitalOut myled(LED2, 1); #else Serial pc(USBTX, USBRX); // tx, rx DigitalOut myled(LED1, 0);