#include "compiler.h"
#include "SPI_Master.h"
#include "QDebugTransport.h"
#include "usart.h"
#include "gpio.h"
#include "spi.h"
Macros | |
#define | EXAMPLE_USART_SPI_MISO_FUNCTION 0 |
#define | EXAMPLE_USART_SPI_MISO_PIN 11 |
#define | EXAMPLE_USART_SPI_MOSI_FUNCTION 0 |
#define | EXAMPLE_USART_SPI_MOSI_PIN 10 |
#define | EXAMPLE_USART_SPI_NSS_FUNCTION 0 |
#define | EXAMPLE_USART_SPI_NSS_PIN 7 |
#define | EXAMPLE_USART_SPI_SCK_FUNCTION 0 |
#define | EXAMPLE_USART_SPI_SCK_PIN 8 |
#define | PBA_HZ 12000000UL /* PBA Clock Frequency */ |
#define | TOUCH_DEBUG_SPI &AVR32_SPI0 |
Functions | |
void | SPI_Master_Init () |
uint8_t | SPI_Send_Byte (uint8_t c) |
void | SPI_Send_Message (void) |
Variables | |
static spi_options_t | TOUCH_DEBUG_SPI_OPTIONS |
Option structure for SPI channels. More... | |
static gpio_map_t | USART_SPI_GPIO_MAP |
#define EXAMPLE_USART_SPI_MISO_FUNCTION 0 |
#define EXAMPLE_USART_SPI_MISO_PIN 11 |
#define EXAMPLE_USART_SPI_MOSI_FUNCTION 0 |
#define EXAMPLE_USART_SPI_MOSI_PIN 10 |
#define EXAMPLE_USART_SPI_NSS_FUNCTION 0 |
#define EXAMPLE_USART_SPI_NSS_PIN 7 |
#define EXAMPLE_USART_SPI_SCK_FUNCTION 0 |
#define EXAMPLE_USART_SPI_SCK_PIN 8 |
#define PBA_HZ 12000000UL /* PBA Clock Frequency */ |
Referenced by SPI_Master_Init().
#define TOUCH_DEBUG_SPI &AVR32_SPI0 |
Referenced by SPI_Master_Init(), and SPI_Send_Byte().
void SPI_Master_Init | ( | void | ) |
References gpio_enable_module(), PBA_HZ, spi_enable(), spi_initMaster(), spi_selectChip(), spi_selectionMode(), spi_setupChipReg(), and TOUCH_DEBUG_SPI.
Referenced by QDebug_Init().
uint8_t SPI_Send_Byte | ( | uint8_t | c | ) |
References data, SPI_ERROR, SPI_OK, spi_read(), spi_write(), and TOUCH_DEBUG_SPI.
Referenced by SPI_Send_Message().
void SPI_Send_Message | ( | void | ) |
References i, RxHandler(), SPI_Send_Byte(), TX_Buffer, and TX_index.
Referenced by Send_Message().
|
static |
Option structure for SPI channels.
|
static |