6 24
|
Extension Bus Advanced Guide | XDK110
2. Extension Bus Advanced API Overview
It is generally recommended to develop an application based on the highest API level the XDK framework supports,
although it is possible to access deeper API levels if the highest level does not provide the functionality required for a
specific purpose.
As with most XDK functionalities, there is an API allowing simple access to necessary functions for developing applications
that use the serial bus protocols on the Extension Bus. For that the BSP and Utils API provided by the Platform layer will be
used.
Picture 1 illustrates the interfaces for UART, SPI and I2C from the corresponding API.
Picture 1. API Overview
XDK Application
XDK Extension Bus API
UART
SPI
ExtensionPort
UARTTransceiver
freeRTOS
EmLib
2.1 Preparation
The application in this guide is based on an empty XdkApplicationTemplate project, which can be opened from the
appInitSystem()
Welcome-screen of the XDK-Workbench. The code snippets should be placed into
one after another. It
is recommended to create a new project for every chapter (UART, SPI, I2C), based on an empty XdkApplicationTemplate.