Skip to content

Instantly share code, notes, and snippets.

View cidzoo's full-sized avatar

Romain Maffina cidzoo

View GitHub Profile
@cidzoo
cidzoo / zc702_xadc_poll_vpvn.c
Last active June 8, 2016 10:07
Poll the XADC dedicated analog input VP/VN to sample external signals
#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)
{
@cidzoo
cidzoo / zc702_blink_ps_led.c
Last active May 23, 2016 10:18
Blink DS23 PS (Processing System a.k.a the ARM Cortex-A9) Led on the Xilinx ZC702 dev board