MAX32680 Peripheral Driver API
Peripheral Driver API for the MAX32680
Toggle main menu visibility
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
mxc_device.h
1
/******************************************************************************
2
*
3
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
4
* Analog Devices, Inc.),
5
* Copyright (C) 2023-2024 Analog Devices, Inc.
6
*
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
*
11
* http://www.apache.org/licenses/LICENSE-2.0
12
*
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
18
*
19
******************************************************************************/
20
21
#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_DEVICE_H_
22
#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_DEVICE_H_
23
24
#include "max32680.h"
25
#include "mxc_errors.h"
26
#include "mxc_pins.h"
27
28
#ifndef TARGET
29
#error TARGET NOT DEFINED
30
#endif
31
32
// Create a string definition for the TARGET
33
#define STRING_ARG(arg) #arg
34
#define STRING_NAME(name) STRING_ARG(name)
35
#define TARGET_NAME STRING_NAME(TARGET)
36
37
// Define which revisions of the IP we are using
38
#ifndef TARGET_REV
39
#error TARGET_REV NOT DEFINED
40
#endif
41
42
#if (TARGET_REV == 0x4131)
43
// A1
44
#define MXC_TMR_REV 0
45
#define MXC_UART_REV 0
46
#else
47
48
#error TARGET_REV NOT SUPPORTED
49
50
#endif
/* if(TARGET_REV == ...) */
51
52
#endif
// LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32680_MXC_DEVICE_H_
Include
MAX32680
mxc_device.h
Generated on Fri Oct 25 2024 14:39:38 for MAX32680 Peripheral Driver API by
1.9.4