AVR library
Functions
swspi.c File Reference

Software (bitbang) SPI. More...

#include <inttypes.h>
#include <util/delay.h>
#include "hwdefs.h"

Functions

void swspi_init (void)
 
uint8_t swspi_rw (uint8_t b)
 

Detailed Description

Software (bitbang) SPI.

Define MOSI_PORT, MOSI_BIT, SCK_PORT, SCK_BIT, MISO_PORT, MISO_BIT and SPI_DELAY_US in swdefs.h

Author
Matej Kogovsek (matej.nosp@m.@ham.nosp@m.radio.nosp@m..si)
Note
This file is part of mat-stm32f1-lib