lab 6 setup
This commit is contained in:
@@ -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"
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user