This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "xparameters.h" | |
#include "xadcps.h" | |
#include "stdio.h" | |
#include "sleep.h" | |
/** | |
* Return the fractional part of a float as an integer | |
*/ | |
int fract(float num) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @brief Blink DS23 PS (Processing System) Led on the Xilinx ZC702 dev board | |
* | |
* To be used with the default BSP generated by Xilinx SDK. | |
* | |
* Inspired by: | |
* - https://forums.xilinx.com/t5/Embedded-Processor-System-Design/ | |
* ZC706-GPIO-LED-amp-Pushbutton-switch-quot-Magic-Number-quot/td-p/540639 | |
* | |
* - http://www.xilinx.com/support/answers/51786.html |