forked from apache/mynewt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds support for STM32G4 MCU family. Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
- Loading branch information
Showing
31 changed files
with
3,182 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#include <stdint.h> | ||
#include <stm32g4xx_hal_dma.h> | ||
|
||
struct stm32_dma_cfg { | ||
uint8_t dma_ch; | ||
uint8_t irqn; | ||
void (*irq_handler)(void); | ||
DMA_Channel_TypeDef *regs; | ||
DMA_InitTypeDef init; | ||
}; | ||
|
||
#define SPI_DMA_RX_CHANNEL(dma, ch, spi_num) \ | ||
extern const struct stm32_dma_cfg DMA ## dma ## _channel ## ch ## _spi ## spi_num ## _rx; | ||
|
||
#define SPI_DMA_TX_CHANNEL(dma, ch, spi_num) \ | ||
extern const struct stm32_dma_cfg DMA ## dma ## _channel ## ch ## _spi ## spi_num ## _tx; | ||
|
||
SPI_DMA_RX_CHANNEL(1, 1, 1); | ||
SPI_DMA_RX_CHANNEL(1, 2, 1); | ||
SPI_DMA_RX_CHANNEL(1, 3, 1); | ||
SPI_DMA_RX_CHANNEL(1, 4, 1); | ||
SPI_DMA_RX_CHANNEL(1, 5, 1); | ||
SPI_DMA_RX_CHANNEL(1, 6, 1); | ||
SPI_DMA_RX_CHANNEL(1, 7, 1); | ||
SPI_DMA_RX_CHANNEL(2, 1, 1); | ||
SPI_DMA_RX_CHANNEL(2, 2, 1); | ||
SPI_DMA_RX_CHANNEL(2, 3, 1); | ||
SPI_DMA_RX_CHANNEL(2, 4, 1); | ||
SPI_DMA_RX_CHANNEL(2, 5, 1); | ||
SPI_DMA_RX_CHANNEL(2, 6, 1); | ||
SPI_DMA_RX_CHANNEL(2, 7, 1); | ||
|
||
SPI_DMA_RX_CHANNEL(1, 1, 2); | ||
SPI_DMA_RX_CHANNEL(1, 2, 2); | ||
SPI_DMA_RX_CHANNEL(1, 3, 2); | ||
SPI_DMA_RX_CHANNEL(1, 4, 2); | ||
SPI_DMA_RX_CHANNEL(1, 5, 2); | ||
SPI_DMA_RX_CHANNEL(1, 6, 2); | ||
SPI_DMA_RX_CHANNEL(1, 7, 2); | ||
SPI_DMA_RX_CHANNEL(2, 1, 2); | ||
SPI_DMA_RX_CHANNEL(2, 2, 2); | ||
SPI_DMA_RX_CHANNEL(2, 3, 2); | ||
SPI_DMA_RX_CHANNEL(2, 4, 2); | ||
SPI_DMA_RX_CHANNEL(2, 5, 2); | ||
SPI_DMA_RX_CHANNEL(2, 6, 2); | ||
SPI_DMA_RX_CHANNEL(2, 7, 2); | ||
|
||
SPI_DMA_RX_CHANNEL(1, 1, 3); | ||
SPI_DMA_RX_CHANNEL(1, 2, 3); | ||
SPI_DMA_RX_CHANNEL(1, 3, 3); | ||
SPI_DMA_RX_CHANNEL(1, 4, 3); | ||
SPI_DMA_RX_CHANNEL(1, 5, 3); | ||
SPI_DMA_RX_CHANNEL(1, 6, 3); | ||
SPI_DMA_RX_CHANNEL(1, 7, 3); | ||
SPI_DMA_RX_CHANNEL(2, 1, 3); | ||
SPI_DMA_RX_CHANNEL(2, 2, 3); | ||
SPI_DMA_RX_CHANNEL(2, 3, 3); | ||
SPI_DMA_RX_CHANNEL(2, 4, 3); | ||
SPI_DMA_RX_CHANNEL(2, 5, 3); | ||
SPI_DMA_RX_CHANNEL(2, 6, 3); | ||
SPI_DMA_RX_CHANNEL(2, 7, 3); | ||
|
||
#if defined(SPI4) | ||
SPI_DMA_RX_CHANNEL(1, 1, 4); | ||
SPI_DMA_RX_CHANNEL(1, 2, 4); | ||
SPI_DMA_RX_CHANNEL(1, 3, 4); | ||
SPI_DMA_RX_CHANNEL(1, 4, 4); | ||
SPI_DMA_RX_CHANNEL(1, 5, 4); | ||
SPI_DMA_RX_CHANNEL(1, 6, 4); | ||
SPI_DMA_RX_CHANNEL(1, 7, 4); | ||
SPI_DMA_RX_CHANNEL(2, 1, 4); | ||
SPI_DMA_RX_CHANNEL(2, 2, 4); | ||
SPI_DMA_RX_CHANNEL(2, 3, 4); | ||
SPI_DMA_RX_CHANNEL(2, 4, 4); | ||
SPI_DMA_RX_CHANNEL(2, 5, 4); | ||
SPI_DMA_RX_CHANNEL(2, 6, 4); | ||
SPI_DMA_RX_CHANNEL(2, 7, 4); | ||
#endif | ||
|
||
SPI_DMA_TX_CHANNEL(1, 1, 1); | ||
SPI_DMA_TX_CHANNEL(1, 2, 1); | ||
SPI_DMA_TX_CHANNEL(1, 3, 1); | ||
SPI_DMA_TX_CHANNEL(1, 4, 1); | ||
SPI_DMA_TX_CHANNEL(1, 5, 1); | ||
SPI_DMA_TX_CHANNEL(1, 6, 1); | ||
SPI_DMA_TX_CHANNEL(1, 7, 1); | ||
SPI_DMA_TX_CHANNEL(2, 1, 1); | ||
SPI_DMA_TX_CHANNEL(2, 2, 1); | ||
SPI_DMA_TX_CHANNEL(2, 3, 1); | ||
SPI_DMA_TX_CHANNEL(2, 4, 1); | ||
SPI_DMA_TX_CHANNEL(2, 5, 1); | ||
SPI_DMA_TX_CHANNEL(2, 6, 1); | ||
SPI_DMA_TX_CHANNEL(2, 7, 1); | ||
|
||
SPI_DMA_TX_CHANNEL(1, 1, 2); | ||
SPI_DMA_TX_CHANNEL(1, 2, 2); | ||
SPI_DMA_TX_CHANNEL(1, 3, 2); | ||
SPI_DMA_TX_CHANNEL(1, 4, 2); | ||
SPI_DMA_TX_CHANNEL(1, 5, 2); | ||
SPI_DMA_TX_CHANNEL(1, 6, 2); | ||
SPI_DMA_TX_CHANNEL(1, 7, 2); | ||
SPI_DMA_TX_CHANNEL(2, 1, 2); | ||
SPI_DMA_TX_CHANNEL(2, 2, 2); | ||
SPI_DMA_TX_CHANNEL(2, 3, 2); | ||
SPI_DMA_TX_CHANNEL(2, 4, 2); | ||
SPI_DMA_TX_CHANNEL(2, 5, 2); | ||
SPI_DMA_TX_CHANNEL(2, 6, 2); | ||
SPI_DMA_TX_CHANNEL(2, 7, 2); | ||
|
||
SPI_DMA_TX_CHANNEL(1, 1, 3); | ||
SPI_DMA_TX_CHANNEL(1, 2, 3); | ||
SPI_DMA_TX_CHANNEL(1, 3, 3); | ||
SPI_DMA_TX_CHANNEL(1, 4, 3); | ||
SPI_DMA_TX_CHANNEL(1, 5, 3); | ||
SPI_DMA_TX_CHANNEL(1, 6, 3); | ||
SPI_DMA_TX_CHANNEL(1, 7, 3); | ||
SPI_DMA_TX_CHANNEL(2, 1, 3); | ||
SPI_DMA_TX_CHANNEL(2, 2, 3); | ||
SPI_DMA_TX_CHANNEL(2, 3, 3); | ||
SPI_DMA_TX_CHANNEL(2, 4, 3); | ||
SPI_DMA_TX_CHANNEL(2, 5, 3); | ||
SPI_DMA_TX_CHANNEL(2, 6, 3); | ||
SPI_DMA_TX_CHANNEL(2, 7, 3); | ||
|
||
#if defined(SPI4) | ||
SPI_DMA_TX_CHANNEL(1, 1, 4); | ||
SPI_DMA_TX_CHANNEL(1, 2, 4); | ||
SPI_DMA_TX_CHANNEL(1, 3, 4); | ||
SPI_DMA_TX_CHANNEL(1, 4, 4); | ||
SPI_DMA_TX_CHANNEL(1, 5, 4); | ||
SPI_DMA_TX_CHANNEL(1, 6, 4); | ||
SPI_DMA_TX_CHANNEL(1, 7, 4); | ||
SPI_DMA_TX_CHANNEL(2, 1, 4); | ||
SPI_DMA_TX_CHANNEL(2, 2, 4); | ||
SPI_DMA_TX_CHANNEL(2, 3, 4); | ||
SPI_DMA_TX_CHANNEL(2, 4, 4); | ||
SPI_DMA_TX_CHANNEL(2, 5, 4); | ||
SPI_DMA_TX_CHANNEL(2, 6, 4); | ||
SPI_DMA_TX_CHANNEL(2, 7, 4); | ||
#endif |
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,28 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
pkg.name: hw/bus/drivers/spi_stm32/stm32g4xx | ||
pkg.description: STM32G4 specific part of STM32 SPI driver | ||
pkg.author: "Apache Mynewt <dev@mynewt.apache.org>" | ||
pkg.homepage: "http://mynewt.apache.org/" | ||
pkg.keywords: | ||
|
||
pkg.deps: | ||
- hw/bus | ||
- hw/bus/drivers/spi_stm32 |
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,182 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
#include <spidmacfg.h> | ||
#include <stm32g4xx_hal_dma.h> | ||
#include <stm32_common/stm32_dma.h> | ||
|
||
#define SPI_DMA_RX_CHANNEL_DEFINE(dma, ch, spi_num) \ | ||
const struct stm32_dma_cfg DMA ## dma ## _channel ## ch ## _spi ## spi_num ## _rx = { \ | ||
DMA ## dma ## _CH ## ch, \ | ||
DMA ## dma ## _Channel ## ch ## _IRQn, \ | ||
stm32_dma ## dma ## _ ## ch ## _irq_handler, \ | ||
.regs = DMA ## dma ## _Channel ## ch, \ | ||
.init = { \ | ||
.Request = DMA_REQUEST_SPI ## spi_num ## _RX, \ | ||
.Direction = DMA_PERIPH_TO_MEMORY, \ | ||
.PeriphInc = DMA_PINC_DISABLE, \ | ||
.MemInc = DMA_MINC_ENABLE, \ | ||
.PeriphDataAlignment = DMA_PDATAALIGN_BYTE, \ | ||
.MemDataAlignment = DMA_MDATAALIGN_BYTE, \ | ||
.Mode = DMA_NORMAL, \ | ||
.Priority = DMA_PRIORITY_LOW, \ | ||
} \ | ||
} | ||
|
||
#define SPI_DMA_TX_CHANNEL_DEFINE(dma, ch, spi_num) \ | ||
const struct stm32_dma_cfg DMA ## dma ## _channel ## ch ## _spi ## spi_num ## _tx = { \ | ||
DMA ## dma ## _CH ## ch, \ | ||
DMA ## dma ## _Channel ## ch ## _IRQn, \ | ||
stm32_dma ## dma ## _ ## ch ## _irq_handler, \ | ||
.regs = DMA ## dma ## _Channel ## ch, \ | ||
.init = { \ | ||
.Request = DMA_REQUEST_SPI ## spi_num ## _TX, \ | ||
.Direction = DMA_MEMORY_TO_PERIPH, \ | ||
.PeriphInc = DMA_PINC_DISABLE, \ | ||
.MemInc = DMA_MINC_ENABLE, \ | ||
.PeriphDataAlignment = DMA_PDATAALIGN_BYTE, \ | ||
.MemDataAlignment = DMA_MDATAALIGN_BYTE, \ | ||
.Mode = DMA_NORMAL, \ | ||
.Priority = DMA_PRIORITY_LOW, \ | ||
} \ | ||
} | ||
|
||
SPI_DMA_RX_CHANNEL_DEFINE(1, 1, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 2, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 3, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 4, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 5, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 6, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 7, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 1, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 2, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 3, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 4, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 5, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 6, 1); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 7, 1); | ||
|
||
SPI_DMA_RX_CHANNEL_DEFINE(1, 1, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 2, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 3, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 4, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 5, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 6, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 7, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 1, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 2, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 3, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 4, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 5, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 6, 2); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 7, 2); | ||
|
||
SPI_DMA_RX_CHANNEL_DEFINE(1, 1, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 2, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 3, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 4, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 5, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 6, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 7, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 1, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 2, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 3, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 4, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 5, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 6, 3); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 7, 3); | ||
|
||
#if defined(SPI4) | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 1, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 2, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 3, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 4, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 5, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 6, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(1, 7, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 1, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 2, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 3, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 4, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 5, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 6, 4); | ||
SPI_DMA_RX_CHANNEL_DEFINE(2, 7, 4); | ||
#endif | ||
|
||
SPI_DMA_TX_CHANNEL_DEFINE(1, 1, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 2, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 3, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 4, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 5, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 6, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 7, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 1, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 2, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 3, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 4, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 5, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 6, 1); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 7, 1); | ||
|
||
SPI_DMA_TX_CHANNEL_DEFINE(1, 1, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 2, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 3, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 4, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 5, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 6, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 7, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 1, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 2, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 3, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 4, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 5, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 6, 2); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 7, 2); | ||
|
||
SPI_DMA_TX_CHANNEL_DEFINE(1, 1, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 2, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 3, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 4, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 5, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 6, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 7, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 1, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 2, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 3, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 4, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 5, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 6, 3); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 7, 3); | ||
|
||
#if defined(SPI4) | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 1, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 2, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 3, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 4, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 5, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 6, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(1, 7, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 1, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 2, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 3, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 4, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 5, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 6, 4); | ||
SPI_DMA_TX_CHANNEL_DEFINE(2, 7, 4); | ||
#endif |
Oops, something went wrong.