diff --git a/.citd/Jenkinsfilek8s b/.citd/Jenkinsfilek8s new file mode 100644 index 0000000..18891ca --- /dev/null +++ b/.citd/Jenkinsfilek8s @@ -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/avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab' + BITBUCKET_URL = 'https://bitbucket.microchip.com/scm/ebe/avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab.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}" +} \ No newline at end of file diff --git a/.citd/cloudprovider.yml b/.citd/cloudprovider.yml new file mode 100644 index 0000000..09bb4ca --- /dev/null +++ b/.citd/cloudprovider.yml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..30f4015 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Untracked files in MPLABX projects +/**/build/* +/**/nbproject/* +!/**/nbproject/*.xml +/**/dist/* +/**/.generated_files/* diff --git a/.main-meta/main.json b/.main-meta/main.json new file mode 100644 index 0000000..61c7c3b --- /dev/null +++ b/.main-meta/main.json @@ -0,0 +1,54 @@ +{ + "metaDataVersion": "1.0.0", + "category": "com.microchip.ide.project", + "content": { + "metaDataVersion": "1.3.0", + "name": "com.microchip.mcu8.mplabx.project.avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab", + "version": " ", + "displayName": "", + "projectName": "avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab", + "shortDescription": "This code example demonstrates usage of AVR128DB48 microcontroller for configuring external crystal as clock source in sleep. In this code example, external crystal as peripheral clock source in sleep is exemplified using Real-Time Counter (RTC).", + "ide": { + "name": "MPLAB X", + "semverRange": ">=6.0.0" + }, + "compiler": [ + { + "name": "XC8", + "semverRange": "^2.40.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": "AVR128DB48", + "versionRange": "*" + } + }, + "author": "Amey Panse", + "peripherals": [], + "keywords": [], + "additionalData": { + "longDescription": { + "metaDataVersion": "1.0.0", + "category": "com.microchip.portal.fileRef", + "content": { + "metaDataVersion": "1.0.0", + "fileName": "./README.md", + "mimeType": "text/markdown" + } + } + } + } +} \ No newline at end of file diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..9a0b262 --- /dev/null +++ b/LICENSE.txt @@ -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. + diff --git a/README.md b/README.md index e69de29..8ec0c76 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,45 @@ + + +[![MCHP](images/microchip.png)](https://www.microchip.com) + +# Update the title for avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab here + + + +## Related Documentation + + + +## Software Used + + + +- MPLAB® X IDE 6.0.0 or newer [(MPLAB® X IDE 6.0)](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=avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab-github) +- MPLAB® XC8 2.40.0 or newer compiler [(MPLAB® XC8 2.40)](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=avr128db48-using-crystal-osc-as-clock-for-rtc-in-sleep-mplab-github) + +## Hardware Used + + + +## Setup + + + +## Operation + + + +## Summary + + diff --git a/images/microchip.png b/images/microchip.png new file mode 100644 index 0000000..9bdf56c Binary files /dev/null and b/images/microchip.png differ