Kenji Arai / TYBLE16_mbedlized_os5_several_examples_1st

Dependencies:   nRF51_Vdd TextLCD BME280

Committer:
kenjiArai
Date:
Thu Dec 19 07:27:50 2019 +0000
Revision:
6:6dd8c932bd56
Parent:
4:e9dfb4ca4277
updated each main.cpp

Who changed what in which revision?

UserRevisionLine numberNew contents of line
kenjiArai 4:e9dfb4ca4277 1 /* mbed Microcontroller Library
kenjiArai 4:e9dfb4ca4277 2 * Copyright (c) 2006-2013 ARM Limited
kenjiArai 4:e9dfb4ca4277 3 *
kenjiArai 4:e9dfb4ca4277 4 * Licensed under the Apache License, Version 2.0 (the "License");
kenjiArai 4:e9dfb4ca4277 5 * you may not use this file except in compliance with the License.
kenjiArai 4:e9dfb4ca4277 6 * You may obtain a copy of the License at
kenjiArai 4:e9dfb4ca4277 7 *
kenjiArai 4:e9dfb4ca4277 8 * http://www.apache.org/licenses/LICENSE-2.0
kenjiArai 4:e9dfb4ca4277 9 *
kenjiArai 4:e9dfb4ca4277 10 * Unless required by applicable law or agreed to in writing, software
kenjiArai 4:e9dfb4ca4277 11 * distributed under the License is distributed on an "AS IS" BASIS,
kenjiArai 4:e9dfb4ca4277 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
kenjiArai 4:e9dfb4ca4277 13 * See the License for the specific language governing permissions and
kenjiArai 4:e9dfb4ca4277 14 * limitations under the License.
kenjiArai 4:e9dfb4ca4277 15 */
kenjiArai 4:e9dfb4ca4277 16 #include "drivers/Timeout.h"
kenjiArai 4:e9dfb4ca4277 17
kenjiArai 4:e9dfb4ca4277 18 namespace mbed {
kenjiArai 4:e9dfb4ca4277 19
kenjiArai 4:e9dfb4ca4277 20 void Timeout::handler()
kenjiArai 4:e9dfb4ca4277 21 {
kenjiArai 4:e9dfb4ca4277 22 Callback<void()> local = _function;
kenjiArai 4:e9dfb4ca4277 23 detach();
kenjiArai 4:e9dfb4ca4277 24 local.call();
kenjiArai 4:e9dfb4ca4277 25 }
kenjiArai 4:e9dfb4ca4277 26
kenjiArai 4:e9dfb4ca4277 27 } // namespace mbed