[riot-notifications] [RIOT-OS/RIOT] stm32 eth peripheral driver (#10633)

crest42 notifications at github.com
Wed Feb 13 17:26:14 CET 2019


A Short update with pretty good news so far. I was able to migrate the driver to the stm32 DMA API and run a successful test for an f767zi board. Thanks for the great work @vincent-d and @aabadie.

I had to remove the configuration for the f429zi since the DMA configuration is missing and I have no test board available. 

If some of you have the time it would be great if you could review this PR again :)

@aabadie iirc you have a f429zi available? Would you mind to add the configuration again after a successful test? The following should work:

```
/**
 * @name ETH configuration
 * @{
 */
#define ETH_NUMOF           (1)
#define ETH_RX_BUFFER_COUNT (4)
#define ETH_TX_BUFFER_COUNT (4)

#define ETH_RX_BUFFER_SIZE (1524)
#define ETH_TX_BUFFER_SIZE (1524)

static const eth_conf_t eth_config = {
    .mode = RMII,
    .mac = { 0 },
    .speed = ETH_SPEED_100TX_FD,
    .dma = 0,
    .dma_chan = 0,
    .phy_addr = 0x01,
    .pins = {
        GPIO_PIN(PORT_G, 13),
        GPIO_PIN(PORT_B, 13),
        GPIO_PIN(PORT_G, 11),
        GPIO_PIN(PORT_C, 4),
        GPIO_PIN(PORT_C, 5),
        GPIO_PIN(PORT_A, 7),
        GPIO_PIN(PORT_C, 1),
        GPIO_PIN(PORT_A, 2),
        GPIO_PIN(PORT_A, 1),
    }
};
/** @} */

/**
 * @name    DMA streams configuration
 * @{
 */
#ifdef MODULE_PERIPH_DMA
static const dma_conf_t dma_config[] = {
    { .stream = 8 },    /* DMA2 Stream 8 - ETH_TX    */
};

#define DMA_0_ISR  isr_dma2_stream0

#define DMA_NUMOF           (sizeof(dma_config) / sizeof(dma_config[0]))
#endif
/** @} */
```




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10633#issuecomment-463265924
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190213/119fa25a/attachment-0001.html>


More information about the notifications mailing list