How to add new ISRs MAP handlers to new platfom.c for STM32F429

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiRo_263836
Level 5
Level 5
100 replies posted 50 likes received 50 replies posted

In creating a new platform for an STM32F429 with a Murrata 1DX  target board, I have questions on how to find the right label to add for new ISRs  handler mapping that aren't defined in the example.

This is the example that I started with

/******************************************************

*            Interrupt Handlers Mapping

******************************************************/

/* These DMA assignments can be found STM32F4xx datasheet DMA section */

WWD_RTOS_MAP_ISR( usart1_irq                , USART1_irq       )

WWD_RTOS_MAP_ISR( usart2_irq                , USART2_irq       )

WWD_RTOS_MAP_ISR( usart3_irq                , USART3_irq       )

WWD_RTOS_MAP_ISR( uart7_irq                 , UART7_irq        )

WWD_RTOS_MAP_ISR( usart3_rx_uart7_tx_dma_irq, DMA1_Stream1_irq )

WWD_RTOS_MAP_ISR( uart7_rx_dma_irq          , DMA1_Stream3_irq )

WWD_RTOS_MAP_ISR( usart3_tx_uart4_tx_dma_irq, DMA1_Stream4_irq )

WWD_RTOS_MAP_ISR( usart1_rx_dma_irq         , DMA2_Stream2_irq )

WWD_RTOS_MAP_ISR( usart2_rx_dma_irq         , DMA1_Stream5_irq )

WWD_RTOS_MAP_ISR( usart2_tx_dma_irq         , DMA1_Stream6_irq )

WWD_RTOS_MAP_ISR( usart1_tx_dma_irq         , DMA2_Stream7_irq )

I would like to add I2C, SPI and 5 GPIO interrupts .  This is what I think they might be, but how do it checkj.  Where is the values in the example come from. 

/* These DMA assignments can be found STM32F4xx datasheet DMA section */

WWD_RTOS_MAP_ISR( usart1_irq                , USART1_irq       )

WWD_RTOS_MAP_ISR( usart3_irq                , USART3_irq       )

WWD_RTOS_MAP_ISR( uart7_irq                 , UART7_irq        )

WWD_RTOS_MAP_ISR( uart7_rx_dma_irq          , DMA1_Stream3_irq )

WWD_RTOS_MAP_ISR( usart3_rx_uart7_tx_dma_irq, DMA1_Stream1_irq )

WWD_RTOS_MAP_ISR( usart1_rx_dma_irq         , DMA2_Stream2_irq )

WWD_RTOS_MAP_ISR( usart1_tx_dma_irq         , DMA2_Stream7_irq )

/*

WWD_RTOS_MAP_ISR( i2c1_irq                          , I2C1_ER_irq      )

WWD_RTOS_MAP_ISR( i2c1_tx_dma_irq           , DMA1_Stream7_irq )

WWD_RTOS_MAP_ISR( i2c1_rx_dma_irq           , DMA1_Stream0_irq )

WWD_RTOS_MAP_ISR( spi2_irq                        , SPI2_irq         )

WWD_RTOS_MAP_ISR( spi2_tx_dma_irq           , DMA1_Stream4_irq )

WWD_RTOS_MAP_ISR( spi4_tx_dma_irq           , DMA2_Stream1_irq )

WWD_RTOS_MAP_ISR( spi4_rx_dma_irq           , DMA2_Stream0_irq )

WWD_RTOS_MAP_ISR( spi5_tx_dma_irq           , DMA2_Stream4_irq )

WWD_RTOS_MAP_ISR( spi5_rx_dma_irq           , DMA2_Stream5_irq )

WWD_RTOS_MAP_ISR( gpio_irq                         , EXTI0_irq        )

WWD_RTOS_MAP_ISR( gpio_irq                         , EXTI1_irq        )

WWD_RTOS_MAP_ISR( gpio_irq                         , EXTI3_irq        )

WWD_RTOS_MAP_ISR( gpio_irq                         , EXTI4_irq        )

WWD_RTOS_MAP_ISR( gpio_irq                         , EXTI9_5_irq      )

0 Likes
1 Solution
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

The values in the example for STM32F4xx can be found at 43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/platform_isr_interface.h. Let me know if you were looking for something else

View solution in original post

2 Replies
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

The values in the example for STM32F4xx can be found at 43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/platform_isr_interface.h. Let me know if you were looking for something else

Thank you.  That is what I was looking for.