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).
Loading...
Searching...
No Matches
increment_leds.h
Go to the documentation of this file.
1// Header file made with chatGPT, this is not my code, generated Oct 22, 2024,
2// using the C code from the .C file
3#ifndef MEMORY_ACCESS_H
4#define MEMORY_ACCESS_H
5
6#include <stdio.h>
7#include <unistd.h>
8#include <fcntl.h>
9#include <sys/mman.h>
10#include "../address_map_arm.h"
11
12/* Prototypes for functions used to access physical memory addresses */
13int open_physical(int fd);
14void *map_physical(int fd, unsigned int base, unsigned int span);
15void close_physical(int fd);
16int unmap_physical(void *virtual_base, unsigned int span);
17
18/* Function to increment the contents of the red LED parallel port */
19int increment_leds(int total);
20
21#endif // MEMORY_ACCESS_H
void * virtual_base
Base for the LCD Used to define the address of the LCD.
Definition 7seg.c:25
int fd
Used to open /dev/mem for access to physical addresses Not made by Erick Grant, copyright Terasic Inc...
Definition 7seg.c:18
int increment_leds(int total)
int unmap_physical(void *virtual_base, unsigned int span)
void * map_physical(int fd, unsigned int base, unsigned int span)
void close_physical(int fd)
int open_physical(int fd)