forked from stm32duino/Arduino_Core_STM32
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request stm32duino#2373 from ELV-Elektronik-AG/main
Added Support for ELV-BM-TRX1
- Loading branch information
Showing
8 changed files
with
623 additions
and
1 deletion.
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
176 changes: 176 additions & 0 deletions
176
variants/STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I/PeripheralPins_ELV_BM_TRX1.c
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,176 @@ | ||
/* | ||
******************************************************************************* | ||
* Copyright (c) 2024, STMicroelectronics | ||
* All rights reserved. | ||
* | ||
* This software component is licensed by ST under BSD 3-Clause license, | ||
* the "License"; You may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at: | ||
* opensource.org/licenses/BSD-3-Clause | ||
* | ||
******************************************************************************* | ||
*/ | ||
/* | ||
* Automatically generated from STM32WL54JCIx.xml, STM32WL55JCIx.xml | ||
* STM32WLE4J8Ix.xml, STM32WLE4JBIx.xml | ||
* STM32WLE4JCIx.xml, STM32WLE5J8Ix.xml | ||
* STM32WLE5JBIx.xml, STM32WLE5JCIx.xml | ||
* CubeMX DB release 6.0.100 | ||
*/ | ||
#if defined(ARDUINO_ELV_BM_TRX1) | ||
#include "Arduino.h" | ||
#include "PeripheralPins.h" | ||
|
||
/* ===== | ||
* Notes: | ||
* - The pins mentioned Px_y_ALTz are alternative possibilities which use other | ||
* HW peripheral instances. You can use them the same way as any other "normal" | ||
* pin (i.e. analogWrite(PA7_ALT1, 128);). | ||
* | ||
* - Commented lines are alternative possibilities which are not used per default. | ||
* If you change them, you will have to know what you do | ||
* ===== | ||
*/ | ||
|
||
//*** ADC *** | ||
|
||
#ifdef HAL_ADC_MODULE_ENABLED | ||
WEAK const PinMap PinMap_ADC[] = { | ||
{PA_13, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 9, 0)}, // ADC_IN9 | ||
{PA_14, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 10, 0)}, // ADC_IN10 | ||
{PB_14, ADC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // ADC_IN1 | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
//*** DAC *** | ||
|
||
#ifdef HAL_DAC_MODULE_ENABLED | ||
WEAK const PinMap PinMap_DAC[] = { | ||
{PA_10, DAC1, STM_PIN_DATA_EXT(STM_MODE_ANALOG, GPIO_NOPULL, 0, 1, 0)}, // DAC_OUT1 | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
//*** I2C *** | ||
|
||
#ifdef HAL_I2C_MODULE_ENABLED | ||
WEAK const PinMap PinMap_I2C_SDA[] = { | ||
{PA_11, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, | ||
{PA_15, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, | ||
{PB_14, I2C3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_I2C_MODULE_ENABLED | ||
WEAK const PinMap PinMap_I2C_SCL[] = { | ||
{PA_7, I2C3, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C3)}, | ||
{PA_12, I2C2, STM_PIN_DATA(STM_MODE_AF_OD, GPIO_NOPULL, GPIO_AF4_I2C2)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
//*** No I3C *** | ||
|
||
//*** TIM *** | ||
|
||
#ifdef HAL_TIM_MODULE_ENABLED | ||
WEAK const PinMap PinMap_TIM[] = { | ||
{PA_2, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 3, 0)}, // TIM2_CH3 | ||
{PA_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 4, 0)}, // TIM2_CH4 | ||
{PA_5, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 1, 0)}, // TIM2_CH1 | ||
{PA_6, TIM16, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_TIM16, 1, 0)}, // TIM16_CH1 | ||
{PA_7, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 1, 1)}, // TIM1_CH1N | ||
{PA_7_ALT1, TIM17, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF14_TIM17, 1, 0)}, // TIM17_CH1 | ||
{PA_11, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 4, 0)}, // TIM1_CH4 | ||
{PB_3, TIM2, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM2, 2, 0)}, // TIM2_CH2 | ||
{PB_14, TIM1, STM_PIN_DATA_EXT(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF1_TIM1, 2, 1)}, // TIM1_CH2N | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
//*** UART *** | ||
|
||
#ifdef HAL_UART_MODULE_ENABLED | ||
WEAK const PinMap PinMap_UART_TX[] = { | ||
{PA_2, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, | ||
{PA_2_ALT1, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, | ||
{PA_9, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_UART_MODULE_ENABLED | ||
WEAK const PinMap PinMap_UART_RX[] = { | ||
{PA_3, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, | ||
{PA_3_ALT1, USART2, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART2)}, | ||
{PA_10, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_UART_MODULE_ENABLED | ||
WEAK const PinMap PinMap_UART_RTS[] = { | ||
{PA_12, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, | ||
{PB_3, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, | ||
{PB_12, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_UART_MODULE_ENABLED | ||
WEAK const PinMap PinMap_UART_CTS[] = { | ||
{PA_6, LPUART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF8_LPUART1)}, | ||
{PA_11, USART1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
//*** SPI *** | ||
|
||
#ifdef HAL_SPI_MODULE_ENABLED | ||
WEAK const PinMap PinMap_SPI_MOSI[] = { | ||
{PA_7, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, | ||
{PA_7_ALT1, SUBGHZSPI, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF13_DEBUG_SUBGHZSPI)}, | ||
{PA_12, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_SPI_MODULE_ENABLED | ||
WEAK const PinMap PinMap_SPI_MISO[] = { | ||
{PA_6, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, | ||
{PA_6_ALT1, SUBGHZSPI, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF13_DEBUG_SUBGHZSPI)}, | ||
{PA_11, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_SPI_MODULE_ENABLED | ||
WEAK const PinMap PinMap_SPI_SCLK[] = { | ||
{PA_5, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, | ||
{PA_5_ALT1, SUBGHZSPI, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF13_DEBUG_SUBGHZSPI)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
#ifdef HAL_SPI_MODULE_ENABLED | ||
WEAK const PinMap PinMap_SPI_SSEL[] = { | ||
{PA_4, SPI1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF5_SPI1)}, | ||
{PA_4_ALT1, SUBGHZSPI, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_NOPULL, GPIO_AF13_DEBUG_SUBGHZSPI)}, | ||
{NC, NP, 0} | ||
}; | ||
#endif | ||
|
||
//*** No CAN *** | ||
|
||
//*** No ETHERNET *** | ||
|
||
//*** No QUADSPI *** | ||
|
||
//*** No USB *** | ||
|
||
//*** No SD *** | ||
|
||
#endif /* ARDUINO_ELV_BM_TRX1 */ |
Oops, something went wrong.