Skip to content

Commit 8b6fd0f

Browse files
Muhammad Aamir Sheikhareiter128
authored andcommitted
Pull request #4: Develop
Merge in MCU16CE/dspic33c-power-board-visualizer-v2-demo from develop to master * commit '0676256c9f91ea4a7a4a9d91006bd038d720d11b': added comments, cleaned up function prototypes recompile and added the updated hex file updated readme updated hex updated readme updated mcc UART driver. disabled mcc fetch prerelease this also sets the UART TX pin high on start generated all files again so that correct year is displayed updated gui project file added hex file in a folder updated readme updated readme.md semver fix in main.json triggering another build updated main.json minor changes in readme to retrigger build initial commit Initial commit
2 parents 0359f97 + 0676256 commit 8b6fd0f

Some content is hidden

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

99 files changed

+17780
-8
lines changed

.citd/Jenkinsfilek8s

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
/*
2+
Jenkins Shared Library:
3+
----------------------
4+
shared-library-mcu16ce - https://bitbucket.microchip.com/scm/citd/shared-library-mcu16ce.git
5+
shared-library-common - https://bitbucket.microchip.com/scm/citd/shared-library-common.git
6+
*/
7+
@Library(['shared-library-mcu16ce@master', 'shared-library-common@master']) _
8+
9+
pipeline {
10+
agent {
11+
kubernetes {
12+
inheritFrom 'dspic33c-power-board-visualizer-v2-demo-github-deployment'
13+
defaultContainer 'xc16-mplabx-sonar-fmpp-python'
14+
yamlFile '.citd/cloudprovider.yml'
15+
}
16+
}
17+
18+
environment {
19+
/*
20+
Common Information
21+
*/
22+
NOTIFICATION_EMAIL = '[email protected]'
23+
// GitHub production organization name
24+
GITHUB_PRODUCTION_ORGANIZATION = "microchip-pic-avr-examples"
25+
26+
/*
27+
GitHub Deploy Stage Information
28+
*/
29+
//This is the BitBucket source repo URL to be deployed
30+
BITBUCKET_SOURCE_URL = 'https://bitbucket.microchip.com/scm/mcu16ce/dspic33c-power-board-visualizer-v2-demo.git'
31+
//Files or folders to be excluded from deployment, if multiple files or folders use comma separator
32+
DEPLOY_EXCLUDE_FOLDER_FILE_LIST = 'mchp_private,.mchp_private,sandbox,.sandbox'
33+
//Branch(s) to be deployed, if multiple branches use comma separator. DEPLOY_BRANCH_LIST is the target branch of the PR.
34+
DEPLOY_BRANCH_LIST = "master"
35+
/*When using the main.json schema version 1.3.0 or higher, the PORTAL will first reject registration attempt when an unapproved keyword is found, but can be forced to accept.
36+
This argument is used to provide the list of unapproved keywords (also listed in main.json) which the deployment script will force the PORTAL to accept.*/
37+
UNAPPROVED_KEYWORDS_OVERRIDE_LIST="NONE"
38+
39+
/*
40+
GitHub Page Stage Information
41+
List of GitHub Page Options:
42+
----------------------------
43+
1. GITHUB_PAGES_NONE ( Branch: None, index file path: None )
44+
2. GITHUB_PAGES_MASTER_ROOT ( Branch: Master, index file path: /root )
45+
3. GITHUB_PAGES_MASTER_DOCS ( Branch: Master, index file path: /Docs )
46+
4. GITHUB_PAGES_DEVELOP_ROOT ( Branch: Develop, index file path: /root )
47+
5. GITHUB_PAGES_DEVELOP_DOCS ( Branch: Develop, index file path: /Docs )
48+
*/
49+
GITHUB_PAGES = 'GITHUB_PAGES_NONE'
50+
51+
/*
52+
Project Build Stage Information
53+
*/
54+
MPLABX_PROJECT_SOURCE = "../"
55+
}
56+
57+
triggers {
58+
cron(env.BRANCH_NAME == 'develop' ? 'H H 1 * *': '')
59+
}
60+
61+
options {
62+
timestamps()
63+
timeout(time: 30, unit: 'MINUTES')
64+
}
65+
66+
stages {
67+
stage('Checkout') {
68+
steps {
69+
checkout scm
70+
}
71+
}
72+
73+
stage('project config update') {
74+
steps {
75+
script {
76+
mplabxProjectConfigUpdate(
77+
sourceFilePath: "${env.MPLABX_PROJECT_SOURCE}"
78+
)
79+
}
80+
}
81+
}
82+
83+
stage('Build') {
84+
steps {
85+
script {
86+
mplabxProjectBuild(
87+
sourceFilePath: "${env.MPLABX_PROJECT_SOURCE}"
88+
)
89+
}
90+
}
91+
}
92+
93+
94+
//MisraCheck code analysis
95+
stage('MISRA Check') {
96+
steps {
97+
script {
98+
misraCheck(
99+
sourceProjectPath: "${env.MPLABX_PROJECT_SOURCE}"
100+
)
101+
}
102+
}
103+
}
104+
105+
// Validate main.json file
106+
stage('Validate main.json') {
107+
steps {
108+
script {
109+
validateMetaData(
110+
unapprovedKeywordsOverrideList: "${UNAPPROVED_KEYWORDS_OVERRIDE_LIST}"
111+
)
112+
}
113+
}
114+
}
115+
116+
stage('Doxygen files generation') {
117+
when {
118+
anyOf {
119+
allOf {
120+
not { changeRequest() }
121+
}
122+
}
123+
}
124+
steps {
125+
container('buildtools') {
126+
script {
127+
doxygen()
128+
}
129+
}
130+
}
131+
}
132+
133+
// GitHub repo creation
134+
stage('GitHub Repo Creation') {
135+
when {
136+
anyOf {
137+
allOf {
138+
not { changeRequest() }
139+
anyOf {branch 'master'; branch 'test_deploy';}
140+
}
141+
}
142+
}
143+
144+
steps {
145+
script {
146+
githubRepoCreate(
147+
githubOrgName: "${env.GITHUB_PRODUCTION_ORGANIZATION}",
148+
deployBranchList: "${DEPLOY_BRANCH_LIST}"
149+
)
150+
}
151+
}
152+
}
153+
154+
// Deploying the code to GitHub
155+
stage('GitHub Deploy Source') {
156+
when {
157+
anyOf {
158+
allOf {
159+
not { changeRequest() }
160+
anyOf {branch 'master'; branch 'test_deploy';}
161+
}
162+
}
163+
}
164+
165+
steps {
166+
script {
167+
githubDeploySource(
168+
bitbucketUrl: "${env.BITBUCKET_SOURCE_URL}",
169+
deployBranchList: "${env.DEPLOY_BRANCH_LIST}",
170+
deployExcludeFileList: "${env.DEPLOY_EXCLUDE_FOLDER_FILE_LIST}",
171+
githubOrgName: "${env.GITHUB_PRODUCTION_ORGANIZATION}"
172+
)
173+
}
174+
}
175+
}
176+
177+
// Creating GitHub release
178+
stage('GitHub release') {
179+
when {
180+
anyOf {
181+
allOf {
182+
not { changeRequest() }
183+
anyOf {branch 'master'; branch 'test_deploy';}
184+
}
185+
}
186+
}
187+
188+
steps {
189+
script {
190+
githubReleaseCreate(
191+
githubOrgName: "${env.GITHUB_PRODUCTION_ORGANIZATION}",
192+
deployBranchList: "${DEPLOY_BRANCH_LIST}"
193+
)
194+
}
195+
}
196+
}
197+
198+
// Creating GitHub Page
199+
stage('GitHub Page Create') {
200+
when {
201+
anyOf {
202+
allOf {
203+
not { changeRequest() }
204+
anyOf {branch 'master';}
205+
}
206+
}
207+
}
208+
209+
steps {
210+
script {
211+
githubPageCreate(
212+
githubPage: "${env.GITHUB_PAGES}",
213+
githubOrgName: "${env.GITHUB_PRODUCTION_ORGANIZATION}"
214+
)
215+
}
216+
}
217+
}
218+
219+
//Deploying the Github content to portal
220+
stage('Portal-Deploy') {
221+
when {
222+
allOf {
223+
not { changeRequest() }
224+
anyOf {branch 'master';}
225+
}
226+
}
227+
steps {
228+
script {
229+
portalDeploy(
230+
githubOrgName: "${env.GITHUB_PRODUCTION_ORGANIZATION}",
231+
unapprovedKeywordsOverrideList: "${UNAPPROVED_KEYWORDS_OVERRIDE_LIST}"
232+
)
233+
}
234+
}
235+
}
236+
}
237+
238+
post {
239+
success{
240+
script {
241+
sendMail(
242+
mailId: "${env.NOTIFICATION_EMAIL}",
243+
subject: "Successful Pipeline: ${currentBuild.fullDisplayName}",
244+
body: "Something is right with ${env.BUILD_URL}"
245+
)
246+
}
247+
}
248+
failure {
249+
script {
250+
sendMail(
251+
mailId: "${env.NOTIFICATION_EMAIL}",
252+
subject: "Failure Pipeline: ${currentBuild.fullDisplayName}",
253+
body: "Something is right with ${env.BUILD_URL}"
254+
)
255+
}
256+
}
257+
}
258+
}

