|
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 <unistd.h>#include <fcntl.h>#include <sys/mman.h>#include "../address_map_arm.h"
Go to the source code of this file.
Functions | |
| int | open_physical (int) |
| void * | map_physical (int, unsigned int, unsigned int) |
| void | close_physical (int) |
| int | unmap_physical (void *, unsigned int) |
| int | increment_leds (int total) |
| void close_physical | ( | int | fd | ) |
| int increment_leds | ( | int | total | ) |
Definition at line 14 of file increment_leds.c.


| void * map_physical | ( | int | fd, |
| unsigned int | base, | ||
| unsigned int | span ) |
| int open_physical | ( | int | fd | ) |
| int unmap_physical | ( | void * | virtual_base, |
| unsigned int | span ) |