beautypg.com

Modifying the project c code, Analog essentials getting started guide – Maxim Integrated Analog Essentials Getting Started Guide for Zedboard User Manual

Page 13

background image

Analog Essentials Getting Started Guide

13

Zedboard Version

The remaining sections of this document are intended to serve only as brief outlines of and
introductions to the steps necessary to modify the hardware and software for this project. Detailed
instructions on these procedures and the design tools are beyond the scope of this document.

Modifying the Project C Code

This section provides detailed information on changing the project source code, recompiling, and redownloading.

1. Modifying the C code and recompiling

a. To modify the C code, navigate in the Project Explorer to the maximPMOD.c file.

b. Double-click on maximPMOD.c. This will open the file in the source code editor. The file maximPMOD.c

contains the main() function for the demonstration application. The main() function initializes several
board peripherals, then prints a menu to the USB UART on the host board. Each menu choice calls an
underlying menu function which allows functions of each peripheral module to be tested.