periph_conf.h File Reference

peripheral configuration for the Digilent PIC32 WiFire More...

Detailed Description

peripheral configuration for the Digilent PIC32 WiFire

Author
Neil Jones Neil..nosp@m.Jone.nosp@m.s@img.nosp@m.tec..nosp@m.com

Definition in file periph_conf.h.

#include "cpu.h"
#include "periph_cpu.h"
+ Include dependency graph for periph_conf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define PERIPHERAL_CLOCK   (100000000) /* Hz */
 The peripheral clock is required for the UART Baud rate calculation It is configured by the 'config' registers (see pic32_config_settings.c)
 

Timer definitions

#define TIMER_NUMOF   (1)
 
#define TIMER_0_CHANNELS   (3)
 

UART Definitions

#define UART_0_ISR   (isr_usart4)
 
#define UART_NUMOF   ((unsigned int)ARRAY_SIZE(uart_config))
 
static const uart_conf_t uart_config []
 

Variable Documentation

◆ uart_config

const uart_conf_t uart_config[]
static
Initial value:
= {
{
.base = (volatile unsigned int *)_UART4_BASE_ADDRESS,
.clock = PERIPHERAL_CLOCK,
.rx_pin = GPIO_PIN(PORT_F, 2),
.tx_pin = GPIO_PIN(PORT_F, 8),
.rx_mux_reg = &U4RXR,
.tx_mux_reg = &RPF8R,
.rx_af = GPIO_AF11,
.tx_af = GPIO_AF2,
.vector = _UART4_RX_VECTOR,
},
}

Definition at line 48 of file periph_conf.h.

GPIO_AF11
@ GPIO_AF11
use alternate function 11
Definition: periph_cpu_common.h:97
PORT_F
@ PORT_F
port F
Definition: periph_cpu.h:41
GPIO_PIN
#define GPIO_PIN(x, y)
Define a CPU specific GPIO pin generator macro.
Definition: periph_cpu.h:35
GPIO_AF2
@ GPIO_AF2
use alternate function 2
Definition: periph_cpu_common.h:88
PERIPHERAL_CLOCK
#define PERIPHERAL_CLOCK
The peripheral clock is required for the UART Baud rate calculation It is configured by the 'config' ...
Definition: periph_conf.h:34