Digital Power Starter Kit 3 Firmware
dsPIC33C Boost Converter Voltage Mode Control Example
delay.h
1
2
/**********************************************************************
3
Copyright(c) 2018 Microchip Technology Inc. and its subsidiaries.
4
Subject to your compliance with these terms, you may use Microchip
5
software and any derivatives exclusively with Microchip products. It
6
is your responsibility to comply with third party license terms
7
applicable to your use of third-party software (including open source
8
software) that may accompany Microchip software.
9
THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
10
EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY
11
IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS
12
FOR A PARTICULAR PURPOSE.
13
IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL,
14
PUNITIVE, INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF
15
ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
16
MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
17
FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL
18
LIABILITY ON ALL CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT
19
EXCEED THE AMOUNT OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO
20
MICROCHIP FOR THIS SOFTWARE.
21
**********************************************************************/
22
23
// This is a guard condition so that contents of this file are not included
24
// more than once.
25
#ifndef _DELAY_H
26
#define _DELAY_H
27
28
/*Insert appropriate #include files*/
29
#include <xc.h>
30
#include <stdint.h>
31
//#include "clock.h"
32
33
#define _XTAL_FREQ 200000000UL
34
#define FCY _XTAL_FREQ/2
35
#ifdef __cplusplus // Provide C++ Compatability
36
extern
"C"
{
37
#endif
/* __cplusplus */
38
39
/*input for libpic30.h header file*/
40
/*source header file for delay functions*/
41
#include <libpic30.h>
42
43
#ifdef __cplusplus
44
}
45
#endif
/* __cplusplus */
46
47
#endif
/* DELAY_H */
48
dpsk_boost_vmc.X
sources
common
delay.h
© 2021, Microchip Technology Inc.