the do / gr-peach-opencv-project

Fork of gr-peach-opencv-project by the do

Committer:
thedo
Date:
Thu Jun 29 11:01:39 2017 +0000
Revision:
167:1657b442184c
Opencv 3.1 project on GR-PEACH board, 4 apps

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 167:1657b442184c 1
thedo 167:1657b442184c 2 /** \addtogroup hal */
thedo 167:1657b442184c 3 /** @{*/
thedo 167:1657b442184c 4 /* mbed Microcontroller Library
thedo 167:1657b442184c 5 * Copyright (c) 2015 ARM Limited
thedo 167:1657b442184c 6 *
thedo 167:1657b442184c 7 * Licensed under the Apache License, Version 2.0 (the "License");
thedo 167:1657b442184c 8 * you may not use this file except in compliance with the License.
thedo 167:1657b442184c 9 * You may obtain a copy of the License at
thedo 167:1657b442184c 10 *
thedo 167:1657b442184c 11 * http://www.apache.org/licenses/LICENSE-2.0
thedo 167:1657b442184c 12 *
thedo 167:1657b442184c 13 * Unless required by applicable law or agreed to in writing, software
thedo 167:1657b442184c 14 * distributed under the License is distributed on an "AS IS" BASIS,
thedo 167:1657b442184c 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
thedo 167:1657b442184c 16 * See the License for the specific language governing permissions and
thedo 167:1657b442184c 17 * limitations under the License.
thedo 167:1657b442184c 18 */
thedo 167:1657b442184c 19 #ifndef MBED_LPTICKER_API_H
thedo 167:1657b442184c 20 #define MBED_LPTICKER_API_H
thedo 167:1657b442184c 21
thedo 167:1657b442184c 22 #include "device.h"
thedo 167:1657b442184c 23
thedo 167:1657b442184c 24 #if DEVICE_LOWPOWERTIMER
thedo 167:1657b442184c 25
thedo 167:1657b442184c 26 #include "hal/ticker_api.h"
thedo 167:1657b442184c 27
thedo 167:1657b442184c 28 #ifdef __cplusplus
thedo 167:1657b442184c 29 extern "C" {
thedo 167:1657b442184c 30 #endif
thedo 167:1657b442184c 31
thedo 167:1657b442184c 32 /**
thedo 167:1657b442184c 33 * \defgroup hal_LpTicker Low Power Ticker Functions
thedo 167:1657b442184c 34 * @{
thedo 167:1657b442184c 35 */
thedo 167:1657b442184c 36
thedo 167:1657b442184c 37 /** Get low power ticker's data
thedo 167:1657b442184c 38 *
thedo 167:1657b442184c 39 * @return The low power ticker data
thedo 167:1657b442184c 40 */
thedo 167:1657b442184c 41 const ticker_data_t* get_lp_ticker_data(void);
thedo 167:1657b442184c 42
thedo 167:1657b442184c 43 /** The wrapper for ticker_irq_handler, to pass lp ticker's data
thedo 167:1657b442184c 44 *
thedo 167:1657b442184c 45 */
thedo 167:1657b442184c 46 void lp_ticker_irq_handler(void);
thedo 167:1657b442184c 47
thedo 167:1657b442184c 48 /* HAL lp ticker */
thedo 167:1657b442184c 49
thedo 167:1657b442184c 50 /** Initialize the low power ticker
thedo 167:1657b442184c 51 *
thedo 167:1657b442184c 52 */
thedo 167:1657b442184c 53 void lp_ticker_init(void);
thedo 167:1657b442184c 54
thedo 167:1657b442184c 55 /** Read the current counter
thedo 167:1657b442184c 56 *
thedo 167:1657b442184c 57 * @return The current timer's counter value in microseconds
thedo 167:1657b442184c 58 */
thedo 167:1657b442184c 59 uint32_t lp_ticker_read(void);
thedo 167:1657b442184c 60
thedo 167:1657b442184c 61 /** Set interrupt for specified timestamp
thedo 167:1657b442184c 62 *
thedo 167:1657b442184c 63 * @param timestamp The time in microseconds to be set
thedo 167:1657b442184c 64 */
thedo 167:1657b442184c 65 void lp_ticker_set_interrupt(timestamp_t timestamp);
thedo 167:1657b442184c 66
thedo 167:1657b442184c 67 /** Disable low power ticker interrupt
thedo 167:1657b442184c 68 *
thedo 167:1657b442184c 69 */
thedo 167:1657b442184c 70 void lp_ticker_disable_interrupt(void);
thedo 167:1657b442184c 71
thedo 167:1657b442184c 72 /** Clear the low power ticker interrupt
thedo 167:1657b442184c 73 *
thedo 167:1657b442184c 74 */
thedo 167:1657b442184c 75 void lp_ticker_clear_interrupt(void);
thedo 167:1657b442184c 76
thedo 167:1657b442184c 77 /**@}*/
thedo 167:1657b442184c 78
thedo 167:1657b442184c 79 #ifdef __cplusplus
thedo 167:1657b442184c 80 }
thedo 167:1657b442184c 81 #endif
thedo 167:1657b442184c 82
thedo 167:1657b442184c 83 #endif
thedo 167:1657b442184c 84
thedo 167:1657b442184c 85 #endif
thedo 167:1657b442184c 86
thedo 167:1657b442184c 87 /** @}*/
thedo 167:1657b442184c 88