Skip to content

Commit e6b6622

Browse files
committed
fix(PR): Added missing defines for ch32v003 SPI library (!827)
1 parent cf59678 commit e6b6622

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/spi_slave/spi_slave.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#include "ch32fun.h"
22
#include <stdio.h>
33

4+
#define CH32V003_SPI_SPEED_HZ 1000000
5+
#define CH32V003_SPI_DIRECTION_2LINE_TXRX
6+
#define CH32V003_SPI_CLK_MODE_POL0_PHA0
7+
#define CH32V003_SPI_NSS_SOFTWARE_ANY_MANUAL
8+
49
#include "../../extralibs/ch32v003_SPI.h"
510

611
#define PIN_CS PC1

0 commit comments

Comments
 (0)