### Platform Support
The following shows uart module APIs available for each platform.
| | Linux
(Ubuntu) | Raspbian
(Raspberry Pi) | Nuttx
(STM32F4-Discovery) |
| :---: | :---: | :---: | :---: |
| uart.open | O | O | O |
| uartport.write | O | O | O |
| uartport.writeSync | O | O | O |
| uartport.close | O | O | O |
| uartport.closeSync | O | O | O |
## Contents
* [UART](#uart)
* [Constructor](#uart-constructor)
* [`new UART()`](#new-uart)
* [Prototype Methods](#uart-prototype-methods)
* [`uart.open(configurable[, callback])`](#uart-open)
* [UARTPort](#uartport)
* [Prototype Methods](#uartport-prototype-methods)
* [`uartport.write(data[, callback])`](#uartport-write)
* [`uartport.writeSync(data)`](#uartport-write-sync)
* [`uartport.close([callback])`](#uartport-close)
* [`uartport.closeSync()`](#uartport-close-sync)
* [Event](#uartport-event)
## Class: UART
## Constructor
### `new UART()`
Returns a new UART object which can open UART port.
## Prototype methods
### `uart.open(configuration[, callback])`
* `configuration