Building a modular structure for project

Macro and independent C libraries that creates the MODBUS Cycle. It
needs the low-level implementation (serial and timer) and the data
handling code.
Added 2833x header files and tested the lifecycle

All things are working except the Serial library
Modbus working but with fixed baudrate

Serial working and is receiving and transmitting data, but there is some
issue on BRR calc (baudrate select registers)
DataResponse reads multiple registers
Added exception handling
General cleans at right parts of the code
Working reading from registers example

Detected Issue: probably there is some memory leak because of the use of
pointers
Working without memory leaks

Works with function code 0x04 and 0x06
Working with popular function codes

- Implemented function code 0x10 (preset multiple registers)
- Changed more variables to PlataformSettings.h
- Created Crc.h & Crc.c
- Created macro constants for common frames sizes
Changed folder structure

- Changed folder structure to:
- modbus source coude is at libs/modbus
- DSP headers files are at libs/DSP2833x (exclude it from compilation!)
- gtest is at libs/gtest
- All c source files needed to run code at f28335 are included at src/
- Your code has to be inserted at src/ folder
C/C++ Project Settings for CodeComposer

- Include all needed paths and symbols to your CCS project (File >
Import > C/C++ Project Settings)
Suggested folder structure

- Changed "libs" to "contrib"
- "libs" will be used to pre-compiled libs
- Fixed Timer.c expiredTime method
- Included some extern definition on PlataformSettings
Inlined some functions and modified the CCS xml settings
Removed PRE_RECEIVE state

Mixed the PRE_RECEIVE state with IDLE. Both do the same thing, but
PRE_RECEIVE processed some of the received data (because the frame can
have variable size)
Serial error check and Plataform especific headers

- Added an check to RXERROR flag (if it is set, it will go to MB_START
reseting all the things)
- Added f28335 headers to Serial.c and Timer.c
- Removed DSP28x_Project.h from PlataformSettings includes. For
production projects, I suggest to remove DSP2833x_Examples.h and include
your own optimized file
Fixed Slave ID checking

- Change the slave ID checked (was incompatible with CCS compiler)
- Changed Modbus.h MB_RTU_TCP to false (if you use a Modbus RTU-TCP
converter you can enable it to optimize some processes)
Fixed CRC checking