mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
SPI works
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
#define USBPU_ON() pin_clear(USBPU_port, USBPU_pin)
|
||||
#define USBPU_OFF() pin_set(USBPU_port, USBPU_pin)
|
||||
|
||||
// SPI_CS - PB2 (pin 20)
|
||||
#define SPI_CS_1() pin_set(GPIOB, 1<<2)
|
||||
#define SPI_CS_0() pin_clear(GPIOB, 1<<2)
|
||||
|
||||
extern volatile uint32_t Tms;
|
||||
|
||||
void hw_setup();
|
||||
|
||||
Reference in New Issue
Block a user