//------------------------------------------------------------------------
//  AN4147: Readme.txt
//------------------------------------------------------------------------
This AN contains 7 simple examples demonstrating serial communication using eDMA on MPC5607B

//------------------------------------------------------------------------
//  Source files
//------------------------------------------------------------------------
Examples for SCI demonstration are
* sci_app_01 - transmit one byte (received using real UART)
* sci_app_02 - transmit periodically multiple bytes
* sci_app_03 - receive one byte and then transmit the same byte using real UART (Note: SCI reciever is very much simplified)
* sci_app_04 - transmit once buffer of variable lenght (end of transmission is marked by '.' character)
* sci_app_05 - transmit only once buffer of fixed lenght (using scatter-gather)

Examples for SCI demonstration are
* spi_app_01 - SPI master sending to the DSPI peripheral of MCU
* spi_app_02 - SPI slave connected to the DSPI of the MCU

Application contains common files with main function from which specific example-function is called.
This depends on the macros sci/spi_app_0x

//------------------------------------------------------------------------
//  Building and Executing
//------------------------------------------------------------------------
Project can be build either using CW IDE or from command line Makefile
* CW IDE
	Open project file an4147.mcp (created for CW for MPC IDE version 5.9.0)
	Setup the example you want to build 
		- "Edit"->"Internal_Flash settings" or Alt+F7
		- In Tab "Language Settings -> C/C++ Preprocessor"  setup #define sci/spi_app_0X
		- Build using standard F7 command
		- To run the program go to the bin folder and locate load_to_flash.cmm to debug using Trace 32
* GNU Make
	Go to directory "src" and execute Makefile
	Makefile settings
		- compiler selection: set COMPILER="ghs" or "diab" or "cw"
		- setup installation path of the tools GHS_DIR, DIAB_DIR and CW_DIR
		- tool versions used for testing are
			- GHS version 5.16
			- WindRiver version 5.6.1
			- CW version 2.3
	Makefile execution
		make clean_all -- cleans all object and elf files
		make all		-- builds all 7 sample applications
		make all NUM=x  -- builds only application number xx (where NUM=1..7)
