3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
Content
Loading...
Searching...
No Matches
pins.h
1
18
/*
19
© [2024] Microchip Technology Inc. and its subsidiaries.
20
21
Subject to your compliance with these terms, you may use Microchip
22
software and any derivatives exclusively with Microchip products.
23
You are responsible for complying with 3rd party license terms
24
applicable to your use of 3rd party software (including open source
25
software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
26
NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
27
SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
28
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
29
WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
30
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
31
KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
32
MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
33
FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
34
TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
35
EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
36
THIS SOFTWARE.
37
*/
38
39
#ifndef PINS_H
40
#define PINS_H
41
// Section: Includes
42
#include <xc.h>
43
44
// Section: Device Pin Macros
45
53
#define PIM_TP4_SetHigh() (_LATD13 = 1)
54
62
#define PIM_TP4_SetLow() (_LATD13 = 0)
63
71
#define PIM_TP4_Toggle() (_LATD13 ^= 1)
72
79
#define PIM_TP4_GetValue() _RD13
80
87
#define PIM_TP4_SetDigitalInput() (_TRISD13 = 1)
88
95
#define PIM_TP4_SetDigitalOutput() (_TRISD13 = 0)
96
104
#define LD2_RD15_SetHigh() (_LATD15 = 1)
105
113
#define LD2_RD15_SetLow() (_LATD15 = 0)
114
122
#define LD2_RD15_Toggle() (_LATD15 ^= 1)
123
130
#define LD2_RD15_GetValue() _RD15
131
138
#define LD2_RD15_SetDigitalInput() (_TRISD15 = 1)
139
146
#define LD2_RD15_SetDigitalOutput() (_TRISD15 = 0)
147
154
void
PINS_Initialize
(
void
);
155
156
157
158
#endif
PINS_Initialize
void PINS_Initialize(void)
Initializes the PINS module.
Definition
pins.c:46
© Copyright 1998-2022 Microchip Technology Inc. All rights reserved.