2020-2021 Sunseeker Telemetry and Lighting System
ram.c
Go to the documentation of this file.
1
//*****************************************************************************
2
//
3
// ram.c - Driver for the ram Module.
4
//
5
//*****************************************************************************
6
7
//*****************************************************************************
8
//
11
//
12
//*****************************************************************************
13
14
#include "
inc/hw_memmap.h
"
15
16
#ifdef __MSP430_HAS_RC__
17
#include "
ram.h
"
18
19
#include <assert.h>
20
21
void
RAM_setSectorOff (uint8_t sector
22
)
23
{
24
//Write key to start write to RCCTL0 and sector
25
HWREG16
(RAM_BASE + OFS_RCCTL0) = (RCKEY + sector);
26
}
27
28
uint8_t RAM_getSectorState (uint8_t sector
29
)
30
{
31
return
(
HWREG8
(RAM_BASE + OFS_RCCTL0_L) & sector);
32
}
33
34
#endif
35
//*****************************************************************************
36
//
39
//
40
//*****************************************************************************
hw_memmap.h
HWREG8
#define HWREG8(x)
Definition:
hw_memmap.h:41
HWREG16
#define HWREG16(x)
Definition:
hw_memmap.h:39
ram.h
Software
Code Composer Studio Workspace
SunseekerTelemetryAndLightingSystem
Libraries
driverlib
MSP430F5xx_6xx
ram.c
Generated on Tue Apr 6 2021 20:40:57 for 2020-2021 Sunseeker Telemetry and Lighting System by
1.9.1