RTEMS 7.0-rc1
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
spi.c File Reference

EFM32GG11 SPI Driver. More...

#include <bsp.h>
#include <bsp/processor.h>
#include <bsp/efm32gg11_clock.h>
#include <bsp/efm32gg11_gpio.h>
#include <bsp/efm32gg11_dma.h>
#include <bsp/spi.h>
#include <unistd.h>
#include <rtems/bspIo.h>
#include <rtems/sysinit.h>
#include <dev/spi/spi.h>

Data Structures

struct  spi_cs_pin_s
 
struct  spi_context_s
 

Macros

#define PASTE2(a, b)   a ## b
 
#define PASTE3(a, b, c)   a ## b ## c
 
#define PASTE4(a, b, c, d)   a ## b ## c ## d
 
#define REGS(i)   PASTE2(USART, i)
 
#define TX_DMA_REQ(i)   PASTE3(DMAREQ_USART, i, _TXBL)
 
#define RX_DMA_REQ(i)   PASTE3(DMAREQ_USART, i, _RXDATAV)
 
#define CLK_PORT(i, l)   PASTE3(AF_USART, i, _CLK_PORT)(l)
 
#define CLK_PIN(i, l)   PASTE3(AF_USART, i, _CLK_PIN)(l)
 
#define TX_PORT(i, l)   PASTE3(AF_USART, i, _TX_PORT)(l)
 
#define TX_PIN(i, l)   PASTE3(AF_USART, i, _TX_PIN)(l)
 
#define RX_PORT(i, l)   PASTE3(AF_USART, i, _RX_PORT)(l)
 
#define RX_PIN(i, l)   PASTE3(AF_USART, i, _RX_PIN)(l)
 
#define HFPERCLKEN0_MASK(i)   PASTE2(CMU_HFPERCLKEN0_USART, i)
 

Functions

int efm32gg11_spi_register ()
 

Detailed Description

EFM32GG11 SPI Driver.