• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision14503 (tree)
Zeit2021-06-06 23:16:29
Autorvrepetenko

Log Message

SUBGHZ abbreviation changed from RTR to SG, SPIR removed from SPIv2.

Ändern Zusammenfassung

Diff

--- trunk/demos/STM32/RT-STM32WL55JC-NUCLEO64/cfg/mcuconf.h (revision 14502)
+++ trunk/demos/STM32/RT-STM32WL55JC-NUCLEO64/cfg/mcuconf.h (revision 14503)
@@ -209,21 +209,16 @@
209209 /*
210210 * SPI driver system settings.
211211 */
212-#define STM32_SPI_USE_SPI1 FALSE
212+#define STM32_SPI_USE_SPI1 TRUE
213213 #define STM32_SPI_USE_SPI2 FALSE
214-#define STM32_SPI_USE_SPIR TRUE
215214 #define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
216215 #define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 4)
217216 #define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
218217 #define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
219-#define STM32_SPI_SPIR_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
220-#define STM32_SPI_SPIR_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
221218 #define STM32_SPI_SPI1_DMA_PRIORITY 1
222219 #define STM32_SPI_SPI2_DMA_PRIORITY 1
223-#define STM32_SPI_SPIR_DMA_PRIORITY 1
224220 #define STM32_SPI_SPI1_IRQ_PRIORITY 10
225221 #define STM32_SPI_SPI2_IRQ_PRIORITY 10
226-#define STM32_SPI_SPIR_IRQ_PRIORITY 10
227222 #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
228223
229224 /*
--- trunk/os/hal/ports/STM32/STM32F0xx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32F0xx/stm32_registry.h (revision 14503)
@@ -45,9 +45,6 @@
4545 /* RNG attributes.*/
4646 #define STM32_HAS_RNG1 FALSE
4747
48-/* SPI attributes. */
49-#define STM32_HAS_SPIR FALSE
50-
5148 /*===========================================================================*/
5249 /* STM32F030x4, STM32F030x6, STM32F030x8, STM32F030xC. */
5350 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32F37x/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32F37x/stm32_registry.h (revision 14503)
@@ -38,9 +38,6 @@
3838 /* Common. */
3939 /*===========================================================================*/
4040
41-/* SPI attributes. */
42-#define STM32_HAS_SPIR FALSE
43-
4441 /*===========================================================================*/
4542 /* STM32F373xC. */
4643 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32F3xx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32F3xx/stm32_registry.h (revision 14503)
@@ -48,9 +48,6 @@
4848 /* RNG attributes.*/
4949 #define STM32_HAS_RNG1 TRUE
5050
51-/* SPI attributes. */
52-#define STM32_HAS_SPIR FALSE
53-
5451 /*===========================================================================*/
5552 /* STM32F303xC. */
5653 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32F7xx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32F7xx/stm32_registry.h (revision 14503)
@@ -78,9 +78,6 @@
7878 #define STM32_HAS_CRYP1 FALSE
7979 #endif
8080
81-/* SPI attributes. */
82-#define STM32_HAS_SPIR FALSE
83-
8481 /*===========================================================================*/
8582 /* STM32F722xx, STM32F723xx, STM32F732xx, STM32F733xx. */
8683 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32G0xx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32G0xx/stm32_registry.h (revision 14503)
@@ -101,9 +101,6 @@
101101 #define STM32_RCC_HAS_PLLSAI1 FALSE
102102 #define STM32_RCC_HAS_PLLSAI2 FALSE
103103
104-/* SPI attributes. */
105-#define STM32_HAS_SPIR FALSE
106-
107104 /*===========================================================================*/
108105 /* STM32G070xx. */
109106 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32G4xx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32G4xx/stm32_registry.h (revision 14503)
@@ -111,9 +111,6 @@
111111 #define STM32_RCC_HAS_PLLSAI1 FALSE
112112 #define STM32_RCC_HAS_PLLSAI2 FALSE
113113
114-/* SPI attributes. */
115-#define STM32_HAS_SPIR FALSE
116-
117114 /*===========================================================================*/
118115 /* STM32G473xx, STM32G4843xx, STM32G474xx, STM32G484xx. */
119116 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32L4xx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32L4xx/stm32_registry.h (revision 14503)
@@ -71,9 +71,6 @@
7171 #define STM32_HAS_CRYP1 FALSE
7272 #endif
7373
74-/* SPI attributes. */
75-#define STM32_HAS_SPIR FALSE
76-
7774 /*===========================================================================*/
7875 /* STM32L432xx. */
7976 /*===========================================================================*/
@@ -499,9 +496,7 @@
499496 #define STM32_HAS_TIM15 TRUE
500497 #define STM32_TIM15_IS_32BITS FALSE
501498 #define STM32_TIM15_CHANNELS 2/* SPI attributes. */
502-#define STM32_HAS_SPIR FALSE
503499
504-
505500 #define STM32_HAS_TIM16 TRUE
506501 #define STM32_TIM16_IS_32BITS FALSE
507502 #define STM32_TIM16_CHANNELS 2
--- trunk/os/hal/ports/STM32/STM32L4xx+/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32L4xx+/stm32_registry.h (revision 14503)
@@ -98,9 +98,6 @@
9898 /* I2C attributes.*/
9999 #define STM32_I2C4_USE_BDMA FALSE
100100
101-/* SPI attributes. */
102-#define STM32_HAS_SPIR FALSE
103-
104101 /*===========================================================================*/
105102 /* STM32L4yyxx+. */
106103 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32WBxx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32WBxx/stm32_registry.h (revision 14503)
@@ -68,9 +68,6 @@
6868 #define STM32_HAS_HASH1 TRUE
6969 #define STM32_HAS_CRYP1 TRUE
7070
71-/* SPI attributes. */
72-#define STM32_HAS_SPIR FALSE
73-
7471 /*===========================================================================*/
7572 /* STM32WB55xx. */
7673 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32WLxx/stm32_dmamux.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32WLxx/stm32_dmamux.h (revision 14503)
@@ -73,8 +73,8 @@
7373 #define STM32_DMAMUX1_TIM17_UP 38
7474 #define STM32_DMAMUX1_AES_IN 39
7575 #define STM32_DMAMUX1_AES_OUT 40
76-#define STM32_DMAMUX1_SPIR_RX 41
77-#define STM32_DMAMUX1_SPIR_TX 42
76+#define STM32_DMAMUX1_SGSPI_RX 41
77+#define STM32_DMAMUX1_SGSPI_TX 42
7878 /** @} */
7979
8080 /*===========================================================================*/
--- trunk/os/hal/ports/STM32/STM32WLxx/stm32_isr.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32WLxx/stm32_isr.h (revision 14503)
@@ -99,7 +99,7 @@
9999 #define STM32_EXTI10_15_HANDLER VectorE4
100100 #define STM32_EXTI16_34_HANDLER Vector44 /* PVD PVM3 */
101101 #define STM32_EXTI21_22_HANDLER Vector140 /* COMP1..2 */
102-#define STM32_EXTI45_HANDLER Vector108 /* RTR */
102+#define STM32_EXTI45_HANDLER Vector108 /* SG */
103103
104104 #define STM32_EXTI0_NUMBER 6
105105 #define STM32_EXTI1_NUMBER 7
--- trunk/os/hal/ports/STM32/STM32WLxx/stm32_registry.h (revision 14502)
+++ trunk/os/hal/ports/STM32/STM32WLxx/stm32_registry.h (revision 14503)
@@ -166,19 +166,16 @@
166166 /* QUADSPI attributes.*/
167167 #define STM32_HAS_QUADSPI1 FALSE
168168
169-/* Radio Transceiver (RTR) attributes.*/
170-#define STM32_HAS_RTR TRUE
169+/* SUBGHZ attributes.*/
170+#define STM32_HAS_SG TRUE
171171 #if defined(STM32WLE5xx) || defined(STM32WL55xx) || defined(__DOXYGEN__)
172-#define STM32_RTR_HAS_LORA_MODEM TRUE
172+#define STM32_SG_HAS_LORA_MODEM TRUE
173173 #else
174-#define STM32_RTR_HAS_LORA_MODEM FALSE
174+#define STM32_SG_HAS_LORA_MODEM FALSE
175175 #endif /* defined(STM32WLE5xx) || defined(STM32WL55xx) */
176-#define STM32_RTR_HAS_FSK_MODEM TRUE
177-#define STM32_RTR_HAS_MSK_MODEM TRUE
178-#define STM32_RTR_HAS_BPSK_MODEM TRUE
179-#define STM32_RTR_IRQ_EXTI 44
180-#define STM32_RTR_BUSY_EXTI 45
181-#define STM32_RTR_IRQ_HANDLER Vector108
176+#define STM32_SG_HAS_FSK_MODEM TRUE
177+#define STM32_SG_HAS_MSK_MODEM TRUE
178+#define STM32_SG_HAS_BPSK_MODEM TRUE
182179
183180 /* RNG attributes.*/
184181 #define STM32_HAS_RNG1 TRUE
@@ -237,9 +234,6 @@
237234 #define STM32_HAS_SPI2 TRUE
238235 #define STM32_SPI2_SUPPORTS_I2S TRUE
239236
240-#define STM32_HAS_SPIR TRUE
241-#define STM32_SPIR_SUPPORTS_I2S FALSE
242-
243237 #define STM32_HAS_SPI3 FALSE
244238 #define STM32_HAS_SPI4 FALSE
245239 #define STM32_HAS_SPI5 FALSE
--- trunk/testrt/IRQ_STORM/cfg/stm32wl55jc_nucleo64/mcuconf.h (revision 14502)
+++ trunk/testrt/IRQ_STORM/cfg/stm32wl55jc_nucleo64/mcuconf.h (revision 14503)
@@ -211,19 +211,14 @@
211211 */
212212 #define STM32_SPI_USE_SPI1 FALSE
213213 #define STM32_SPI_USE_SPI2 FALSE
214-#define STM32_SPI_USE_SPIR FALSE
215214 #define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 3)
216215 #define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 4)
217216 #define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
218217 #define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
219-#define STM32_SPI_SPIR_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 1)
220-#define STM32_SPI_SPIR_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
221218 #define STM32_SPI_SPI1_DMA_PRIORITY 1
222219 #define STM32_SPI_SPI2_DMA_PRIORITY 1
223-#define STM32_SPI_SPIR_DMA_PRIORITY 1
224220 #define STM32_SPI_SPI1_IRQ_PRIORITY 10
225221 #define STM32_SPI_SPI2_IRQ_PRIORITY 10
226-#define STM32_SPI_SPIR_IRQ_PRIORITY 10
227222 #define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
228223
229224 /*
Show on old repository browser