You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/06/05 20:05:32 UTC

[GitHub] [incubator-nuttx] davids5 opened a new pull request #1204: Master pr h7 spi6 bdma

davids5 opened a new pull request #1204:
URL: https://github.com/apache/incubator-nuttx/pull/1204


   ## Summary
   
   This enables BDMA on the the STM32H7 SPI6 channel.
   
   ## Impact
   
   Dependent on https://github.com/apache/incubator-nuttx/pull/1203 to actually work. But will not break the build without it. 
   
   ## Testing
   
   see https://github.com/apache/incubator-nuttx/pull/1203 
   
   ```
     ****************************************************************************/
   @@ -146,6 +148,28 @@ int stm32_bringup(void)
    
   +   static struct spi_dev_s *spidev;
   +   spidev = stm32_spibus_initialize(6);
   +   SPI_SETFREQUENCY(spidev, 1000000);
   +   SPI_SETMODE(spidev, 3);
   +   SPI_SETBITS(spidev, 8);
   +   SPI_SELECT(spidev, 0, true);
   +   uint8_t send[100];
   +   uint8_t recv[100];
   +   for (int i = 0; i < 100; i++)
   +     {
   +       send[i] = i;
   +       recv[i] = i;
   +     }
   +   /* do the transfer */
   +   SPI_EXCHANGE(spidev, send, recv, 100);
   +
   +   /* and clean up */
   +   SPI_SELECT(spidev, 0, false);
   +
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #1204: STM32H7 Use BDMA on SPI6

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #1204:
URL: https://github.com/apache/incubator-nuttx/pull/1204


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org