2 Replies Latest reply on Apr 1, 2019 7:47 AM by MiRo_263836

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

    MiRo_263836

      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      )