Can OpenSerial() supports for all UARTs in MOD54415?
Can OpenSerial() supports for all UARTs in MOD54415?
There are 8 UARTs in MOD54415. Can OpenSerial() function support all these UARTs?
Robert Lee
National Synchrotron Radiation Research Center, Taiwan
National Synchrotron Radiation Research Center, Taiwan
Re: Can OpenSerial() supports for all UARTs in MOD54415?
If you look in the serial.cpp file is has the code below, so it looks like it does:
/**
* Opens a serial port.
*/
int OpenSerial( int portnum, unsigned int baudrate, int stop_bits, int data_bits, parity_mode parity )
{
InitializeMaps();
if(portnum<0) return SERIAL_ERR_NOSUCH_PORT;
if(portnum>9) return SERIAL_ERR_NOSUCH_PORT;
/**
* Opens a serial port.
*/
int OpenSerial( int portnum, unsigned int baudrate, int stop_bits, int data_bits, parity_mode parity )
{
InitializeMaps();
if(portnum<0) return SERIAL_ERR_NOSUCH_PORT;
if(portnum>9) return SERIAL_ERR_NOSUCH_PORT;
Re: Can OpenSerial() supports for all UARTs in MOD54415?
Make sure you do the pin assignments if you are using more than the first three ports...
#include<pins.h>
IE J2[xx].function(xx);
Look in nburn\mod54415\include\pinconstants.h to see what valid values of XX are.
Paul
#include<pins.h>
IE J2[xx].function(xx);
Look in nburn\mod54415\include\pinconstants.h to see what valid values of XX are.
Paul