-
Notifications
You must be signed in to change notification settings - Fork 0
/
write.c
33 lines (32 loc) · 1.09 KB
/
write.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/***************************************************************************
* Copyright (C) 2019 by Ismail Yesildirek & Bijan Kianian
*
* Redistribution, modification or use of this software in source or binary
* forms is permitted as long as the files maintain this copyright. Users are
* permitted to modify this and use it to learn about the field of embedded
* software. Ismail Yesildirek, Bijan Kianian, and the University of Colorado are not
* liable for any misuse of this material.
*
*****************************************************************************/
/**
* @file write.c
* @brief This source file contains a c program to manipulate and test memory.
*
* @author Ismail Yesildirek & Bijan Kianian
* @date March 10 2019
* @version 1.1
*
*/
#include "memtest.h"
#include "write.h"
void write(int32_t* address, int32_t offset, int32_t value)
{
*(address + offset) = value;
#if FRDM
printf(" Value: %lx written at address: %p\n\n", value, address + offset);
#else
printf(" Value: %x written at address: %p\n\n", value, address + offset);
#endif
printf("PES_Prj1 >> ");
return;
}