Gyro and Flash documentation

This commit is contained in:
philsson 2018-09-02 19:00:12 +02:00 committed by Philip Johansson
parent 806a80ebe0
commit 206c99f866
4 changed files with 27 additions and 10 deletions

BIN
Datasheets/M25P16.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,23 +7,40 @@
extern "C" { extern "C" {
#endif #endif
namespace targets {
namespace revo_f4 {
typedef enum typedef enum
{ {
ledBlue = PB_5, // Onboard leds
ledOrange = PB_4, PIN_BLUE_LED = PB_5,
sensV = PC_2, PIN_ORANGE_LED = PB_4,
sensC = PC_1,
MPU_MOSI = PA_7, // Analog sensors
MPU_MISO = PA_6, PIN_VOLTAGE_SENSOR = PC_2,
MPU_SCLK = PA_5, PIN_CURRENT_SENSOR = PC_1,
MPU_NSS = PA_4,
COMPASS_SCL = PB_8, // MPU SPI pins
COMPASS_SDA = PB_9, PIN_MPU_MOSI = PA_7,
PIN_MPU_MISO = PA_6,
PIN_MPU_SCLK = PA_5,
PIN_MPU_NSS = PA_4,
// Flash SPI pins
PIN_FLASH_MOSI = PC_12,
PIN_FLASH_MISO = PC_11,
PIN_FLASH_SCLK = PC_10,
PIN_FLASH_NSS = PA_15,
// Compass i2c pins
PIN_COMPASS_SCL = PB_8,
PIN_COMPASS_SDA = PB_9,
} PinMap; } PinMap;
} // namespace revo_f4
} // namespace targets
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif