Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
delay.h
1
2
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_buck_vmc.X
sources
common
delay.h
© 2021, Microchip Technology Inc.