.citd/cloudprovider.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: xc16-mplabx-sonar-fmpp-python
5+
spec:
6+
containers:
7+
- name: xc16-mplabx-sonar-fmpp-python
8+
image: artifacts.microchip.com:7999/microchip/citd/bundles/xc16-mplabx-sonar-fmpp-python-yarn-node:latest
9+
imagePullPolicy: Always
10+
command: ['cat']
11+
tty: true
12+
resources:
13+
requests:
14+
cpu: 500m
15+
memory: 1500Mi
16+
limits:
17+
cpu: 1
18+
memory: 2Gi
19+
- name: buildtools
20+
image: artifacts.microchip.com:7999/microchip/buildtools/doxygen:1.8.15-r0
21+
imagePullPolicy: Always
22+
command: ['cat']
23+
tty: true
24+
resources:
25+
requests:
26+
cpu: 500m
27+
memory: 750Mi
28+
limits:
29+
cpu: 1
30+
memory: 1Gi

.gitignore

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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
14+
#docs/
15+
16+
# Excluding any executables
17+
*.exe
18+
19+
#Excluding Files/Folders Auto-Generated by Test Harness
20+
.generated_files/
21+
22+
# Excluding Netbeans specific build directories and file types
23+
~*.*
24+
.generated_files/
25+
nbproject/build/
26+
nbproject/dist/
27+
nbproject/private/
28+
nbproject/disassembly/
29+
build/
30+
dist/
31+
private/
32+
disassembly/
33+
*.zip
34+
!code-templates.zip
35+
*.mk
36+
*.bash
37+
*.dump
38+
Makefile-genesis.properties
39+
40+
# Excluding MPLAB X® Trace files
41+
*.log
42+
*.inx
43+
44+
# KDE specific
45+
.directory
46+
47+
# Misc
48+
.svn
49+
*.bak
50+
*.doc
51+
*.docx
52+
53+
54+

