Opencv 3.1 project on GR-PEACH board

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

Committer:
thedo
Date:
Tue Jul 04 06:23:13 2017 +0000
Revision:
170:54ff26da7eb6
Parent:
167:1657b442184c
project opencv 3.1 on GR PEACH board, no use SD card.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 167:1657b442184c 1 /* mbed Microcontroller Library
thedo 167:1657b442184c 2 * Copyright (c) 2006-2013 ARM Limited
thedo 167:1657b442184c 3 *
thedo 167:1657b442184c 4 * Licensed under the Apache License, Version 2.0 (the "License");
thedo 167:1657b442184c 5 * you may not use this file except in compliance with the License.
thedo 167:1657b442184c 6 * You may obtain a copy of the License at
thedo 167:1657b442184c 7 *
thedo 167:1657b442184c 8 * http://www.apache.org/licenses/LICENSE-2.0
thedo 167:1657b442184c 9 *
thedo 167:1657b442184c 10 * Unless required by applicable law or agreed to in writing, software
thedo 167:1657b442184c 11 * distributed under the License is distributed on an "AS IS" BASIS,
thedo 167:1657b442184c 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
thedo 167:1657b442184c 13 * See the License for the specific language governing permissions and
thedo 167:1657b442184c 14 * limitations under the License.
thedo 167:1657b442184c 15 */
thedo 167:1657b442184c 16 #ifndef MBED_TIMEREVENT_H
thedo 167:1657b442184c 17 #define MBED_TIMEREVENT_H
thedo 167:1657b442184c 18
thedo 167:1657b442184c 19 #include "hal/ticker_api.h"
thedo 167:1657b442184c 20 #include "hal/us_ticker_api.h"
thedo 167:1657b442184c 21
thedo 167:1657b442184c 22 namespace mbed {
thedo 167:1657b442184c 23 /** \addtogroup drivers */
thedo 167:1657b442184c 24
thedo 167:1657b442184c 25 /** Base abstraction for timer interrupts
thedo 167:1657b442184c 26 *
thedo 167:1657b442184c 27 * @note Synchronization level: Interrupt safe
thedo 167:1657b442184c 28 * @ingroup drivers
thedo 167:1657b442184c 29 */
thedo 167:1657b442184c 30 class TimerEvent {
thedo 167:1657b442184c 31 public:
thedo 167:1657b442184c 32 TimerEvent();
thedo 167:1657b442184c 33 TimerEvent(const ticker_data_t *data);
thedo 167:1657b442184c 34
thedo 167:1657b442184c 35 /** The handler registered with the underlying timer interrupt
thedo 167:1657b442184c 36 */
thedo 167:1657b442184c 37 static void irq(uint32_t id);
thedo 167:1657b442184c 38
thedo 167:1657b442184c 39 /** Destruction removes it...
thedo 167:1657b442184c 40 */
thedo 167:1657b442184c 41 virtual ~TimerEvent();
thedo 167:1657b442184c 42
thedo 167:1657b442184c 43 protected:
thedo 167:1657b442184c 44 // The handler called to service the timer event of the derived class
thedo 167:1657b442184c 45 virtual void handler() = 0;
thedo 167:1657b442184c 46
thedo 167:1657b442184c 47 // insert relative timestamp in to linked list
thedo 167:1657b442184c 48 void insert(timestamp_t timestamp);
thedo 167:1657b442184c 49
thedo 167:1657b442184c 50 // insert absolute timestamp into linked list
thedo 167:1657b442184c 51 void insert_absolute(us_timestamp_t timestamp);
thedo 167:1657b442184c 52
thedo 167:1657b442184c 53 // remove from linked list, if in it
thedo 167:1657b442184c 54 void remove();
thedo 167:1657b442184c 55
thedo 167:1657b442184c 56 ticker_event_t event;
thedo 167:1657b442184c 57
thedo 167:1657b442184c 58 const ticker_data_t *_ticker_data;
thedo 167:1657b442184c 59 };
thedo 167:1657b442184c 60
thedo 167:1657b442184c 61 } // namespace mbed
thedo 167:1657b442184c 62
thedo 167:1657b442184c 63 #endif
thedo 167:1657b442184c 64