Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51_Vdd TextLCD BME280
TYBLE16_os5_BASE/drivers/Timeout.cpp@6:6dd8c932bd56, 2019-12-19 (annotated)
- 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?
User | Revision | Line number | New 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 |