|
Thanks. I included PLATFORM\AT91SAM9263EK\SRC\Drivers\Serial\at91sam9263ek_serial_USART2.reg to the platform.reg, and I was able to perform open() and close() to the serial port. However, I still could not send nor receive data. Any tips on how to change the "conflicts GPIO assignment"? I looked at the file PLATFORM\AT91SAM9263EK\SRC\Drivers\Serial\Serial_SAM9263EK.cpp and found the following code:
static const struct pio_desc hw_pio_us2[] = { {"TXD2", AT91C_PIN_PD(2), 0, PIO_DEFAULT, PIO_PERIPH_A}, {"RXD2", AT91C_PIN_PD(3), 0, PIO_DEFAULT, PIO_PERIPH_A}, {"RTS2", AT91C_PIN_PD(5), 0, PIO_DEFAULT, PIO_OUTPUT}, {"CTS2", AT91C_PIN_PD(6), 0, PIO_DEFAULT, PIO_PERIPH_B}, };
Please advise.
|