source: trunk/Arduino/libraries/Servo/src/nrf52/ServoTimers.h @ 23

Last change on this file since 23 was 3, checked in by markus, 7 years ago

Setup project structure

File size: 1.2 KB
Line 
1/*
2  Copyright (c) 2016 Arduino. All right reserved.
3
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19/*
20 * NRF52 doesn't use timer, but pwm. This file include definitions to keep
21 * compatibility with the Servo library standards.
22 */
23
24#ifndef __SERVO_TIMERS_H__
25#define __SERVO_TIMERS_H__
26
27/**
28 * NRF52 Only definitions
29 * ---------------------
30 */
31
32#define MIN_PULSE 55
33#define MAX_PULSE 284
34
35// define one timer in order to have MAX_SERVOS = 12
36typedef enum { _timer1, _Nbr_16timers } timer16_Sequence_t;
37
38#endif   // __SERVO_TIMERS_H__
Note: See TracBrowser for help on using the repository browser.