|  | Dual Active Bridge Development Board (Part-No. ) |
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 GPIO_1_SetHigh() (_LATC10 = 1)
54
62#define GPIO_1_SetLow() (_LATC10 = 0)
63
71#define GPIO_1_Toggle() (_LATC10 ^= 1)
72
79#define GPIO_1_GetValue() _RC10
80
87#define GPIO_1_SetDigitalInput() (_TRISC10 = 1)
88
95#define GPIO_1_SetDigitalOutput() (_TRISC10 = 0)
96
104#define GPIO_2_SetHigh() (_LATC11 = 1)
105
113#define GPIO_2_SetLow() (_LATC11 = 0)
114
122#define GPIO_2_Toggle() (_LATC11 ^= 1)
123
130#define GPIO_2_GetValue() _RC11
131
138#define GPIO_2_SetDigitalInput() (_TRISC11 = 1)
139
146#define GPIO_2_SetDigitalOutput() (_TRISC11 = 0)
147
155#define DPD_TP31_SetHigh() (_LATC14 = 1)
156
164#define DPD_TP31_SetLow() (_LATC14 = 0)
165
173#define DPD_TP31_Toggle() (_LATC14 ^= 1)
174
181#define DPD_TP31_GetValue() _RC14
182
189#define DPD_TP31_SetDigitalInput() (_TRISC14 = 1)
190
197#define DPD_TP31_SetDigitalOutput() (_TRISC14 = 0)
198
206#define IO_RD2_SetHigh() (_LATD2 = 1)
207
215#define IO_RD2_SetLow() (_LATD2 = 0)
216
224#define IO_RD2_Toggle() (_LATD2 ^= 1)
225
232#define IO_RD2_GetValue() _RD2
233
240#define IO_RD2_SetDigitalInput() (_TRISD2 = 1)
241
248#define IO_RD2_SetDigitalOutput() (_TRISD2 = 0)
249
257#define LED_GREEN_SetHigh() (_LATD7 = 1)
258
266#define LED_GREEN_SetLow() (_LATD7 = 0)
267
275#define LED_GREEN_Toggle() (_LATD7 ^= 1)
276
283#define LED_GREEN_GetValue() _RD7
284
291#define LED_GREEN_SetDigitalInput() (_TRISD7 = 1)
292
299#define LED_GREEN_SetDigitalOutput() (_TRISD7 = 0)
300
308#define LED_RED_SetHigh() (_LATD8 = 1)
309
317#define LED_RED_SetLow() (_LATD8 = 0)
318
326#define LED_RED_Toggle() (_LATD8 ^= 1)
327
334#define LED_RED_GetValue() _RD8
335
342#define LED_RED_SetDigitalInput() (_TRISD8 = 1)
343
350#define LED_RED_SetDigitalOutput() (_TRISD8 = 0)
351
359#define FAULT_SetHigh() (_LATD9 = 1)
360
368#define FAULT_SetLow() (_LATD9 = 0)
369
377#define FAULT_Toggle() (_LATD9 ^= 1)
378
385#define FAULT_GetValue() _RD9
386
393#define FAULT_SetDigitalInput() (_TRISD9 = 1)
394
401#define FAULT_SetDigitalOutput() (_TRISD9 = 0)
402
410#define TP_PIM_SetHigh() (_LATD12 = 1)
411
419#define TP_PIM_SetLow() (_LATD12 = 0)
420
428#define TP_PIM_Toggle() (_LATD12 ^= 1)
429
436#define TP_PIM_GetValue() _RD12
437
444#define TP_PIM_SetDigitalInput() (_TRISD12 = 1)
445
452#define TP_PIM_SetDigitalOutput() (_TRISD12 = 0)
453
461#define LED_DP_PIM_SetHigh() (_LATD15 = 1)
462
470#define LED_DP_PIM_SetLow() (_LATD15 = 0)
471
479#define LED_DP_PIM_Toggle() (_LATD15 ^= 1)
480
487#define LED_DP_PIM_GetValue() _RD15
488
495#define LED_DP_PIM_SetDigitalInput() (_TRISD15 = 1)
496
503#define LED_DP_PIM_SetDigitalOutput() (_TRISD15 = 0)
504
511void PINS_Initialize(void);
512
513
514
515#endif
PINS_Initialize
void PINS_Initialize(void)
Initializes the PINS module.
Definition pins.c:46