ClearCore Library
Loading...
Searching...
No Matches
inc
PeripheralRoute.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Teknic, Inc.
3
*
4
* Permission is hereby granted, free of charge, to any person obtaining a copy
5
* of this software and associated documentation files (the "Software"), to deal
6
* in the Software without restriction, including without limitation the rights
7
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
* copies of the Software, and to permit persons to whom the Software is
9
* furnished to do so, subject to the following conditions:
10
*
11
* The above copyright notice and this permission notice shall be included in
12
* all copies or substantial portions of the Software.
13
*
14
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
* SOFTWARE.
21
*/
22
28
#ifndef __PERIPHERAL_ROUTE_H__
29
#define __PERIPHERAL_ROUTE_H__
30
31
#include <sam.h>
32
34
typedef
enum
{
35
NOT_A_PORT = -1,
36
PORTA = 0,
37
PORTB,
38
PORTC,
39
CLEARCORE_PORT_MAX
// Keep as last item
40
}
ClearCorePorts
;
41
42
#ifndef HIDE_FROM_DOXYGEN
43
struct
PeripheralRoute {
44
uint8_t pin_raw;
45
ClearCorePorts
gpioPort;
46
uint8_t gpioPin;
47
uint8_t extInt;
48
bool
extIntAvail;
49
uint8_t adc0Channel;
50
uint8_t adc1Channel;
51
uint8_t dacChannel;
52
uint8_t sercomNum;
53
uint8_t sercomPadNum;
54
uint8_t tcNum;
55
uint8_t tcPadNum;
56
uint8_t tccNum;
57
uint8_t tccPadNum;
58
uint8_t gclkNum;
59
};
60
#endif
61
62
#endif
// __PERIPHERAL_ROUTE_H__
ClearCorePorts
ClearCorePorts
Definition
PeripheralRoute.h:34
Generated by
1.9.8