Permalink
Browse files

COLIBRI_RACE - Support building binary for older revision. Binaries for

CF v1.13.0 and onwards only support revision 2 boards.
  • Loading branch information...
1 parent ddb7a96 commit 7a3ded55b21ec960a4f3629ff3db72b408ae008f @hydra hydra committed Nov 2, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/target/COLIBRI_RACE/target.h
@@ -18,6 +18,7 @@
#pragma once
#define TARGET_BOARD_IDENTIFIER "CLBR"
+#define COLIBRI_RACE_REV 2
#define LED0_GPIO GPIOC
#define LED0_PIN Pin_15
@@ -45,10 +46,15 @@
#define USE_SPI_DEVICE_1
#define SPI1_GPIO GPIOB
+
+#if COLIBRI_RACE_REV > 1
+// later revision boards moved the GYRO NSS PIN
#define SPI1_NSS_GPIO GPIOA
#define SPI1_NSS_PERIPHERAL RCC_AHBPeriph_GPIOA
#define SPI1_NSS_PIN GPIO_Pin_4
#define SPI1_NSS_PIN_SOURCE GPIO_PinSource4
+#endif
+
#define SPI1_GPIO_PERIPHERAL RCC_AHBPeriph_GPIOB
#define SPI1_SCK_PIN GPIO_Pin_3
#define SPI1_SCK_PIN_SOURCE GPIO_PinSource3

0 comments on commit 7a3ded5

Please sign in to comment.