1 /**
2  * \file
3  *
4  * \brief Missing Toolchain Definition for UC3 L3 and UC3 L4 header files
5  *
6  * Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
7  *
8  * \asf_license_start
9  *
10  * \page License
11  *
12  * Subject to your compliance with these terms, you may use Microchip
13  * software and any derivatives exclusively with Microchip products.
14  * It is your responsibility to comply with third party license terms applicable
15  * to your use of third party software (including open source software) that
16  * may accompany Microchip software.
17  *
18  * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES,
19  * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE,
20  * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY,
21  * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE
22  * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL
23  * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE
24  * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE
25  * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE.  TO THE FULLEST EXTENT
26  * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY
27  * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
28  * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
29  *
30  * \asf_license_stop
31  *
32  */
33 /*
34  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35  */
36 
37 #ifndef _UCL3_L4_DEFINES_FIX_
38 #define _UCL3_L4_DEFINES_FIX_
39 
40 #include <parts.h>
41 
42 #if (UC3L3_L4)
43 
44 //  These defines are missing from or wrong in the toolchain header file ip_xxx.h or part.h
45 #ifndef AVR32_PM_CPU_MAX_FREQ
46 #define AVR32_PM_CPU_MAX_FREQ              50000000
47 #else
48 #warning "Duplicate define(s) to remove from the ASF"
49 #endif // AVR32_PM_CPU_MAX_FREQ
50 
51 #ifndef AVR32_PM_HSB_MAX_FREQ
52 #define AVR32_PM_HSB_MAX_FREQ              50000000
53 #else
54 #warning "Duplicate define(s) to remove from the ASF"
55 #endif // AVR32_PM_HSB_MAX_FREQ
56 
57 #ifndef AVR32_PM_PBA_MAX_FREQ
58 #define AVR32_PM_PBA_MAX_FREQ              50000000
59 #else
60 #warning "Duplicate define(s) to remove from the ASF"
61 #endif // AVR32_PM_PBA_MAX_FREQ
62 
63 #ifndef AVR32_PM_PBB_MAX_FREQ
64 #define AVR32_PM_PBB_MAX_FREQ              50000000
65 #else
66 #warning "Duplicate define(s) to remove from the ASF"
67 #endif  // AVR32_PM_PBB_MAX_FREQ
68 
69 #ifndef AVR32_PM_MCSEL_SLOW
70 #define AVR32_PM_MCSEL_SLOW 0
71 #else
72 #warning "Duplicate define(s) to remove from the ASF"
73 #endif // AVR32_PM_MCSEL_SLOW
74 
75 #ifndef AVR32_PM_MCSEL_OSC0
76 #define AVR32_PM_MCSEL_OSC0 1
77 #else
78 #warning "Duplicate define(s) to remove from the ASF"
79 #endif  // AVR32_PM_MCSEL_OSC0
80 
81 #ifndef AVR32_PM_MCSEL_DFLL0
82 #define AVR32_PM_MCSEL_DFLL0 2
83 #else
84 #warning "Duplicate define(s) to remove from the ASF"
85 #endif  // AVR32_PM_MCSEL_DFLL0
86 
87 #ifndef AVR32_PM_MCSEL_RC120M
88 #define AVR32_PM_MCSEL_RC120M 3
89 #else
90 #warning "Duplicate define(s) to remove from the ASF"
91 #endif  // AVR32_PM_MCSEL_RC120M
92 
93 #ifndef AVR32_PM_MCSEL_PLL0
94 #define AVR32_PM_MCSEL_PLL0 5
95 #else
96 #warning "Duplicate define(s) to remove from the ASF"
97 #endif // AVR32_PM_MCSEL_PLL0
98 
99 #ifndef AVR32_CORE_COMPARE_IRQ
100 #define AVR32_CORE_COMPARE_IRQ 0
101 #else
102 #warning "Duplicate define(s) to remove from the ASF"
103 #endif // AVR32_CORE_COMPARE_IRQ
104 
105 #endif // end UC3L3_L4
106 
107 #endif // _UCL3_L4_DEFINES_FIX
108