Skip to content

Commit 7a5f891

Browse files
committed
Added Power Supply task files to project directory (not migrated to 32-bit yet)
1 parent fd0b54c commit 7a5f891

File tree

81 files changed

+21679
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+21679
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# .gitignore file
2+
#
3+
# Set up for Microchip/MPLAB X® development
4+
#
5+
# Default gitignore files for code examples, only removing/ignoring usual MPLAB X® clutter
6+
7+
# Excluding object files
8+
*.o
9+
*.ko
10+
*.obj
11+
*.elf
12+
13+
# Excluding documentation output directories and file types
14+
docs/
15+
*.mp4
16+
17+
# Excluding archive and backup directories
18+
.archive/
19+
.backup/
20+
.bak/
21+
22+
# Excluding documentation input directories
23+
#_dox/
24+
#_dox/images/
25+
26+
# Excluding test output directories
27+
test/
28+
29+
# Excluding SiMetrix/Simplis temporary simulation directories
30+
SIMPLIS_Data/
31+
TMP/
32+
33+
# Excluding any executables
34+
*.exe
35+
36+
#Excluding Files/Folders Auto-Generated by Test Harness
37+
.generated_files/
38+
39+
# Excluding Netbeans specific build directories and file types
40+
~*.*
41+
.generated_files/
42+
nbproject/build/
43+
nbproject/dist/
44+
nbproject/private/
45+
nbproject/disassembly/
46+
build/
47+
dist/
48+
private/
49+
disassembly/
50+
*.zip
51+
!code-templates.zip
52+
*.mk
53+
*.bash
54+
*.dump
55+
Makefile-genesis.properties
56+
57+
# Excluding MPLAB X® Trace files
58+
*.log
59+
*.inx
60+
61+
# VisualStudio Code specific
62+
buildLog/
63+
64+
# KDE specific
65+
.directory
66+
67+
# Misc
68+
.svn
69+
*.bak
70+
71+
72+

dpsk4-vmc.X/sources/apps/power_control/README.md

