1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Using hardware detection procedure to initializa chip select

lines before initialization talk with all chips
This commit is contained in:
Marcin Baliniak 2016-09-18 19:22:18 +02:00
parent a21694b065
commit 9a5e53d8ae
3 changed files with 97 additions and 0 deletions

View file

@ -18,6 +18,7 @@
#pragma once
#define TARGET_BOARD_IDENTIFIER "RBFC"
#define USE_HARDWARE_REVISION_DETECTION
#define TARGET_CONFIG
#define LED0 PB3
@ -76,6 +77,9 @@
#define USE_MAX7456
#define MAX7456_SPI_INSTANCE SPI2
#define MAX7456_SPI_CS_PIN PA7
#define MAX7456_SPI_CLK (SPI_CLOCK_STANDARD*2)
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
#define M25P16_CS_PIN PB12
#define M25P16_SPI_INSTANCE SPI2