root/RF_BT_Tail/mcc_generated_files/mcc.c

Revision 244, 2.6 kB (checked in by phil, 4 years ago)

added initial Tail Source Package

Line 
1 /**
2   @Generated PIC10 / PIC12 / PIC16 / PIC18 MCUs Source File
3
4   @Company:
5     Microchip Technology Inc.
6
7   @File Name:
8     mcc.c
9
10   @Summary:
11     This is the mcc.c file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs
12
13   @Description:
14     This header file provides implementations for driver APIs for all modules selected in the GUI.
15     Generation Information :
16         Product Revision  :  PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.65.2
17         Device            :  PIC16F1579
18         Driver Version    :  2.00
19     The generated drivers are tested against the following:
20         Compiler          :  XC8 1.45 or later
21         MPLAB             :  MPLAB X 4.15
22 */
23
24 /*
25     (c) 2018 Microchip Technology Inc. and its subsidiaries.
26    
27     Subject to your compliance with these terms, you may use Microchip software and any
28     derivatives exclusively with Microchip products. It is your responsibility to comply with third party
29     license terms applicable to your use of third party software (including open source software) that
30     may accompany Microchip software.
31    
32     THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
33     EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY
34     IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS
35     FOR A PARTICULAR PURPOSE.
36    
37     IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
38     INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
39     WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP
40     HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO
41     THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL
42     CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT
43     OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS
44     SOFTWARE.
45 */
46
47 #include "mcc.h"
48
49
50 void SYSTEM_Initialize(void)
51 {
52
53     PIN_MANAGER_Initialize();
54     OSCILLATOR_Initialize();
55     WDT_Initialize();
56     DAC_Initialize();
57     PWM1_Initialize();
58     PWM2_Initialize();
59     CMP1_Initialize();
60     ADC1_Initialize();
61     PWM3_Initialize();
62     TMR1_Initialize();
63     TMR0_Initialize();
64     EUSART_Initialize();
65 }
66
67 void OSCILLATOR_Initialize(void)
68 {
69     // SCS FOSC; SPLLEN disabled; IRCF 8MHz_HF;
70     OSCCON = 0x70;
71     // TUN 0;
72     OSCTUNE = 0x00;
73     // SBOREN disabled; BORFS disabled;
74     BORCON = 0x00;
75 }
76
77 void WDT_Initialize(void)
78 {
79     // WDTPS 1:65536; SWDTEN OFF;
80     WDTCON = 0x16;
81 }
82
83 /**
84  End of File
85 */
Note: See TracBrowser for help on using the browser.