lab 6 setup

This commit is contained in:
2022-01-31 08:48:51 -06:00
parent 8817dae579
commit 86f5fd2066
8 changed files with 231 additions and 237 deletions

View File

@@ -1,7 +1,7 @@
/**
* @file memory.h
* @author Trevor Barnes
* @brief
* @brief Provides headers for reading, writing, and dumping memory
* @version 0.1
* @date 2022-01-19
*
@@ -16,8 +16,6 @@
#include <inttypes.h>
#include "uart_driver.h"
void initMemConsole();
/**
* Reads and prints the memory value at address provided: "addr"
*/

View File

@@ -1,7 +1,7 @@
/**
* @file memory.c
* @author Trevor Barnes
* @brief
* @brief Contains functionality for memory manipulation through the console
* @version 0.1
* @date 2022-01-19
*
@@ -13,13 +13,6 @@
#include <inttypes.h>
#include "memory.h"
#define F_CPU 16000000UL
void initMemConsole() {
init_usart2(57600, F_CPU);
printf("Memory Console Initialized! Type 'help' for info.\n\r");
}
void readMem(uint32_t addr) {
// Assign and casts a new int pointer the value of addr
uint32_t * memPtr = (uint32_t *)addr;