O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the FEX file format

Using any text editor, a FEX file will show that it is divided in various sections, prepended by a header within brackets, []. In the following example, the UART 0 component is explained:

[uart_para0]
uart_used = 1
uart_port = 0
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>

Here, the component called uart_para0, the first serial port or UART, has four fields that a serial driver would read. Each field is set up as a key-value pair, where the key is on the left-hand side and the value is on the right-hand side of the equal sign. In this case, the key uart_used is set to the number 1 indicating that this definition should be parsed and activated.

Following that is the uart_port ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required