Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
system.h
1
/* Microchip Technology Inc. and its subsidiaries. You may use this software
2
* and any derivatives exclusively with Microchip products.
3
*
4
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
5
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
6
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
7
* PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
8
* WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
9
*
10
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
11
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
12
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
13
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
14
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS
15
* IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF
16
* ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
17
*
18
* MICROCHIP PROVIDES THIS SOFTWARE CONDITIONALLY UPON YOUR ACCEPTANCE OF THESE
19
* TERMS.
20
*/
21
22
/*
23
* File: system_initialize.h
24
* Author: M91406
25
* Comments: Combines the fundamental MCU and peripheral initialization routines
26
* Revision history:
27
* 1.0 initial release
28
*/
29
30
// This is a guard condition so that contents of this file are not included
31
// more than once.
32
#ifndef APPLICAITON_SYSTEM_INITIALIZE_H
33
#define APPLICAITON_SYSTEM_INITIALIZE_H
34
35
#include <xc.h>
// include processor files - each processor file is guarded.
36
37
/* INCLUDE DEFAULT SYSTEM COMPONENT INITIALIZATION MODULES */
38
39
#include "config/init/init_fosc.h"
40
#include "config/init/init_dsp.h"
41
#include "config/init/init_timer1.h"
42
#include "config/init/init_gpio.h"
43
44
/* INCLUDE USER SPECIAL FUNCTION COMPONENT INITIALIZATION MODULES */
45
46
#include "config/init/init_dac.h"
47
#include "config/init/init_opa.h"
48
49
/* PUCLIC FUNCTION CALL PROTOTYPES */
50
51
extern
volatile
uint16_t
SYSTEM_Initialize
(
void
);
52
extern
volatile
uint16_t
sysUserTasks_Initialize
(
void
);
53
extern
volatile
uint16_t
sysUserPeriperhals_Initialize
(
void
);
54
55
#endif
/* APPLICAITON_SYSTEM_INITIALIZE_H */
56
sysUserTasks_Initialize
volatile uint16_t sysUserTasks_Initialize(void)
Initializes the user-defined tasks.
Definition:
system.c:102
SYSTEM_Initialize
volatile uint16_t SYSTEM_Initialize(void)
Initializes essential chip resources.
Definition:
system.c:28
sysUserPeriperhals_Initialize
volatile uint16_t sysUserPeriperhals_Initialize(void)
Initializes the user-defined chip resources.
Definition:
system.c:57
dpsk_buck_vmc.X
sources
config
system.h
© 2021, Microchip Technology Inc.