UART pin mapping?

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

cross mob
Anonymous
Not applicable

If I want  to  use WICED_UART_2, which pins on the ST micro would this map to?

I'm using the ISM43362_M3G_L44 module.

0 Likes
1 Solution
Anonymous
Not applicable

Never mind I found it in the platform.c fie:

[WICED_UART_2] =

  {

  .port = USART3,

  .tx_pin = &platform_gpio_pins[WICED_GPIO_19],

  .rx_pin = &platform_gpio_pins[WICED_GPIO_20],

  .cts_pin = &platform_gpio_pins[WICED_GPIO_21],

  .rts_pin = &platform_gpio_pins[WICED_GPIO_22],

  .tx_dma_config =

  {

  .controller = DMA1,

  .stream = DMA1_Stream4,

  .channel = DMA_Channel_7,

  .irq_vector = DMA1_Stream4_IRQn,

  .complete_flags = DMA_HISR_TCIF4,

  .error_flags = ( DMA_HISR_TEIF4 | DMA_HISR_FEIF4 | DMA_HISR_DMEIF4 ),

  },

  .rx_dma_config =

  {

  .controller = DMA1,

  .stream = DMA1_Stream1,

  .channel = DMA_Channel_4,

  .irq_vector = DMA1_Stream1_IRQn,

  .complete_flags = DMA_LISR_TCIF1,

  .error_flags = ( DMA_LISR_TEIF1 | DMA_LISR_FEIF1 | DMA_LISR_DMEIF1 ),

  },

  },

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

Never mind I found it in the platform.c fie:

[WICED_UART_2] =

  {

  .port = USART3,

  .tx_pin = &platform_gpio_pins[WICED_GPIO_19],

  .rx_pin = &platform_gpio_pins[WICED_GPIO_20],

  .cts_pin = &platform_gpio_pins[WICED_GPIO_21],

  .rts_pin = &platform_gpio_pins[WICED_GPIO_22],

  .tx_dma_config =

  {

  .controller = DMA1,

  .stream = DMA1_Stream4,

  .channel = DMA_Channel_7,

  .irq_vector = DMA1_Stream4_IRQn,

  .complete_flags = DMA_HISR_TCIF4,

  .error_flags = ( DMA_HISR_TEIF4 | DMA_HISR_FEIF4 | DMA_HISR_DMEIF4 ),

  },

  .rx_dma_config =

  {

  .controller = DMA1,

  .stream = DMA1_Stream1,

  .channel = DMA_Channel_4,

  .irq_vector = DMA1_Stream1_IRQn,

  .complete_flags = DMA_LISR_TCIF1,

  .error_flags = ( DMA_LISR_TEIF1 | DMA_LISR_FEIF1 | DMA_LISR_DMEIF1 ),

  },

  },

0 Likes