|
SWE-350 TOTP Generator Milestone 5
The DE-10 board has six 7-segment displays, this can be used to display and generate a time based one-time pin (TOTP).
|
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <fcntl.h>#include <sys/mman.h>#include <time.h>#include <math.h>#include "hwlib.h"#include "socal/socal.h"#include "socal/hps.h"#include "socal/alt_gpio.h"#include "socal/alt_spim.h"
