-
Notifications
You must be signed in to change notification settings - Fork 1
/
bsp_config.h
47 lines (31 loc) · 909 Bytes
/
bsp_config.h
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* File: bsp_config.h
* Author: diego.tsutsumi
*
* Created on 22th October 2014, 10:14
*/
#ifndef _BSP_CONFIG_H
#define _BSP_CONFIG_H
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include "peripheral/ports/plib_ports.h"
#define BSP_OSC_FREQUENCY 8000000
typedef enum
{
/*BSP_UART_RX = PORTS_BIT_POS_6, // Channel C
BSP_UART_TX = PORTS_BIT_POS_7, // Channel C
BSP_UART_CTS = PORTS_BIT_POS_8, // Channel C
BSP_UART_RTS = PORTS_BIT_POS_9, // Channel C*/
BSP_USB_VBON = PORTS_BIT_POS_14, // Channel B
BSP_USB_SELECT = PORTS_BIT_POS_7, // Channel B
BSP_SPI2_CS = PORTS_BIT_POS_9, // Channel B
BSP_LED1 = PORTS_BIT_POS_4, // Channel C
BSP_LED2 = PORTS_BIT_POS_3, // Channel C
BSP_LED3 = PORTS_BIT_POS_9 // Channel A
} BSP_PIN;
void BSP_uart_mapping(void);
void BSP_Initialize(void);
#endif