[spi] update apogee and krooz board files for spi

This commit is contained in:
Gautier Hattenberger
2013-07-12 18:16:04 +02:00
parent b10d6c1305
commit 925a3403b1
3 changed files with 27 additions and 0 deletions
@@ -8,6 +8,9 @@
<modules>
<!--load name="sys_mon.xml"/-->
<load name="mcp355x.xml">
<define name="USE_SPI1"/>
</load>
</modules>
<firmware name="fixedwing">
@@ -21,6 +24,7 @@
<target name="sim" board="pc"/>
<target name="ap" board="apogee_0.99"/>
<configure name="FLASH_MODE" value="SWD"/>
<subsystem name="radio_control" type="ppm"/>
@@ -38,6 +42,7 @@
<!-- Sensors -->
<subsystem name="gps" type="ublox"/>
<subsystem name="spi_master"/>
</firmware>
<!-- commands section -->
+12
View File
@@ -60,6 +60,18 @@
#define UART6_GPIO_PORT_TX GPIOC
#define UART6_GPIO_TX GPIO6
/* SPI */
#define SPI1_GPIO_AF GPIO_AF5
#define SPI1_GPIO_PORT_MISO GPIOA
#define SPI1_GPIO_MISO GPIO6
#define SPI1_GPIO_PORT_MOSI GPIOA
#define SPI1_GPIO_MOSI GPIO7
#define SPI1_GPIO_PORT_SCK GPIOA
#define SPI1_GPIO_SCK GPIO5
#define SPI_SELECT_SLAVE0_PORT GPIOB
#define SPI_SELECT_SLAVE0_PIN GPIO9
/* Onboard ADCs */
#define USE_AD_TIM4 1
+10
View File
@@ -99,6 +99,16 @@
#define UART5_GPIO_PORT_TX GPIOC
#define UART5_GPIO_TX GPIO12
/* SPI */
#define SPI2_GPIO_AF GPIO_AF5
#define SPI2_GPIO_PORT_MISO GPIOB
#define SPI2_GPIO_MISO GPIO14
#define SPI2_GPIO_PORT_MOSI GPIOB
#define SPI2_GPIO_MOSI GPIO15
#define SPI2_GPIO_PORT_SCK GPIOB
#define SPI2_GPIO_SCK GPIO13
//TODO slave configuration
/* I2C mapping */
#define I2C1_GPIO_PORT GPIOB