MPAE-14424 added CI support and readme

master
Adith Kumar Urs 2022-05-20 09:31:21 +00:00
rodzic 203bf5c5de
commit 8407d1bb84
7 zmienionych plików z 203 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,60 @@
// Jenkinsfile v2.0.0
pipeline {
agent {
kubernetes {
defaultContainer 'xc8-mplabx'
yamlFile '.citd/cloudprovider.yml'
}
}
parameters {
string( name: 'NOTIFICATION_EMAIL',
defaultValue: 'PICAVR_Examples_GateKeepers@microchip.com',
description: "Email to send build failure and fixed notifications.")
}
environment {
GITHUB_OWNER = 'microchip-pic-avr-examples'
GITHUB_URL ='https://github.com/microchip-pic-avr-examples/avr64ea48-temperature-calibration'
BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/avr64ea48-temperature-calibration.git'
SEMVER_REGEX = '^(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+\\.(0|[1-9]\\d*)+$'
ARTIFACTORY_SERVER = 'https://artifacts.microchip.com:7999/artifactory'
}
options {
timestamps()
timeout(time: 30, unit: 'MINUTES')
}
stages {
stage('setup') {
steps {
script {
execute("git clone https://bitbucket.microchip.com/scm/citd/mpae-buildpipeline-groovy-scripts.git")
def buildPipeline = load ('mpae-buildpipeline-groovy-scripts/xc8mplabx-buildpipeline.groovy')
buildPipeline.runStages()
}
}
}
}
post {
failure {
script {
sendPipelineFailureEmail()
}
}
}
}
def execute(String cmd) {
if(isUnix()) {
sh cmd
} else {
bat cmd
}
}
def sendPipelineFailureEmail() {
mail to: "${env.EMAILLIST},${params.NOTIFICATION_EMAIL}",
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Pipeline failure. ${env.BUILD_URL}"
}

Wyświetl plik

@ -0,0 +1,18 @@
apiVersion: v1
kind: Pod
metadata:
name: xc8-mplabx
spec:
containers:
- name: xc8-mplabx
image: artifacts.microchip.com:7999/microchip/citd/bundles/xc8-mplabx:latest
imagePullPolicy: Always
command: ['cat']
tty: true
resources:
requests:
cpu: 0.25
memory: 500Mi
limits:
cpu: 0.5
memory: 750Mi

6
.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1,6 @@
# Untracked files in MPLABX projects
/**/build/*
/**/nbproject/*
!/**/nbproject/*.xml
/**/dist/*
/**/.generated_files/*

Wyświetl plik

@ -0,0 +1,54 @@
{
"metaDataVersion": "1.0.0",
"category": "com.microchip.ide.project",
"content": {
"metaDataVersion": "1.3.0",
"name": "com.microchip.mcu8.mplabx.project.avr64ea48-temperature-calibration",
"version": " ",
"displayName": "",
"projectName": "avr64ea48-temperature-calibration",
"shortDescription": "Demo of how to calibrate the internal temperature sensor",
"ide": {
"name": "MPLAB X",
"semverRange": ">=5.50.0"
},
"compiler": [
{
"name": "XC8",
"semverRange": "^2.29.0"
}
],
"dfp": {
"name": "",
"semverRange": ""
},
"configurator": {
"name": "",
"semverRange": ""
},
"device": {
"metaDataVersion": "1.0.0",
"category": "com.microchip.portal.contentRef",
"content": {
"metaDataVersion": "1.0.0",
"category": "com.microchip.device",
"name": "AVR64EA48",
"versionRange": "*"
}
},
"author": "Prasad Aradhya",
"peripherals": [],
"keywords": [],
"additionalData": {
"longDescription": {
"metaDataVersion": "1.0.0",
"category": "com.microchip.portal.fileRef",
"content": {
"metaDataVersion": "1.0.0",
"fileName": "./README.md",
"mimeType": "text/markdown"
}
}
}
}
}

20
LICENSE.txt 100644
Wyświetl plik

@ -0,0 +1,20 @@
(c) 2020 Microchip Technology Inc. and its subsidiaries.
Subject to your compliance with these terms, you may use Microchip software
and any derivatives exclusively with Microchip products. You're responsible
for complying with 3rd party license terms applicable to your use of 3rd
party software (including open source software) that may accompany Microchip
software.
SOFTWARE IS "AS IS." NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY,
APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
INCIDENTAL OR CONSEQUENTIAL LOSS, 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 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 PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.

Wyświetl plik

@ -0,0 +1,45 @@
<!-- Please do not change this logo with link -->
[![MCHP](images/microchip.png)](https://www.microchip.com)
# Update the title for avr64ea48-temperature-calibration here
<!-- This is where the introduction to the example goes, including mentioning the peripherals used -->
## Related Documentation
<!-- Any information about an application note or tech brief can be linked here. Use unbreakable links!
In addition a link to the device family landing page and relevant peripheral pages as well:
- [AN3381 - Brushless DC Fan Speed Control Using Temperature Input and Tachometer Feedback](https://microchip.com/00003381/)
- [PIC18F-Q10 Family Product Page](https://www.microchip.com/design-centers/8-bit/pic-mcus/device-selection/pic18f-q10-product-family) -->
## Software Used
<!-- All software used in this example must be listed here. Use unbreakable links!
- MPLAB® X IDE 5.30 or newer [(microchip.com/mplab/mplab-x-ide)](http://www.microchip.com/mplab/mplab-x-ide)
- MPLAB® XC8 2.10 or a newer compiler [(microchip.com/mplab/compilers)](http://www.microchip.com/mplab/compilers)
- MPLAB® Code Configurator (MCC) 3.95.0 or newer [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
- MPLAB® Code Configurator (MCC) Device Libraries PIC10 / PIC12 / PIC16 / PIC18 MCUs [(microchip.com/mplab/mplab-code-configurator)](https://www.microchip.com/mplab/mplab-code-configurator)
- Microchip PIC18F-Q Series Device Support (1.4.109) or newer [(packs.download.microchip.com/)](https://packs.download.microchip.com/) -->
- MPLAB® X IDE 5.50.0 or newer [(MPLAB® X IDE 5.50)](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-x-ide?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_MMTCha_MPAE_Examples&utm_content=avr64ea48-temperature-calibration-github)
- MPLAB® XC8 2.29.0 or newer compiler [(MPLAB® XC8 2.29)](https://www.microchip.com/en-us/development-tools-tools-and-software/mplab-xc-compilers?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_MMTCha_MPAE_Examples&utm_content=avr64ea48-temperature-calibration-github)
## Hardware Used
<!-- All hardware used in this example must be listed here. Use unbreakable links!
- PIC18F47Q10 Curiosity Nano [(DM182029)](https://www.microchip.com/Developmenttools/ProductDetails/DM182029)
- Curiosity Nano Base for Click boards™ [(AC164162)](https://www.microchip.com/Developmenttools/ProductDetails/AC164162)
- POT Click board™ [(MIKROE-3402)](https://www.mikroe.com/pot-click) -->
## Setup
<!-- Explain how to connect hardware and set up software. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
## Operation
<!-- Explain how to operate the example. Depending on complexity, step-by-step instructions and/or tables and/or images can be used -->
## Summary
<!-- Summarize what the example has shown -->

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 5.5 KiB