Common ATmega and ATxmega SPI driver parts. More...
#include <assert.h>#include <bitops.h>#include <spi.h>Go to the source code of this file.
Defines | |
| #define | MAXLOOPS 255 |
| Maximum number of polling loops. | |
Typedefs | |
| typedef uint8_t | maxloops_t |
| Defintion of poll loop counter variable. | |
Functions | |
| static void | spi_poll (struct workqueue_task *task) |
| Poll SPI registers for required actions. | |
| void | spi_priv_master_setup_device (spi_id_t spi_id, struct spi_device *device, spi_flags_t flags, unsigned long baud_rate, board_spi_select_id_t sel_id) |
| Private setup SPI device. | |
| void | spi_priv_select_device (struct spi_master *master, struct spi_device *device) |
| Private select SPI device. | |
| void | spi_priv_deselect_device (struct spi_master *master, struct spi_device *device) |
| Private deselect SPI device. | |
| void | spi_priv_master_init (spi_id_t spi_id, struct spi_master *master) |
| Private init SPI master. | |
Common ATmega and ATxmega SPI driver parts.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file spi_mega_xmega.c.
1.6.3