Technical Support
On-Line Manuals
RL-ARM User's Guide (MDK v4)
#include <net_config.h> void init_serial (void);
The init_serial function initializes the serial driver. The function:
The init_serial function is part of RL-TCPnet. The prototype is defined in net_config.h.
note
The init_serial function does not return any value.
com_getchar, com_putchar, com_tx_active
void init_serial (void) { /* Initialize the serial interface */ rbuf.in = 0; rbuf.out = 0; tbuf.in = 0; tbuf.out = 0; tx_active = __FALSE; /* Enable RxD1 and TxD1 pins. */ PINSEL0 = 0x00050000; /* 8-bits, no parity, 1 stop bit */ U1LCR = 0x83; /* 19200 Baud Rate @ 15MHz VPB Clock */ U1DLL = 49; U1DLM = 0; U1LCR = 0x03; /* Enable RDA and THRE interrupts. */ U1IER = 0x03; /* Enable UART1 interrupts. */ VICVectAddr14 = (U32)handler_UART1; VICVectCntl14 = 0x27; VICIntEnable = 1 << 7; }
Cookie Settings | Terms of Use | Privacy | Accessibility | Trademarks | Contact Us | Feedback
Copyright © 2005-2019 Arm Limited (or its affiliates). All rights reserved.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
Change Settings
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.