-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InvenSense ICM20602 and ICM20608-G: new standalone optimized drivers
- uses the FIFO and SPI DMA to transfer full raw data (8 kHz gyro, 4 kHz accel) - new sensor messages for better visibility - sensor_{accel, gyro}_fifo: full raw data for optional logging and analysis - sensor_{accel, gyro}_status: metadata, clipping, etc - currently not enabled by default
- Loading branch information
Showing
26 changed files
with
1,895 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
/* DMA Channel/Stream Selections | ||
* | ||
* DMAMAP_USART3_RX = DMA1, Stream 1, Channel 4 | ||
* DMAMAP_UART4_RX = DMA1, Stream 2, Channel 4 | ||
* DMAMAP_UART7_RX = DMA1, Stream 3, Channel 5 | ||
* DMAMAP_USART2_RX = DMA1, Stream 5, Channel 4 | ||
* DMAMAP_TIM4_UP = DMA1, Stream 6, Channel 2 | ||
* | ||
* DMAMAP_SPI1_RX_1 = DMA2, Stream 0, Channel 3 | ||
* DMAMAP_USART6_RX_1 = DMA2, Stream 1, Channel 4 | ||
* DMAMAP_USART1_RX_1 = DMA2, Stream 2, Channel 4 | ||
* DMAMAP_SPI1_TX_1 = DMA2, Stream 3, Channel 3 | ||
* DMAMAP_TIM1_UP = DMA2, Stream 5, Channel 6 | ||
* DMAMAP_SDIO_2 = DMA2, Stream 6, Channel 4 | ||
*/ | ||
|
||
#define DMACHAN_SPI1_RX DMAMAP_SPI1_RX_1 | ||
#define DMAMAP_USART6_RX DMAMAP_USART6_RX_1 | ||
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_1 | ||
#define DMACHAN_SPI1_TX DMAMAP_SPI1_TX_1 | ||
#define DMAMAP_SDIO DMAMAP_SDIO_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
/* DMA Channel/Stream Selections | ||
* | ||
* DMAMAP_USART3_RX = DMA1, Stream 1, Channel 4 | ||
* DMAMAP_UART4_RX = DMA1, Stream 2, Channel 4 | ||
* DMAMAP_UART7_RX = DMA1, Stream 3, Channel 5 | ||
* DMAMAP_USART2_RX = DMA1, Stream 5, Channel 4 | ||
* DMAMAP_UART8_RX = DMA1, Stream 6, Channel 5 | ||
* | ||
* DMAMAP_SPI1_RX_1 = DMA2, Stream 0, Channel 3 | ||
* DMAMAP_USART6_RX_2 = DMA2, Stream 2, Channel 5 | ||
* DMAMAP_SPI1_TX_1 = DMA2, Stream 3, Channel 3 | ||
* DMAMAP_USART1_RX_2 = DMA2, Stream 5, Channel 4 | ||
* DMAMAP_SDIO_2 = DMA2, Stream 6, Channel 4 | ||
* DMAMAP_USART6_TX_2 = DMA2, Stream 7, Channel 5 | ||
*/ | ||
#define DMACHAN_SPI1_RX DMAMAP_SPI1_RX_1 | ||
#define DMAMAP_USART6_RX DMAMAP_USART6_RX_2 | ||
#define DMACHAN_SPI1_TX DMAMAP_SPI1_TX_1 | ||
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_2 | ||
#define DMAMAP_SDIO DMAMAP_SDIO_2 | ||
#define DMAMAP_USART6_RX DMAMAP_USART6_TX_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.