-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MPAE-15324: Updated MCC Version and metadata
- Loading branch information
1 parent
319cb61
commit 99bc7e1
Showing
31 changed files
with
1,329 additions
and
1,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 100 additions & 66 deletions
166
avr128db48-blink-sw-delay-mplab-mcc.X/avr128db48-blink-mplab-mcc.mc3
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,49 @@ | ||
/* | ||
Copyright (c) [2012-2020] Microchip Technology Inc. | ||
* MAIN Generated Driver File | ||
* | ||
* @file main.c | ||
* | ||
* @defgroup main MAIN | ||
* | ||
* @brief This is the generated driver implementation file for the MAIN driver. | ||
* | ||
* @version MAIN Driver Version 1.0.0 | ||
*/ | ||
|
||
All rights reserved. | ||
/* | ||
� [2022] Microchip Technology Inc. and its subsidiaries. | ||
You are permitted to use the accompanying software and its derivatives | ||
with Microchip products. See the Microchip license agreement accompanying | ||
this software, if any, for additional info regarding your rights and | ||
obligations. | ||
MICROCHIP SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT | ||
WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT | ||
LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT | ||
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP OR ITS | ||
LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT | ||
LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE | ||
THEORY FOR ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT | ||
LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, | ||
OR OTHER SIMILAR COSTS. | ||
To the fullest extend allowed by law, Microchip and its licensors | ||
liability will not exceed the amount of fees, if any, that you paid | ||
directly to Microchip to use this software. | ||
THIRD PARTY SOFTWARE: Notwithstanding anything to the contrary, any | ||
third party software accompanying this software is subject to the terms | ||
and conditions of the third party's license agreement. To the extent | ||
required by third party licenses covering such third party software, | ||
the terms of such license will apply in lieu of the terms provided in | ||
this notice or applicable license. To the extent the terms of such | ||
third party licenses prohibit any of the restrictions described here, | ||
such restrictions will not apply to such third party software. | ||
*/ | ||
Subject to your compliance with these terms, you may use Microchip | ||
software and any derivatives exclusively with Microchip products. | ||
You are 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. | ||
*/ | ||
#include "mcc_generated_files/system/system.h" | ||
#include "mcc_generated_files/timer/delay.h" | ||
|
||
/* | ||
Main application | ||
*/ | ||
*/ | ||
|
||
int main(void) | ||
{ | ||
SYSTEM_Initialize(); | ||
|
||
while(1) | ||
while (1) | ||
{ | ||
LED_PIN_Toggle(); | ||
DELAY_milliseconds(500); | ||
} | ||
LED_PIN_Toggle(); | ||
DELAY_milliseconds(500); | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
avr128db48-blink-sw-delay-mplab-mcc.X/mcc_generated_files/docs/delay.dox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 55 additions & 42 deletions
97
avr128db48-blink-sw-delay-mplab-mcc.X/mcc_generated_files/system/clock.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,69 @@ | ||
/** | ||
@Company | ||
Microchip Technology Inc. | ||
@Description | ||
This Source file provides APIs. | ||
Generation Information : | ||
Driver Version : 1.0.0 | ||
* CLKCTRL Generated Driver API Header File | ||
* | ||
* @file clkctrl.h | ||
* | ||
* @defgroup clkctrl CLKCTRL | ||
* | ||
* @brief This header file provides APIs for the CLKCTRL driver. | ||
* | ||
* @version CLKCTRL Driver Version 1.0.2 | ||
*/ | ||
/* | ||
Copyright (c) [2012-2020] Microchip Technology Inc. | ||
All rights reserved. | ||
You are permitted to use the accompanying software and its derivatives | ||
with Microchip products. See the Microchip license agreement accompanying | ||
this software, if any, for additional info regarding your rights and | ||
obligations. | ||
MICROCHIP SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT | ||
WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT | ||
LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT | ||
AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP OR ITS | ||
LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT | ||
LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE | ||
THEORY FOR ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT | ||
LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES, | ||
OR OTHER SIMILAR COSTS. | ||
To the fullest extend allowed by law, Microchip and its licensors | ||
liability will not exceed the amount of fees, if any, that you paid | ||
directly to Microchip to use this software. | ||
THIRD PARTY SOFTWARE: Notwithstanding anything to the contrary, any | ||
third party software accompanying this software is subject to the terms | ||
and conditions of the third party's license agreement. To the extent | ||
required by third party licenses covering such third party software, | ||
the terms of such license will apply in lieu of the terms provided in | ||
this notice or applicable license. To the extent the terms of such | ||
third party licenses prohibit any of the restrictions described here, | ||
such restrictions will not apply to such third party software. | ||
© [2022] 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 are 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. | ||
*/ | ||
|
||
|
||
#ifndef CLOCK_CONFIG_H | ||
#define CLOCK_CONFIG_H | ||
#ifndef CLOCK_H | ||
#define CLOCK_H | ||
|
||
#ifndef F_CPU | ||
#define F_CPU 4000000 | ||
#define F_CPU 4000000UL | ||
#endif | ||
|
||
#include "ccp.h" | ||
|
||
#define CLKCTRL_TIMEBASE_VALUE ((uint8_t)ceil(F_CPU * 0.000001)) | ||
|
||
/** | ||
* @ingroup clkctrl | ||
* @brief Initialize CLKCTRL module | ||
* @param none | ||
* @return none | ||
*/ | ||
void CLOCK_Initialize(void); | ||
|
||
#endif // CLOCK_CONFIG_H | ||
/** | ||
* @ingroup clkctrl | ||
* @brief Enable Clock Failure Detection on main clock | ||
* @param CLKCTRL_CFDSRC_t cfd_source - main clock source for CFD | ||
* @return none | ||
*/ | ||
void CFD_Enable(CLKCTRL_CFDSRC_t cfd_source); | ||
|
||
/** | ||
* @ingroup clkctrl | ||
* @brief Disable Clock Failure Detection on main clock | ||
* @param none | ||
* @return none | ||
*/ | ||
void CFD_Disable(); | ||
|
||
#endif // CLOCK_H |
Oops, something went wrong.