mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-27 03:31:52 +02:00
ec21e4ba47
- ep0.c: the ATUSB EP0 protocol engine - Makefile (OBJS): added ep0.o - atusb.c (main): initialize the EP0 protocol - spi.h: whitespace cleanup usb/patches/support-vendor-requests.patch: - usb/ctrl.c (ctrl_handler): also pass vendor-specific requests to the class handler - class/CDC/cdc.c (cdc_req_handler): reject vendor requests
16 lines
230 B
C
16 lines
230 B
C
#ifndef SPI_H
|
|
#define SPI_H
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
void spi_begin(void);
|
|
uint8_t spi_io(uint8_t v);
|
|
void spi_end(void);
|
|
void spi_init(void);
|
|
|
|
#define spi_send(v) (void) spi_io(v)
|
|
#define spi_recv(v) spi_io(0)
|
|
|
|
#endif /* !SPI_H */
|