Lines changed: 761 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*----------------------------------------------------------------------------*/
2+
/* TASK LAYER: Power Control Application Layer Documentation */
3+
/*----------------------------------------------------------------------------*/
4+
/**
5+
@defgroup app-layer-power-control Power Control Application Layer
6+
@brief Power Control Application Layer
7+
@ingroup apps-layer-pcontrol
8+
@details Contain functions and properties of the Power Control Application layer
9+
*/
10+
11+
/*----------------------------------------------------------------------------*/
12+
/* Public Functions and Public Properties */
13+
/*----------------------------------------------------------------------------*/
14+
/**
15+
@defgroup app-layer-power-control-functions-public Public Functions
16+
@ingroup app-layer-power-control
17+
@brief Public functions of the Power Control Application layer
18+
@details This is the detailed description of public functions of the Power Control Application layer.
19+
*/
20+
21+
/**
22+
@defgroup app-layer-power-control-functions-interrupts Interrupt Functions
23+
@ingroup app-layer-power-control-functions-public
24+
@brief Interrupt public functions of Power Control Application layer
25+
@details This is the detailed description of Interrupt public functions of the Power Control Application layer.
26+
*/
27+
28+
/**
29+
@defgroup app-layer-power-control-properties-public Public Properties
30+
@ingroup app-layer-power-control
31+
@brief Public properties of the Power Control Application layer
32+
@details This is the detailed description of public variables, data types and
33+
enumerations, and defines and macros of the Power Control Application layer.
34+
*/
35+
36+
/**
37+
38+
@defgroup app-layer-power-control-properties-public-variables Variables
39+
@ingroup app-layer-power-control-properties-public
40+
@brief Public variables of the Power Control Application layer
41+
@details This chapter provides detailed information about the public variables
42+
provided by the Power Control Application layer.
43+
44+
@defgroup app-layer-power-control-properties-public-data-types Data Types
45+
@ingroup app-layer-power-control-properties-public
46+
@brief Public data types of the Power Control Application layer
47+
@note The Power Control Application layer does not have public data types.
48+
49+
@defgroup app-layer-power-control-properties-public-defines Defines and Macros
50+
@ingroup app-layer-power-control-properties-public
51+
@brief Public defines and macros of the Power Control application layer
52+
@note The Power Control Application layer does not have public defines and macros.
53+
54+
*/
55+
56+
/*----------------------------------------------------------------------------*/
57+
/* Private Functions and Private Properties */
58+
/*----------------------------------------------------------------------------*/
59+
/**
60+
@cond HIDE_THIS
61+
@defgroup app-layer-power-control-functions-private Private Functions
62+
@ingroup app-layer-power-control
63+
@brief Private functions of the Power Control Application layer
64+
@details This is the detailed description of private functions of the Power Control Application layer.
65+
@note This task doesn't have any private functions.
66+
*/
67+
68+
/**
69+
@defgroup app-layer-power-control-properties-private Private Properties
70+
@ingroup app-layer-power-control
71+
@brief Private properties of the Power Control application layer
72+
@details This is the detailed description of private variables, data types and
73+
enumerations, and defines and macros of the Power Control Application layer.
74+
@note This task doesn't have any private properties.
75+
@endcond
76+
*/
218 KB
Loading
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
2+
digraph pconfig {
3+
4+
// Name Label and Format
5+
compound=true;
6+
fontname="Consolas, 'Courier New', Courier, Sans-Serif";
7+
fontsize=11;
8+
rankdir=TB;
9+
ranksep=0.5;
10+
nodesep=0.3;
11+
splines = ortho;
12+
13+
// Application Layer
14+
{
15+
16+
label="Application Layer Initialization"
17+
color=grey;
18+
rank = same;
19+
20+
node [
21+
shape=box, style=filled, fontcolor=black, fillcolor=darkseagreen1,
22+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
23+
fontsize=11,
24+
width = 2.8
25+
];
26+
27+
converter_object_init[label="Converter Object\nInitialization", fillcolor=white];
28+
controller_init[label="Control Loop\nInitialization", fillcolor=white];
29+
peripheral_init[label="Peripheral Initialization"];
30+
custom_init[label="Custom Peripehral\nConfiguration", fillcolor=white];
31+
32+
converter_object_init -> controller_init -> peripheral_init -> custom_init;
33+
}
34+
35+
// Power Converter Device Driver
36+
subgraph cluster1
37+
{
38+
label="Power Converter Device Driver";
39+
color=grey;
40+
41+
node [
42+
shape=box,
43+
style=filled,
44+
fontcolor=black,
45+
fillcolor=lightcyan,
46+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
47+
fontsize=11,
48+
width = 1.2
49+
]; pwm_template; adc_template; gpio_template;
50+
51+
pwm_template[label="PWM\nTemplate"];
52+
adc_template[label="ADC\nTemplate"];
53+
gpio_template[label="GPIO\nTemplate"];
54+
55+
node [
56+
shape=box,
57+
style=filled,
58+
fillcolor=papayawhip,
59+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
60+
fontsize=11,
61+
width=1.2
62+
]; swnode_config; feedback_config; gpio_config;
63+
64+
swnode_config[label="Switch\nNode"];
65+
feedback_config[label="Feedback"];
66+
gpio_config[label="GPIO"];
67+
68+
node [
69+
shape=box,
70+
style=filled,
71+
fillcolor=white,
72+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
73+
fontsize=11,
74+
width=2.4
75+
]; merge1; merge2; merge3;
76+
77+
merge1[label="merge settings"];
78+
merge2[label="merge settings"];
79+
merge3[label="merge settings"];
80+
81+
node [
82+
shape=box,
83+
style=filled,
84+
fontcolor=black,
85+
fillcolor=darkgoldenrod1,
86+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
87+
fontsize=11,
88+
width = 2.4
89+
]; pwm_drv; adc_drv; gpio_drv;
90+
91+
adc_drv[label="ADC\nDriver"];
92+
gpio_drv[label="GPIO\nDriver"];
93+
pwm_drv[label="PWM\nDriver"];
94+
95+
}
96+
97+
// SFR Abstraction Layer
98+
subgraph cluster2
99+
{
100+
label="Register Abstraction Layer";
101+
color=grey;
102+
rank = same;
103+
104+
node [
105+
shape=box,
106+
style=filled,
107+
fontcolor=black,
108+
fillcolor=grey,
109+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
110+
fontsize=11,
111+
width = 2.4
112+
]; p33c_pral_pwm; p33c_pral_adc; p33c_pral_gpio;
113+
114+
p33c_pral_pwm[label="dsPIC33C MP PWM\nRegister Abstraction Layer"];
115+
p33c_pral_adc[label="dsPIC33C MP ADC\nRegister Abstraction Layer"];
116+
p33c_pral_gpio[label="dsPIC33C GPIO\nRegister Abstraction Layer"];
117+
}
118+
119+
// Silicon Layer
120+
subgraph cluster3
121+
{
122+
label="dsPIC33C MP Peripheral Special Function Registers";
123+
color=grey;
124+
node [
125+
shape=record,
126+
style=filled,
127+
fontcolor=black,
128+
fillcolor=lightcyan,
129+
fontname="Consolas, 'Courier New', Courier, Sans-Serif",
130+
fontsize=10,
131+
width = 2.4
132+
]; device_sfr_pwm; device_sfr_adc; device_sfr_gpio;
133+
134+
device_sfr_pwm[label="<f0> PWM1 | <f1> PWM2 | <f2> PWM3 | <f3> PWM4 | <f4> (...)"];
135+
device_sfr_adc[label="<f0> AN1 | <f1> AN2 | <f2> AN2 | <f3> (...) | <f4> ANn"];
136+
device_sfr_gpio[label="<f0> RAy | <f1> RBy | <f2> RCy | <f3> (...) | <f4> Rny"];
137+
}
138+
139+
// Network Description PWM Configuration
140+
peripheral_init -> swnode_config;
141+
swnode_config -> merge3;
142+
pwm_template -> merge3;
143+
merge3 -> pwm_drv;
144+
pwm_drv -> p33c_pral_pwm;
145+
p33c_pral_pwm -> device_sfr_pwm;
146+
147+
148+
// Network Description ADC Configuration
149+
peripheral_init -> feedback_config;
150+
feedback_config -> merge2;
151+
adc_template -> merge2;
152+
merge2 -> adc_drv;
153+
adc_drv -> p33c_pral_adc;
154+
p33c_pral_adc -> device_sfr_adc;
155+
156+
// Network Description GPIO Configuration
157+
peripheral_init -> gpio_config;
158+
gpio_config -> merge1;
159+
gpio_template -> merge1;
160+
merge1 -> gpio_drv;
161+
gpio_drv -> p33c_pral_gpio;
162+
p33c_pral_gpio -> device_sfr_gpio;
163+
164+
// Custom modifications are added after successful peripheral configuration
165+
custom_init -> p33c_pral_pwm;
166+
167+
}
168+
169+
170+
/*
171+
[arrowhead=normal, style=solid, color=darkgrey];
172+
*/
73.6 KB
Loading

0 commit comments

Comments
 (0)