mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update winc1500 code to support a different SPI bus
This commit is contained in:
parent
3e130d74c4
commit
7c9a4fddf3
@ -53,8 +53,14 @@
|
||||
#include "extint.h"
|
||||
#include "omv_boardconfig.h"
|
||||
|
||||
// Re-use MicroPython's SPI2 Handle.
|
||||
#ifndef WINC_SPI_HANDLE
|
||||
extern SPI_HandleTypeDef SPIHandle2;
|
||||
#define SPI_HANDLE (SPIHandle2)
|
||||
#else
|
||||
SPI_HandleTypeDef WINC_SPI_HANDLE;
|
||||
#define SPI_HANDLE (WINC_SPI_HANDLE)
|
||||
#endif
|
||||
|
||||
#define NM_BUS_MAX_TRX_SZ 4096
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user