Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

RS485 on BF518 EZ-Board

$
0
0

I would like to use an BF518F EZ-BOARD to drive an RS485 bus.
Something like this:
  http://armbedded.eu/node/322
I see that there is an option to use the RTS pin to drive the line
drivers.  As far as I can tell this option is not enabled for the
BF518F EZ-BOARD.  However in this file
  arch/blackfin/mach-bf527/boards/cm_bf527.c
I see this code
static struct resource bfin_uart1_resources[] = {
...
#ifdef CONFIG_BFIN_UART1_CTSRTS
    {    /* CTS pin */
        .start = GPIO_PF9,
        .end = GPIO_PF9,
        .flags = IORESOURCE_IO,
    },
    {    /* RTS pin */
        .start = GPIO_PF10,
        .end = GPIO_PF10,
        .flags = IORESOURCE_IO,
    },
#endif

Can I put something similar in this file?
  arch/blackfin/mach-bf518/boards/ezbrd.c

If so, what else do I need to do to make this work?

Thanks,
Mike


Viewing all articles
Browse latest Browse all 36216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>