.main-meta/main.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"metaDataVersion":"1.0.0",
3+
"category":"com.microchip.ide.project",
4+
"content":{
5+
"metaDataVersion":"1.3.0",
6+
"name":"com.microchip.mplabx.project.dspic33c-power-board-visualizer-v2-demo",
7+
"version":"1.0.0",
8+
"displayName":"pbv-V2-demo",
9+
"projectName":"dspic33c-power-board-visualizer-v2-demo",
10+
"shortDescription":"dspic33c-power-board-visualizer-v2-demo",
11+
"ide":{
12+
"name":"MPLABX",
13+
"semverRange":">=6.15.0"
14+
},
15+
"compiler":{
16+
"name":"XC16",
17+
"semverRange":"^3.0.0"
18+
},
19+
"dfp":{
20+
"name":"dsPIC33CK-MP_DFP",
21+
"semverRange":">=1.13.366"
22+
},
23+
"configurator": {
24+
"name": "MCC",
25+
"semverRange": ">=5.6.1"
26+
},
27+
"device":{
28+
"metaDataVersion":"1.0.0",
29+
"category":"com.microchip.portal.contentRef",
30+
"content":{
31+
"metaDataVersion":"1.0.0",
32+
"category":"com.microchip.device",
33+
"name":"dsPIC33CK256MP506",
34+
"versionRange":"*"
35+
}
36+
},
37+
"keywords":[
38+
"GPIO",
39+
"UART"
40+
]
41+
}
42+
}

LICENSE.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
© [2024] Microchip Technology Inc. and its subsidiaries
2+
3+
Subject to your compliance with these terms, you may use this Microchip software and any derivatives exclusively with Microchip products. You are responsible
4+
for complying with third party license terms applicable to your use of third party software (including open source software) that may accompany this Microchip
5+
software. SOFTWARE IS “AS IS.” NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
6+
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL LOSS,
7+
DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
8+
FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP’S TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT EXCEED AMOUNT OF FEES, IF ANY, YOU
9+
PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.

0 commit comments

Comments
 (0)