ECE4760 - Laser Projector (ipb7, jcc384, pfc38)
1
Raster Laser Projection
config.h
Go to the documentation of this file.
1
9
#ifndef CONFIG_H
10
#define CONFIG_H
11
12
#include "
include.h
"
13
//=============================================================
14
// 40 MHz
15
#pragma config FNOSC = FRCPLL, POSCMOD = OFF
16
#pragma config FPLLIDIV = DIV_2, FPLLMUL = MUL_20 //40 MHz
17
#pragma config FPBDIV = DIV_1, FPLLODIV = DIV_2 // PB 40 MHz
18
#pragma config FWDTEN = OFF, FSOSCEN = OFF, JTAGEN = OFF
19
20
//==============================================================
21
// Protothreads configure
22
23
// IF use_vref_debug IS defined, pin 25 is Vref output
24
//#define use_vref_debug
25
26
// IF use_uart_serial IS defined, pin 21 and pin 22 are used by the uart
27
//#define use_uart_serial
28
#ifdef use_uart_serial
29
#define BAUDRATE 9600 // must match PC terminal emulator setting
30
#endif
31
33
// set up clock parameters
34
// system cpu clock
35
#define sys_clock 40000000
36
37
// sys_clock/FPBDIV
38
#define pb_clock sys_clock // divide by one in this case
39
40
#endif
/* CONFIG_H */
41
include.h
Generated by
1.8.12