We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf59678 commit e6b6622Copy full SHA for e6b6622
1 file changed
examples/spi_slave/spi_slave.c
@@ -1,6 +1,11 @@
1
#include "ch32fun.h"
2
#include <stdio.h>
3
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
+
9
#include "../../extralibs/ch32v003_SPI.h"
10
11
#define PIN_CS PC1
0 commit comments