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:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
Parent:
TARGET_TY51822R3/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF51/us_ticker.h@169:a7c7b631e539
mbed library. Release version 164

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