Skip to content

Commit

Permalink
COLIBRI_RACE - Support building binary for older revision. Binaries for
Browse files Browse the repository at this point in the history
CF v1.13.0 and onwards only support revision 2 boards.
  • Loading branch information
hydra committed Nov 2, 2016
1 parent ddb7a96 commit 7a3ded5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/target/COLIBRI_RACE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a3ded5

Please sign in to comment.