periph_conf.h File Reference

peripheral configuration for the MikroE 6LoWPAN Clicker More...

Detailed Description

peripheral configuration for the MikroE 6LoWPAN Clicker

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   (96000000) /* Hz */
 The peripheral clock is required for the UART Baud rate calculation It is configured by the 'config' registers (see pic32_config_settings.c) Note 120MHz is the max F for this device.
 

Timer definitions

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

UART Definitions

#define UART_0_ISR   (isr_usart3)
 
#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 *)_UART3_BASE_ADDRESS,
.clock = PERIPHERAL_CLOCK,
.rx_pin = GPIO_PIN(PORT_F, 5),
.tx_pin = GPIO_PIN(PORT_F, 4),
.rx_mux_reg = &U3RXR,
.tx_mux_reg = &RPF4R,
.rx_af = GPIO_AF2,
.tx_af = GPIO_AF1,
.vector = _UART_3_VECTOR,
.irq = _UART3_RX_IRQ,
},
}

Definition at line 51 of file periph_conf.h.

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:37
PORT_F
@ PORT_F
port F
Definition: periph_cpu.h:41
GPIO_AF1
@ GPIO_AF1
use alternate function 1
Definition: periph_cpu_common.h:87
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