The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anna Bridge 169:a7c7b631e539 1 /* mbed Microcontroller Library
Anna Bridge 169:a7c7b631e539 2 * Copyright (c) 2018 ARM Limited
Anna Bridge 169:a7c7b631e539 3 *
Anna Bridge 169:a7c7b631e539 4 * Licensed under the Apache License, Version 2.0 (the "License");
Anna Bridge 169:a7c7b631e539 5 * you may not use this file except in compliance with the License.
Anna Bridge 169:a7c7b631e539 6 * You may obtain a copy of the License at
Anna Bridge 169:a7c7b631e539 7 *
Anna Bridge 169:a7c7b631e539 8 * http://www.apache.org/licenses/LICENSE-2.0
Anna Bridge 169:a7c7b631e539 9 *
Anna Bridge 169:a7c7b631e539 10 * Unless required by applicable law or agreed to in writing, software
Anna Bridge 169:a7c7b631e539 11 * distributed under the License is distributed on an "AS IS" BASIS,
Anna Bridge 169:a7c7b631e539 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Anna Bridge 169:a7c7b631e539 13 * See the License for the specific language governing permissions and
Anna Bridge 169:a7c7b631e539 14 * limitations under the License.
Anna Bridge 169:a7c7b631e539 15 */
Anna Bridge 169:a7c7b631e539 16
Anna Bridge 169:a7c7b631e539 17 #ifndef US_TICKER_H
Anna Bridge 169:a7c7b631e539 18 #define US_TICKER_H
Anna Bridge 169:a7c7b631e539 19
Anna Bridge 169:a7c7b631e539 20 /* TIMER0 is reserved for SoftDevice. We will use TIMER1 for us ticker
Anna Bridge 169:a7c7b631e539 21 * which counter size is 16 bits. */
Anna Bridge 169:a7c7b631e539 22
Anna Bridge 169:a7c7b631e539 23 #define US_TICKER_COUNTER_BITS 16u
Anna Bridge 169:a7c7b631e539 24 #define US_TICKER_FREQ 1000000
Anna Bridge 169:a7c7b631e539 25
Anna Bridge 169:a7c7b631e539 26 #endif // US_TICKER_H