-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsystem.c
More file actions
28 lines (22 loc) · 795 Bytes
/
Copy pathsystem.c
File metadata and controls
28 lines (22 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/******************************************************************************/
/*Files to Include */
/******************************************************************************/
#if defined(__XC)
#include <xc.h> /* XC8 General Include File */
#elif defined(HI_TECH_C)
#include <htc.h> /* HiTech General Include File */
#endif
#include <stdint.h> /* For uint8_t definition */
#include <stdbool.h> /* For true/false definition */
#include "system.h"
/* Refer to the device datasheet for information about available
oscillator configurations. */
void ConfigureOscillator(void)
{
IRCF0 = 1; // FOSC = 16MHz
IRCF1 = 1;
IRCF2 = 1;
IRCF3 = 1;
//SCS0 = 1;
SCS1 = 1;
}