added more code
This commit is contained in:
54
CPE325/FinalProject/Debug/FinalProject.d
Normal file
54
CPE325/FinalProject/Debug/FinalProject.d
Normal file
@ -0,0 +1,54 @@
|
||||
# FIXED
|
||||
|
||||
FinalProject.obj: ../FinalProject.c
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430fg4618.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/string.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/xlocale/_string.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdlib.h
|
||||
FinalProject.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdbool.h
|
||||
|
||||
../FinalProject.c:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430fg4618.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/string.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/xlocale/_string.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdlib.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdbool.h:
|
||||
|
1212
CPE325/FinalProject/Debug/FinalProject.map
Normal file
1212
CPE325/FinalProject/Debug/FinalProject.map
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/FinalProject/Debug/FinalProject.obj
Normal file
BIN
CPE325/FinalProject/Debug/FinalProject.obj
Normal file
Binary file not shown.
BIN
CPE325/FinalProject/Debug/FinalProject.out
Normal file
BIN
CPE325/FinalProject/Debug/FinalProject.out
Normal file
Binary file not shown.
10801
CPE325/FinalProject/Debug/FinalProject_linkInfo.xml
Normal file
10801
CPE325/FinalProject/Debug/FinalProject_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
CPE325/FinalProject/Debug/ccsObjs.opt
Normal file
1
CPE325/FinalProject/Debug/ccsObjs.opt
Normal file
@ -0,0 +1 @@
|
||||
"./FinalProject.obj" "../lnk_msp430fg4618.cmd" -llibc.a
|
166
CPE325/FinalProject/Debug/makefile
Normal file
166
CPE325/FinalProject/Debug/makefile
Normal file
@ -0,0 +1,166 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS
|
||||
|
||||
GEN_OPTS__FLAG :=
|
||||
GEN_CMDS__FLAG :=
|
||||
|
||||
ORDERED_OBJS += \
|
||||
"./FinalProject.obj" \
|
||||
"../lnk_msp430fg4618.cmd" \
|
||||
$(GEN_CMDS__FLAG) \
|
||||
-llibc.a \
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := DEL /F
|
||||
RMDIR := RMDIR /S/Q
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir_vars.mk
|
||||
-include subdir_rules.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C55_DEPS)),)
|
||||
-include $(C55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S67_DEPS)),)
|
||||
-include $(S67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S62_DEPS)),)
|
||||
-include $(S62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_DEPS)),)
|
||||
-include $(S_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(OPT_DEPS)),)
|
||||
-include $(OPT_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C??_DEPS)),)
|
||||
-include $(C??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
||||
-include $(ASM_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S??_DEPS)),)
|
||||
-include $(S??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C64_DEPS)),)
|
||||
-include $(C64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S64_DEPS)),)
|
||||
-include $(S64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(INO_DEPS)),)
|
||||
-include $(INO_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CLA_DEPS)),)
|
||||
-include $(CLA_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S55_DEPS)),)
|
||||
-include $(S55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SV7A_DEPS)),)
|
||||
-include $(SV7A_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C62_DEPS)),)
|
||||
-include $(C62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C67_DEPS)),)
|
||||
-include $(C67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(PDE_DEPS)),)
|
||||
-include $(PDE_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(K_DEPS)),)
|
||||
-include $(K_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C43_DEPS)),)
|
||||
-include $(C43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S43_DEPS)),)
|
||||
-include $(S43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_DEPS)),)
|
||||
-include $(ASM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SA_DEPS)),)
|
||||
-include $(SA_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
EXE_OUTPUTS += \
|
||||
FinalProject.out \
|
||||
|
||||
EXE_OUTPUTS__QUOTED += \
|
||||
"FinalProject.out" \
|
||||
|
||||
BIN_OUTPUTS += \
|
||||
FinalProject.hex \
|
||||
|
||||
BIN_OUTPUTS__QUOTED += \
|
||||
"FinalProject.hex" \
|
||||
|
||||
|
||||
# All Target
|
||||
all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@$(MAKE) --no-print-directory -Onone "FinalProject.out"
|
||||
|
||||
# Tool invocations
|
||||
FinalProject.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@echo 'Building target: "$@"'
|
||||
@echo 'Invoking: MSP430 Linker'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=16 --advice:power=all --define=__MSP430FG4618__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU19 -z -m"FinalProject.map" --heap_size=80 --stack_size=80 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="FinalProject_linkInfo.xml" --use_hw_mpy=16 --rom_model -o "FinalProject.out" $(ORDERED_OBJS)
|
||||
@echo 'Finished building target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
FinalProject.hex: $(EXE_OUTPUTS)
|
||||
@echo 'Building secondary target: "$@"'
|
||||
@echo 'Invoking: MSP430 Hex Utility'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "FinalProject.hex" $(EXE_OUTPUTS__QUOTED)
|
||||
@echo 'Finished building secondary target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED)
|
||||
-$(RM) "FinalProject.obj"
|
||||
-$(RM) "FinalProject.d"
|
||||
-@echo 'Finished clean'
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY:
|
||||
|
||||
-include ../makefile.targets
|
||||
|
8
CPE325/FinalProject/Debug/objects.mk
Normal file
8
CPE325/FinalProject/Debug/objects.mk
Normal file
@ -0,0 +1,8 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -llibc.a
|
||||
|
115
CPE325/FinalProject/Debug/sources.mk
Normal file
115
CPE325/FinalProject/Debug/sources.mk
Normal file
@ -0,0 +1,115 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C55_SRCS :=
|
||||
A_SRCS :=
|
||||
ASM_UPPER_SRCS :=
|
||||
EXE_SRCS :=
|
||||
LDS_UPPER_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CMD_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C??_SRCS :=
|
||||
C64_SRCS :=
|
||||
C67_SRCS :=
|
||||
SA_SRCS :=
|
||||
S64_SRCS :=
|
||||
OPT_SRCS :=
|
||||
CXX_SRCS :=
|
||||
S67_SRCS :=
|
||||
S??_SRCS :=
|
||||
PDE_SRCS :=
|
||||
SV7A_SRCS :=
|
||||
K_SRCS :=
|
||||
CLA_SRCS :=
|
||||
S55_SRCS :=
|
||||
LD_UPPER_SRCS :=
|
||||
OUT_SRCS :=
|
||||
INO_SRCS :=
|
||||
LIB_SRCS :=
|
||||
ASM_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
S43_SRCS :=
|
||||
LD_SRCS :=
|
||||
CMD_UPPER_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
C++_SRCS :=
|
||||
C43_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
LDS_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
S62_SRCS :=
|
||||
C62_SRCS :=
|
||||
C_SRCS :=
|
||||
C55_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S67_DEPS :=
|
||||
S62_DEPS :=
|
||||
S_DEPS :=
|
||||
OPT_DEPS :=
|
||||
C??_DEPS :=
|
||||
ASM_UPPER_DEPS :=
|
||||
S??_DEPS :=
|
||||
C64_DEPS :=
|
||||
CXX_DEPS :=
|
||||
S64_DEPS :=
|
||||
INO_DEPS :=
|
||||
CLA_DEPS :=
|
||||
S55_DEPS :=
|
||||
SV7A_DEPS :=
|
||||
EXE_OUTPUTS :=
|
||||
C62_DEPS :=
|
||||
C67_DEPS :=
|
||||
PDE_DEPS :=
|
||||
K_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
BIN_OUTPUTS :=
|
||||
C++_DEPS :=
|
||||
C43_DEPS :=
|
||||
S43_DEPS :=
|
||||
OBJS :=
|
||||
ASM_DEPS :=
|
||||
S_UPPER_DEPS :=
|
||||
CPP_DEPS :=
|
||||
SA_DEPS :=
|
||||
C++_DEPS__QUOTED :=
|
||||
OPT_DEPS__QUOTED :=
|
||||
S_UPPER_DEPS__QUOTED :=
|
||||
SA_DEPS__QUOTED :=
|
||||
C??_DEPS__QUOTED :=
|
||||
S67_DEPS__QUOTED :=
|
||||
C55_DEPS__QUOTED :=
|
||||
CC_DEPS__QUOTED :=
|
||||
ASM_UPPER_DEPS__QUOTED :=
|
||||
SV7A_DEPS__QUOTED :=
|
||||
S??_DEPS__QUOTED :=
|
||||
OBJS__QUOTED :=
|
||||
C67_DEPS__QUOTED :=
|
||||
K_DEPS__QUOTED :=
|
||||
S55_DEPS__QUOTED :=
|
||||
INO_DEPS__QUOTED :=
|
||||
C62_DEPS__QUOTED :=
|
||||
C_DEPS__QUOTED :=
|
||||
C_UPPER_DEPS__QUOTED :=
|
||||
C43_DEPS__QUOTED :=
|
||||
CPP_DEPS__QUOTED :=
|
||||
BIN_OUTPUTS__QUOTED :=
|
||||
C64_DEPS__QUOTED :=
|
||||
CXX_DEPS__QUOTED :=
|
||||
CLA_DEPS__QUOTED :=
|
||||
S_DEPS__QUOTED :=
|
||||
ASM_DEPS__QUOTED :=
|
||||
S43_DEPS__QUOTED :=
|
||||
EXE_OUTPUTS__QUOTED :=
|
||||
S64_DEPS__QUOTED :=
|
||||
S62_DEPS__QUOTED :=
|
||||
PDE_DEPS__QUOTED :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
15
CPE325/FinalProject/Debug/subdir_rules.mk
Normal file
15
CPE325/FinalProject/Debug/subdir_rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.obj: ../%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
|
||||
@echo 'Building file: "$<"'
|
||||
@echo 'Invoking: MSP430 Compiler'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=16 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/FinalProject" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power=all --define=__MSP430FG4618__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU19 --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
|
||||
@echo 'Finished building: "$<"'
|
||||
@echo ' '
|
||||
|
||||
|
29
CPE325/FinalProject/Debug/subdir_vars.mk
Normal file
29
CPE325/FinalProject/Debug/subdir_vars.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CMD_SRCS += \
|
||||
../lnk_msp430fg4618.cmd
|
||||
|
||||
C_SRCS += \
|
||||
../FinalProject.c
|
||||
|
||||
C_DEPS += \
|
||||
./FinalProject.d
|
||||
|
||||
OBJS += \
|
||||
./FinalProject.obj
|
||||
|
||||
OBJS__QUOTED += \
|
||||
"FinalProject.obj"
|
||||
|
||||
C_DEPS__QUOTED += \
|
||||
"FinalProject.d"
|
||||
|
||||
C_SRCS__QUOTED += \
|
||||
"../FinalProject.c"
|
||||
|
||||
|
587
CPE325/FinalProject/FinalProject.c
Normal file
587
CPE325/FinalProject/FinalProject.c
Normal file
@ -0,0 +1,587 @@
|
||||
#include <msp430.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define SW1_PRESSED ((BIT0&P1IFG)==0) // SW1 Status
|
||||
#define SW2_PRESSED ((BIT1&P1IFG)==0) // SW2 Status
|
||||
#define checkTime() (clockCheck=true)
|
||||
#define GREENLED() (P2OUT|=BIT2)
|
||||
#define REDLED() (P5OUT|=BIT1)
|
||||
#define GREENLEDOFF() (P2OUT&=~BIT2)
|
||||
#define REDLEDOFF() (P5OUT&=~BIT1)
|
||||
|
||||
// Struct used to define users
|
||||
struct user
|
||||
{
|
||||
char *name;
|
||||
char *password;
|
||||
int admin;
|
||||
};
|
||||
struct user andrew;
|
||||
struct user joe;
|
||||
struct user bill;
|
||||
struct user jeff;
|
||||
struct user andrew = {.name = "Andrew", .admin = 1, .password = "an"};
|
||||
struct user joe = { .name = "Joe", .admin = 1, .password = "jo" };
|
||||
struct user bill = { .name = "Bill", .admin = 0, .password = "bi" };
|
||||
struct user jeff = { .name = "Jeff", .admin = 0, .password = "je" };
|
||||
|
||||
char user[];
|
||||
char cpu[];
|
||||
char askReset[];
|
||||
char password[];
|
||||
char command[];
|
||||
//int admin;
|
||||
int timeout=0;
|
||||
int timer=0;
|
||||
int Up=1;
|
||||
bool clockCheck = false;
|
||||
char SystemTime[];
|
||||
//int diskspace = rand();
|
||||
|
||||
char time[];
|
||||
|
||||
bool test = false;
|
||||
int update=0, timeCheck=0, upgrade=0, clock=0, timerCheck=0, data=0, logout=0;
|
||||
|
||||
bool admin = false;
|
||||
bool nonadmin = false;
|
||||
|
||||
// Characters for clock
|
||||
//#define RTC_STATE_SECONDS 0
|
||||
//#define RTC_STATE_MINUTES 1
|
||||
//#define RTC_STATE_HOURS 2
|
||||
//
|
||||
//volatile uint8_t timerCount = 0;
|
||||
//volatile uint8_t rtcState[3] = {0, 0, 0};
|
||||
|
||||
unsigned int s, m, h;
|
||||
int timerCount =0;
|
||||
int diskspace;
|
||||
|
||||
|
||||
// user tries to update and gets a buzzer and light
|
||||
void clockFunc();
|
||||
|
||||
//upgrade the packages
|
||||
void upgradeFunc();
|
||||
|
||||
// set a timer
|
||||
void setTimer();
|
||||
|
||||
//void buzzer();
|
||||
void resetBuzzer();
|
||||
|
||||
void setBuzzer();
|
||||
|
||||
void timerAInit(void){
|
||||
// Enable Timer Interrupts
|
||||
TACCTL0 = CCIE;
|
||||
|
||||
// SMCLK, Count to CCR0 Value, Divide by 8
|
||||
TA0CTL = TASSEL_2 + MC_1 + ID_3;
|
||||
|
||||
// 1,000,000 / 8 / 25 = 5000
|
||||
TACCR0 = 5000;
|
||||
}
|
||||
|
||||
// checks string to see if correct,
|
||||
// returns true if one of the users, false if not
|
||||
bool stringCheck(char* string);
|
||||
void updateFunc(); //update code when "update" is entered
|
||||
|
||||
void setup();
|
||||
|
||||
|
||||
void promptOutput(); // Outputs prompt
|
||||
|
||||
void commandCheck(char* command);
|
||||
|
||||
|
||||
void UART_setup(); // Configures UCI to work in the UART mode
|
||||
// at the baud rate of 115200.
|
||||
void UART_Send_Character(char my_char); // Sends a character via UART
|
||||
|
||||
void UARTsendString(char* string); // Sends a string via UART using
|
||||
// send_Character(char c)
|
||||
|
||||
void UARTgetWord(char* buffer, int limit);
|
||||
/* Receives characters via UART until it finds
|
||||
the new line character or until the limit of
|
||||
characters is exceeded. Writes that string
|
||||
(excluding the new line character) to the
|
||||
buffer allocated outside of the function.
|
||||
Terminates the string with the null
|
||||
character */
|
||||
|
||||
int stringLength(char *str); // String length
|
||||
|
||||
int main(void)
|
||||
{
|
||||
// WDTCTL = WDT_ADLY_1000; // 1 s interval
|
||||
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
|
||||
UART_setup();
|
||||
setup();
|
||||
//timerAInit();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
clockFunc();
|
||||
while(1){
|
||||
//timeout =0;
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
clockFunc();
|
||||
UARTsendString("\nPlease enter a username: "); // Output
|
||||
UCA0RXBUF = 0x0D; // Carriage Return
|
||||
clockFunc();
|
||||
UARTgetWord(user, 30);
|
||||
//clockFunc();
|
||||
bool usercheck = stringCheck(user);
|
||||
clockFunc();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
clockFunc();
|
||||
UARTsendString("\nPlease enter the password: ");
|
||||
clockFunc();
|
||||
//timeout = 1;
|
||||
UARTgetWord(password, 30);
|
||||
clockFunc();
|
||||
bool passcheck = stringCheck(password);
|
||||
clockFunc();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
clockFunc();
|
||||
if(usercheck && passcheck && admin) // If user and password match
|
||||
{
|
||||
clockFunc();
|
||||
while(1){
|
||||
clockFunc();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
promptOutput();
|
||||
clockFunc();
|
||||
// char* commandEq;
|
||||
UARTgetWord(command, 50);
|
||||
//commandCheck(command);
|
||||
//if(update==1)
|
||||
if(strcmp(command, "update")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
updateFunc();
|
||||
//for(i=0; i ==stringLength(command); i++) command[i]=0x00;
|
||||
}
|
||||
else if(strcmp(command, "upgrade")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
upgradeFunc();
|
||||
}
|
||||
else if(strcmp(command, "date")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
clockFunc();
|
||||
UARTsendString("The date is 1980, November 1. The time is ");
|
||||
UARTsendString(SystemTime);
|
||||
}
|
||||
else if(strcmp(command, "timer")==0) // timer to reboot
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // half-second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
setTimer();
|
||||
}
|
||||
else if(strcmp(command, "data")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // half-second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
clockFunc();
|
||||
setTimer();
|
||||
}
|
||||
else if(strcmp(command, "logout")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // half-second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
clockFunc();
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
clockFunc();
|
||||
REDLED();
|
||||
setBuzzer();
|
||||
__delay_cycles(500000); // half-second
|
||||
resetBuzzer();
|
||||
REDLEDOFF();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("Unknown command.");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(usercheck && passcheck && admin==false)
|
||||
{
|
||||
while(1){
|
||||
clockFunc();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
promptOutput();
|
||||
UARTgetWord(command, 50);
|
||||
commandCheck(command);
|
||||
if(strcmp(command, "upgrade")==0 || strcmp(command, "update")==0)
|
||||
{
|
||||
clockFunc();
|
||||
REDLED();
|
||||
setBuzzer();
|
||||
__delay_cycles(500000); // half-second
|
||||
resetBuzzer();
|
||||
REDLEDOFF();
|
||||
clockFunc();
|
||||
}
|
||||
else if(strcmp(command, "date")==0)
|
||||
{
|
||||
clockFunc();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("The date is 1980, November 1. The time is ");
|
||||
UARTsendString(SystemTime);
|
||||
clockFunc();
|
||||
}
|
||||
else if(strcmp(command, "timer")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // half-second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
clockFunc();
|
||||
setTimer();
|
||||
}
|
||||
else if(strcmp(command, "logout")==0)
|
||||
{
|
||||
GREENLED();
|
||||
__delay_cycles(500000); // half-second
|
||||
GREENLEDOFF();
|
||||
clockFunc();
|
||||
clockFunc();
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
REDLED();
|
||||
setBuzzer();
|
||||
__delay_cycles(500000); // half-second
|
||||
resetBuzzer();
|
||||
REDLEDOFF();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("Unknown command.");
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
clockFunc();
|
||||
UCA0TXBUF = '\n'; // Newline
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
REDLED();
|
||||
setBuzzer();
|
||||
__delay_cycles(500000); // half-second
|
||||
resetBuzzer();
|
||||
REDLEDOFF();
|
||||
UARTsendString("\nInvalid username or password! Please try again.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void promptOutput()
|
||||
{
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nWelcome!! Enter a command: \n");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n1. Set timer: timer");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n2. Check for system updates: update");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n3. Update system: upgrade");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n4. Check system time: date");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n5. Logout: logout");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nCommand: ");
|
||||
}
|
||||
|
||||
void UART_setup()
|
||||
{
|
||||
P2SEL |= BIT4 + BIT5; // Set USCI_A0 RXD/TXD to receive/transmit data
|
||||
UCA0CTL1 |= UCSWRST; // Set software reset during initialization
|
||||
UCA0CTL0 = 0; // USCI_A0 control register
|
||||
UCA0CTL1 |= UCSSEL_2; // Clock source SMCLK
|
||||
UCA0BR0 = 0x09; // 1048576 Hz / 115200 lower byte
|
||||
UCA0BR1 = 0x00; // upper byte
|
||||
UCA0MCTL = 0x02; // Modulation (UCBRS0=0x01, UCOS16=0)
|
||||
UCA0CTL1 &= ~UCSWRST; // Clear software reset to initialize USCI state machine
|
||||
}
|
||||
|
||||
void setBuzzer()
|
||||
{
|
||||
TBCCR0 = 250;
|
||||
TBCCR4 = 125;
|
||||
}
|
||||
|
||||
void resetBuzzer()
|
||||
{
|
||||
TBCCR0 = 3500;
|
||||
TBCCR4 = 3600;
|
||||
}
|
||||
|
||||
|
||||
void UART_Send_Character(char my_char)
|
||||
{
|
||||
while (!(IFG2 & UCA0TXIFG)); // Wait for previous character to transmit
|
||||
UCA0TXBUF = my_char; // Put character into tx buffer
|
||||
}
|
||||
|
||||
void UARTsendString(char* string)
|
||||
{
|
||||
int i=0;
|
||||
int len = stringLength(string);
|
||||
for(i =0; i<=len; i++) //loops over word
|
||||
{
|
||||
UART_Send_Character(string[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void UARTgetWord(char* buffer, int limit)
|
||||
{
|
||||
int i;
|
||||
for(i =0; i < limit; i++){
|
||||
while(!(IFG2&UCA0RXIFG)); // Wait for a new character
|
||||
buffer[i] = UCA0RXBUF;
|
||||
if(buffer[i] == '\r' || buffer[i] == '\n' || buffer[i] == '\0'){
|
||||
buffer[i] = '\0'; // end is here in UCA0RXBUF
|
||||
return;
|
||||
}
|
||||
while(!(IFG2&UCA0TXIFG)); // Wait until TXBUF is free
|
||||
UCA0TXBUF = UCA0RXBUF; // TXBUF <= RXBUF (echo)
|
||||
}
|
||||
}
|
||||
|
||||
int stringLength(char *str) // gets string length for word
|
||||
{
|
||||
int i=0;
|
||||
while(str[i] != '\0') i++;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
// Port 1 interrupt service routine
|
||||
#pragma vector = PORT1_VECTOR
|
||||
__interrupt void Port1_ISR (void) {
|
||||
if(SW1_PRESSED)
|
||||
{
|
||||
main();
|
||||
}
|
||||
P1IES |= BIT0; // P1.0 hi/low edge
|
||||
P1IFG &= ~BIT0; // P1.0 IFG cleared
|
||||
P1IES |= BIT1; // P1.1 hi/low edge
|
||||
P1IFG &= ~BIT1; // P1.1 IFG cleared
|
||||
}
|
||||
|
||||
bool stringCheck(char* string)
|
||||
{
|
||||
if(strcmp(string,andrew.name) == 0
|
||||
|| strcmp(string,joe.name) == 0
|
||||
|| strcmp(string,andrew.password)== 0
|
||||
|| strcmp(string,joe.password)== 0)
|
||||
{
|
||||
admin = true;
|
||||
return true;
|
||||
}
|
||||
else if(strcmp(string,bill.name) == 0
|
||||
|| strcmp(string,jeff.password)== 0
|
||||
|| strcmp(string,jeff.name) == 0
|
||||
|| strcmp(string,bill.password)== 0)
|
||||
{
|
||||
admin = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// UARTsendString("False ");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void setTimer()
|
||||
{
|
||||
UARTsendString("The system will reboot in 30 seconds.");
|
||||
//UARTgetWord(time,5);
|
||||
WDTCTL = WDT_ADLY_1000;
|
||||
timerCheck=1;
|
||||
}
|
||||
|
||||
void commandCheck(char* command)
|
||||
{
|
||||
if(strcmp(command, "update")==0)
|
||||
{
|
||||
update = 1;
|
||||
return;
|
||||
}
|
||||
else if(strcmp(command, "upgrade")==0)
|
||||
{
|
||||
upgrade = 1;
|
||||
return;
|
||||
}
|
||||
else if(strcmp(command, "time")==0)
|
||||
{
|
||||
timerCheck = 1;
|
||||
return;
|
||||
}
|
||||
else if(strcmp(command, "clock")==0)
|
||||
{
|
||||
clock = 1;
|
||||
return;
|
||||
}
|
||||
else if(strcmp(command, "logout")==0)
|
||||
{
|
||||
logout = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Timer Interrupt
|
||||
//#pragma vector = TIMER0_A0_VECTOR
|
||||
//__interrupt void Timer_A(void){
|
||||
// // static int timerCount =0;
|
||||
// static int m =0;
|
||||
// static int h =0;
|
||||
// static int s =0;
|
||||
// s++;
|
||||
// if (s >= 60){
|
||||
// s = 0;
|
||||
// m++;
|
||||
// if (m >= 60){
|
||||
// m = 0;
|
||||
// h++;
|
||||
// if (h >= 24) {
|
||||
// h = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// sprintf(cpu, "%d", s);
|
||||
// sprintf(SystemTime, "%d%d%d",h,m,s);
|
||||
// //TA0CCTL0 &=~ TAIFG;
|
||||
//}
|
||||
|
||||
|
||||
void setup()
|
||||
{
|
||||
_EINT(); // Enable interrupts
|
||||
IE1 |= WDTIE; // Enable WDT interrupt
|
||||
P2DIR |= (BIT1 + BIT2); // P2.1 and P2.2 set up as output
|
||||
P5DIR |= BIT1; // REDLED set up as output
|
||||
P2OUT &= ~BIT1; // Turn on LED2
|
||||
P2OUT &= ~BIT2; // Turn Off LED1
|
||||
P1IE |= BIT0; // P1.0 interrupt enabled
|
||||
P1IE |= BIT1; // P1.1 interrupt enabled
|
||||
P1IES |= BIT0; // P1.0 hi/low edge
|
||||
P1IFG &= ~BIT0; // P1.0 IFG cleared
|
||||
P1IES |= BIT1; // P1.1 hi/low edge
|
||||
P1IFG &= ~BIT1; // P1.1 IFG cleared
|
||||
P2OUT &= ~(BIT1+BIT2); // Turn Off LED1
|
||||
GREENLEDOFF();
|
||||
REDLEDOFF();
|
||||
TB0CTL = TBSSEL_2 + MC_1; // SMCLK Clock source Upmode
|
||||
TB0CCR0 = 32765; // Set TB4 count value
|
||||
TB0CCR4 = 32767; // Set TB4 count value
|
||||
P3SEL |= 0x20; // P3.5 as special function
|
||||
P3DIR |= 0x20; // P3.5 as digital output
|
||||
TB0CCTL4 = OUTMOD_3; // Set/Rest mode
|
||||
}
|
||||
|
||||
void updateFunc()
|
||||
{
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
// P2OUT |= BIT2;
|
||||
UARTsendString("\nUpdating packages.");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nHit:1 https://brave-browser-apt-release.s3.brave.com trusty InRelease");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nHit:2 https://deb.debian.org/debian bullseye InRelease");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nHit:3 https://repo.steampowered.com/steam stable InRelease");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nHit:4 https://typora.io/linux ./ InRelease [793 B]");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nReading package lists... Done");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n9 packages can be upgraded. Run 'apt list --upgradable' to see them.");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
|
||||
}
|
||||
void clockFunc()
|
||||
{
|
||||
|
||||
static int timerCount =0;
|
||||
static int h=0,m=0,s=0;
|
||||
timerCount++;
|
||||
timerCount = 0;
|
||||
s++;
|
||||
if (s >= 60){
|
||||
s = 0;
|
||||
m++;
|
||||
if (m >= 60){
|
||||
m = 0;
|
||||
h++;
|
||||
if (h >= 24) {
|
||||
h = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sprintf(cpu, "%d", s);
|
||||
sprintf(SystemTime, "%d%d%d",h,m,s);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void upgradeFunc()
|
||||
{
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\nThe following packages will be upgraded: ");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n brave-browser steam:i386 steam-launcher steam-libs-amd64 steam-libs-i386:i386 typora");
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
UARTsendString("\n Preparing to unpack .../0-brave-browser_1.32.113_amd64.deb ...");
|
||||
}
|
||||
|
||||
|
||||
// Watchdog Timer interrupt service routine
|
||||
#pragma vector=WDT_VECTOR
|
||||
__interrupt void watchdog_timer(void)
|
||||
{
|
||||
static int i =0;
|
||||
//static int c =0;
|
||||
|
||||
i++;
|
||||
if(i==30 && timerCheck==1){
|
||||
setBuzzer();
|
||||
UCA0TXBUF = 0x0D; // Carriage Return
|
||||
timerCheck=0;
|
||||
IFG2=1;
|
||||
resetBuzzer();
|
||||
// systemTime();
|
||||
main();
|
||||
}
|
||||
|
||||
|
||||
// systemTime();
|
||||
//IFG2=1;
|
||||
}
|
184
CPE325/FinalProject/lnk_msp430fg4618.cmd
Executable file
184
CPE325/FinalProject/lnk_msp430fg4618.cmd
Executable file
@ -0,0 +1,184 @@
|
||||
/* ============================================================================ */
|
||||
/* Copyright (c) 2020, Texas Instruments Incorporated */
|
||||
/* All rights reserved. */
|
||||
/* */
|
||||
/* Redistribution and use in source and binary forms, with or without */
|
||||
/* modification, are permitted provided that the following conditions */
|
||||
/* are met: */
|
||||
/* */
|
||||
/* * Redistributions of source code must retain the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer. */
|
||||
/* */
|
||||
/* * Redistributions in binary form must reproduce the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer in the */
|
||||
/* documentation and/or other materials provided with the distribution. */
|
||||
/* */
|
||||
/* * Neither the name of Texas Instruments Incorporated nor the names of */
|
||||
/* its contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */
|
||||
/* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
|
||||
/* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */
|
||||
/* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */
|
||||
/* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
|
||||
/* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR */
|
||||
/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ============================================================================ */
|
||||
|
||||
/******************************************************************************/
|
||||
/* lnk_msp430fg4618.cmd - LINKER COMMAND FILE FOR LINKING MSP430FG4618 PROGRAMS */
|
||||
/* */
|
||||
/* Usage: lnk430 <obj files...> -o <out file> -m <map file> lnk.cmd */
|
||||
/* cl430 <src files...> -z -o <out file> -m <map file> lnk.cmd */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* These linker options are for command line linking only. For IDE linking, */
|
||||
/* you should set your linker options in Project Properties */
|
||||
/* -c LINK USING C CONVENTIONS */
|
||||
/* -stack 0x0100 SOFTWARE STACK SIZE */
|
||||
/* -heap 0x0100 HEAP AREA SIZE */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Version: 1.211 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the system memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
SFR : origin = 0x0000, length = 0x0010
|
||||
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
|
||||
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
|
||||
RAM : origin = 0x1100, length = 0x2000
|
||||
INFOA : origin = 0x1080, length = 0x0080
|
||||
INFOB : origin = 0x1000, length = 0x0080
|
||||
FLASH : origin = 0x3100, length = 0xCEBE
|
||||
FLASH2 : origin = 0x10000,length = 0x10000
|
||||
BSLSIGNATURE : origin = 0xFFBE, length = 0x0002, fill = 0xFFFF
|
||||
INT00 : origin = 0xFFC0, length = 0x0002
|
||||
INT01 : origin = 0xFFC2, length = 0x0002
|
||||
INT02 : origin = 0xFFC4, length = 0x0002
|
||||
INT03 : origin = 0xFFC6, length = 0x0002
|
||||
INT04 : origin = 0xFFC8, length = 0x0002
|
||||
INT05 : origin = 0xFFCA, length = 0x0002
|
||||
INT06 : origin = 0xFFCC, length = 0x0002
|
||||
INT07 : origin = 0xFFCE, length = 0x0002
|
||||
INT08 : origin = 0xFFD0, length = 0x0002
|
||||
INT09 : origin = 0xFFD2, length = 0x0002
|
||||
INT10 : origin = 0xFFD4, length = 0x0002
|
||||
INT11 : origin = 0xFFD6, length = 0x0002
|
||||
INT12 : origin = 0xFFD8, length = 0x0002
|
||||
INT13 : origin = 0xFFDA, length = 0x0002
|
||||
INT14 : origin = 0xFFDC, length = 0x0002
|
||||
INT15 : origin = 0xFFDE, length = 0x0002
|
||||
INT16 : origin = 0xFFE0, length = 0x0002
|
||||
INT17 : origin = 0xFFE2, length = 0x0002
|
||||
INT18 : origin = 0xFFE4, length = 0x0002
|
||||
INT19 : origin = 0xFFE6, length = 0x0002
|
||||
INT20 : origin = 0xFFE8, length = 0x0002
|
||||
INT21 : origin = 0xFFEA, length = 0x0002
|
||||
INT22 : origin = 0xFFEC, length = 0x0002
|
||||
INT23 : origin = 0xFFEE, length = 0x0002
|
||||
INT24 : origin = 0xFFF0, length = 0x0002
|
||||
INT25 : origin = 0xFFF2, length = 0x0002
|
||||
INT26 : origin = 0xFFF4, length = 0x0002
|
||||
INT27 : origin = 0xFFF6, length = 0x0002
|
||||
INT28 : origin = 0xFFF8, length = 0x0002
|
||||
INT29 : origin = 0xFFFA, length = 0x0002
|
||||
INT30 : origin = 0xFFFC, length = 0x0002
|
||||
RESET : origin = 0xFFFE, length = 0x0002
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the sections allocation into memory */
|
||||
/****************************************************************************/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.bss : {} > RAM /* Global & static vars */
|
||||
.data : {} > RAM /* Global & static vars */
|
||||
.TI.noinit : {} > RAM /* For #pragma noinit */
|
||||
.sysmem : {} > RAM /* Dynamic memory allocation area */
|
||||
.stack : {} > RAM (HIGH) /* Software system stack */
|
||||
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.text : {} > FLASH /* Code */
|
||||
#else
|
||||
.text : {} >> FLASH2 | FLASH /* Code */
|
||||
#endif
|
||||
.text:_isr : {} > FLASH /* ISR Code space */
|
||||
.cinit : {} > FLASH /* Initialization tables */
|
||||
#ifndef __LARGE_DATA_MODEL__
|
||||
.const : {} > FLASH /* Constant data */
|
||||
#else
|
||||
.const : {} >> FLASH | FLASH2 /* Constant data */
|
||||
#endif
|
||||
.bslsignature : {} > BSLSIGNATURE /* BSL Signature */
|
||||
.cio : {} > RAM /* C I/O Buffer */
|
||||
|
||||
.pinit : {} > FLASH /* C++ Constructor tables */
|
||||
.binit : {} > FLASH /* Boot-time Initialization tables */
|
||||
.init_array : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.exidx : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.extab : {} > FLASH /* C++ Constructor tables */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
|
||||
#else
|
||||
.TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.infoA : {} > INFOA /* MSP430 INFO FLASH Memory segments */
|
||||
.infoB : {} > INFOB
|
||||
|
||||
/* MSP430 Interrupt vectors */
|
||||
.int00 : {} > INT00
|
||||
.int01 : {} > INT01
|
||||
.int02 : {} > INT02
|
||||
.int03 : {} > INT03
|
||||
.int04 : {} > INT04
|
||||
.int05 : {} > INT05
|
||||
.int06 : {} > INT06
|
||||
.int07 : {} > INT07
|
||||
.int08 : {} > INT08
|
||||
.int09 : {} > INT09
|
||||
.int10 : {} > INT10
|
||||
.int11 : {} > INT11
|
||||
.int12 : {} > INT12
|
||||
.int13 : {} > INT13
|
||||
DAC12 : { * ( .int14 ) } > INT14 type = VECT_INIT
|
||||
DMA : { * ( .int15 ) } > INT15 type = VECT_INIT
|
||||
BASICTIMER : { * ( .int16 ) } > INT16 type = VECT_INIT
|
||||
PORT2 : { * ( .int17 ) } > INT17 type = VECT_INIT
|
||||
USART1TX : { * ( .int18 ) } > INT18 type = VECT_INIT
|
||||
USART1RX : { * ( .int19 ) } > INT19 type = VECT_INIT
|
||||
PORT1 : { * ( .int20 ) } > INT20 type = VECT_INIT
|
||||
TIMERA1 : { * ( .int21 ) } > INT21 type = VECT_INIT
|
||||
TIMERA0 : { * ( .int22 ) } > INT22 type = VECT_INIT
|
||||
ADC12 : { * ( .int23 ) } > INT23 type = VECT_INIT
|
||||
USCIAB0TX : { * ( .int24 ) } > INT24 type = VECT_INIT
|
||||
USCIAB0RX : { * ( .int25 ) } > INT25 type = VECT_INIT
|
||||
WDT : { * ( .int26 ) } > INT26 type = VECT_INIT
|
||||
COMPARATORA : { * ( .int27 ) } > INT27 type = VECT_INIT
|
||||
TIMERB1 : { * ( .int28 ) } > INT28 type = VECT_INIT
|
||||
TIMERB0 : { * ( .int29 ) } > INT29 type = VECT_INIT
|
||||
NMI : { * ( .int30 ) } > INT30 type = VECT_INIT
|
||||
.reset : {} > RESET /* MSP430 Reset vector */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Include peripherals memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
-l msp430fg4618.cmd
|
||||
|
12
CPE325/FinalProject/targetConfigs/MSP430FG4618.ccxml
Normal file
12
CPE325/FinalProject/targetConfigs/MSP430FG4618.ccxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="configuration_0">
|
||||
<instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="TI MSP430 USB1">
|
||||
<instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="MSP430FG4618" href="devices/MSP430FG4618.xml" id="MSP430FG4618" xml="MSP430FG4618.xml" xmlpath="devices"/>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
9
CPE325/FinalProject/targetConfigs/readme.txt
Normal file
9
CPE325/FinalProject/targetConfigs/readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
||||
on the device and connection settings specified in your project on the Properties > General page.
|
||||
|
||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
||||
you may create your own target-configuration file for this project and manage it manually. You can
|
||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
2437
CPE325/L1_P1_For/Debug/L1_P1_For.map
Normal file
2437
CPE325/L1_P1_For/Debug/L1_P1_For.map
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L1_P1_For/Debug/L1_P1_For.out
Normal file
BIN
CPE325/L1_P1_For/Debug/L1_P1_For.out
Normal file
Binary file not shown.
16322
CPE325/L1_P1_For/Debug/L1_P1_For_linkInfo.xml
Normal file
16322
CPE325/L1_P1_For/Debug/L1_P1_For_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
CPE325/L1_P1_For/Debug/ccsObjs.opt
Normal file
1
CPE325/L1_P1_For/Debug/ccsObjs.opt
Normal file
@ -0,0 +1 @@
|
||||
"./for.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
|
42
CPE325/L1_P1_For/Debug/for.d
Normal file
42
CPE325/L1_P1_For/Debug/for.d
Normal file
@ -0,0 +1,42 @@
|
||||
# FIXED
|
||||
|
||||
for.obj: ../for.c
|
||||
for.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h
|
||||
for.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h
|
||||
for.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h
|
||||
for.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h
|
||||
|
||||
../for.c:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h:
|
||||
|
1395
CPE325/L1_P1_For/Debug/for.lst
Normal file
1395
CPE325/L1_P1_For/Debug/for.lst
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L1_P1_For/Debug/for.obj
Normal file
BIN
CPE325/L1_P1_For/Debug/for.obj
Normal file
Binary file not shown.
168
CPE325/L1_P1_For/Debug/makefile
Normal file
168
CPE325/L1_P1_For/Debug/makefile
Normal file
@ -0,0 +1,168 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS
|
||||
|
||||
GEN_OPTS__FLAG :=
|
||||
GEN_CMDS__FLAG :=
|
||||
|
||||
ORDERED_OBJS += \
|
||||
"./for.obj" \
|
||||
"../lnk_msp430f5529.cmd" \
|
||||
$(GEN_CMDS__FLAG) \
|
||||
-llibmath.a \
|
||||
-llibc.a \
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := DEL /F
|
||||
RMDIR := RMDIR /S/Q
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir_vars.mk
|
||||
-include subdir_rules.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C55_DEPS)),)
|
||||
-include $(C55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S67_DEPS)),)
|
||||
-include $(S67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S62_DEPS)),)
|
||||
-include $(S62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_DEPS)),)
|
||||
-include $(S_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(OPT_DEPS)),)
|
||||
-include $(OPT_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C??_DEPS)),)
|
||||
-include $(C??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
||||
-include $(ASM_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S??_DEPS)),)
|
||||
-include $(S??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C64_DEPS)),)
|
||||
-include $(C64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S64_DEPS)),)
|
||||
-include $(S64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(INO_DEPS)),)
|
||||
-include $(INO_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CLA_DEPS)),)
|
||||
-include $(CLA_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S55_DEPS)),)
|
||||
-include $(S55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SV7A_DEPS)),)
|
||||
-include $(SV7A_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C62_DEPS)),)
|
||||
-include $(C62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C67_DEPS)),)
|
||||
-include $(C67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(PDE_DEPS)),)
|
||||
-include $(PDE_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(K_DEPS)),)
|
||||
-include $(K_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C43_DEPS)),)
|
||||
-include $(C43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S43_DEPS)),)
|
||||
-include $(S43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_DEPS)),)
|
||||
-include $(ASM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SA_DEPS)),)
|
||||
-include $(SA_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
EXE_OUTPUTS += \
|
||||
L1_P1_For.out \
|
||||
|
||||
EXE_OUTPUTS__QUOTED += \
|
||||
"L1_P1_For.out" \
|
||||
|
||||
BIN_OUTPUTS += \
|
||||
L1_P1_For.hex \
|
||||
|
||||
BIN_OUTPUTS__QUOTED += \
|
||||
"L1_P1_For.hex" \
|
||||
|
||||
|
||||
# All Target
|
||||
all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@$(MAKE) --no-print-directory -Onone "L1_P1_For.out"
|
||||
|
||||
# Tool invocations
|
||||
L1_P1_For.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@echo 'Building target: "$@"'
|
||||
@echo 'Invoking: MSP430 Linker'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing -z -m"L1_P1_For.map" --heap_size=300 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="L1_P1_For_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "L1_P1_For.out" $(ORDERED_OBJS)
|
||||
@echo 'Finished building target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
L1_P1_For.hex: $(EXE_OUTPUTS)
|
||||
@echo 'Building secondary target: "$@"'
|
||||
@echo 'Invoking: MSP430 Hex Utility'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "L1_P1_For.hex" $(EXE_OUTPUTS__QUOTED)
|
||||
@echo 'Finished building secondary target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED)
|
||||
-$(RM) "for.lst"
|
||||
-$(RM) "for.obj"
|
||||
-$(RM) "for.d"
|
||||
-@echo 'Finished clean'
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY:
|
||||
|
||||
-include ../makefile.targets
|
||||
|
8
CPE325/L1_P1_For/Debug/objects.mk
Normal file
8
CPE325/L1_P1_For/Debug/objects.mk
Normal file
@ -0,0 +1,8 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -llibmath.a -llibc.a
|
||||
|
115
CPE325/L1_P1_For/Debug/sources.mk
Normal file
115
CPE325/L1_P1_For/Debug/sources.mk
Normal file
@ -0,0 +1,115 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C55_SRCS :=
|
||||
A_SRCS :=
|
||||
ASM_UPPER_SRCS :=
|
||||
EXE_SRCS :=
|
||||
LDS_UPPER_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CMD_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C??_SRCS :=
|
||||
C64_SRCS :=
|
||||
C67_SRCS :=
|
||||
SA_SRCS :=
|
||||
S64_SRCS :=
|
||||
OPT_SRCS :=
|
||||
CXX_SRCS :=
|
||||
S67_SRCS :=
|
||||
S??_SRCS :=
|
||||
PDE_SRCS :=
|
||||
SV7A_SRCS :=
|
||||
K_SRCS :=
|
||||
CLA_SRCS :=
|
||||
S55_SRCS :=
|
||||
LD_UPPER_SRCS :=
|
||||
OUT_SRCS :=
|
||||
INO_SRCS :=
|
||||
LIB_SRCS :=
|
||||
ASM_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
S43_SRCS :=
|
||||
LD_SRCS :=
|
||||
CMD_UPPER_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
C++_SRCS :=
|
||||
C43_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
LDS_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
S62_SRCS :=
|
||||
C62_SRCS :=
|
||||
C_SRCS :=
|
||||
C55_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S67_DEPS :=
|
||||
S62_DEPS :=
|
||||
S_DEPS :=
|
||||
OPT_DEPS :=
|
||||
C??_DEPS :=
|
||||
ASM_UPPER_DEPS :=
|
||||
S??_DEPS :=
|
||||
C64_DEPS :=
|
||||
CXX_DEPS :=
|
||||
S64_DEPS :=
|
||||
INO_DEPS :=
|
||||
CLA_DEPS :=
|
||||
S55_DEPS :=
|
||||
SV7A_DEPS :=
|
||||
EXE_OUTPUTS :=
|
||||
C62_DEPS :=
|
||||
C67_DEPS :=
|
||||
PDE_DEPS :=
|
||||
K_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
BIN_OUTPUTS :=
|
||||
C++_DEPS :=
|
||||
C43_DEPS :=
|
||||
S43_DEPS :=
|
||||
OBJS :=
|
||||
ASM_DEPS :=
|
||||
S_UPPER_DEPS :=
|
||||
CPP_DEPS :=
|
||||
SA_DEPS :=
|
||||
C++_DEPS__QUOTED :=
|
||||
OPT_DEPS__QUOTED :=
|
||||
S_UPPER_DEPS__QUOTED :=
|
||||
SA_DEPS__QUOTED :=
|
||||
C??_DEPS__QUOTED :=
|
||||
S67_DEPS__QUOTED :=
|
||||
C55_DEPS__QUOTED :=
|
||||
CC_DEPS__QUOTED :=
|
||||
ASM_UPPER_DEPS__QUOTED :=
|
||||
SV7A_DEPS__QUOTED :=
|
||||
S??_DEPS__QUOTED :=
|
||||
OBJS__QUOTED :=
|
||||
C67_DEPS__QUOTED :=
|
||||
K_DEPS__QUOTED :=
|
||||
S55_DEPS__QUOTED :=
|
||||
INO_DEPS__QUOTED :=
|
||||
C62_DEPS__QUOTED :=
|
||||
C_DEPS__QUOTED :=
|
||||
C_UPPER_DEPS__QUOTED :=
|
||||
C43_DEPS__QUOTED :=
|
||||
CPP_DEPS__QUOTED :=
|
||||
BIN_OUTPUTS__QUOTED :=
|
||||
C64_DEPS__QUOTED :=
|
||||
CXX_DEPS__QUOTED :=
|
||||
CLA_DEPS__QUOTED :=
|
||||
S_DEPS__QUOTED :=
|
||||
ASM_DEPS__QUOTED :=
|
||||
S43_DEPS__QUOTED :=
|
||||
EXE_OUTPUTS__QUOTED :=
|
||||
S64_DEPS__QUOTED :=
|
||||
S62_DEPS__QUOTED :=
|
||||
PDE_DEPS__QUOTED :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
15
CPE325/L1_P1_For/Debug/subdir_rules.mk
Normal file
15
CPE325/L1_P1_For/Debug/subdir_rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.obj: ../%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
|
||||
@echo 'Building file: "$<"'
|
||||
@echo 'Invoking: MSP430 Compiler'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/L1_P1_For" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
|
||||
@echo 'Finished building: "$<"'
|
||||
@echo ' '
|
||||
|
||||
|
29
CPE325/L1_P1_For/Debug/subdir_vars.mk
Normal file
29
CPE325/L1_P1_For/Debug/subdir_vars.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CMD_SRCS += \
|
||||
../lnk_msp430f5529.cmd
|
||||
|
||||
C_SRCS += \
|
||||
../for.c
|
||||
|
||||
C_DEPS += \
|
||||
./for.d
|
||||
|
||||
OBJS += \
|
||||
./for.obj
|
||||
|
||||
OBJS__QUOTED += \
|
||||
"for.obj"
|
||||
|
||||
C_DEPS__QUOTED += \
|
||||
"for.d"
|
||||
|
||||
C_SRCS__QUOTED += \
|
||||
"../for.c"
|
||||
|
||||
|
22
CPE325/L1_P1_For/for.c
Normal file
22
CPE325/L1_P1_For/for.c
Normal file
@ -0,0 +1,22 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* File: for.c
|
||||
* Function: Calculate the product of two even numbers
|
||||
* Description: This C program calculates the product of two even numbers and outputs the results in the
|
||||
form "2 times 8 is 16"
|
||||
* Input: None
|
||||
* Output: "2 times 8 is 16"
|
||||
* Author(s): Noah Woodlee
|
||||
* Date: Aug 20, 2021
|
||||
*----------------------------------------------------------------------------*/
|
||||
#include <msp430.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
int i, p=0;
|
||||
int second = 6;
|
||||
int first = 4;
|
||||
for(i=0;i<second; i++) {
|
||||
p=p+first;
|
||||
}
|
||||
printf ("%d times %d is %d\n", first,second,p);
|
||||
}
|
251
CPE325/L1_P1_For/lnk_msp430f5529.cmd
Executable file
251
CPE325/L1_P1_For/lnk_msp430f5529.cmd
Executable file
@ -0,0 +1,251 @@
|
||||
/* ============================================================================ */
|
||||
/* Copyright (c) 2020, Texas Instruments Incorporated */
|
||||
/* All rights reserved. */
|
||||
/* */
|
||||
/* Redistribution and use in source and binary forms, with or without */
|
||||
/* modification, are permitted provided that the following conditions */
|
||||
/* are met: */
|
||||
/* */
|
||||
/* * Redistributions of source code must retain the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer. */
|
||||
/* */
|
||||
/* * Redistributions in binary form must reproduce the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer in the */
|
||||
/* documentation and/or other materials provided with the distribution. */
|
||||
/* */
|
||||
/* * Neither the name of Texas Instruments Incorporated nor the names of */
|
||||
/* its contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */
|
||||
/* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
|
||||
/* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */
|
||||
/* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */
|
||||
/* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
|
||||
/* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR */
|
||||
/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ============================================================================ */
|
||||
|
||||
/******************************************************************************/
|
||||
/* lnk_msp430f5529.cmd - LINKER COMMAND FILE FOR LINKING MSP430F5529 PROGRAMS */
|
||||
/* */
|
||||
/* Usage: lnk430 <obj files...> -o <out file> -m <map file> lnk.cmd */
|
||||
/* cl430 <src files...> -z -o <out file> -m <map file> lnk.cmd */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* These linker options are for command line linking only. For IDE linking, */
|
||||
/* you should set your linker options in Project Properties */
|
||||
/* -c LINK USING C CONVENTIONS */
|
||||
/* -stack 0x0100 SOFTWARE STACK SIZE */
|
||||
/* -heap 0x0100 HEAP AREA SIZE */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Version: 1.211 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the system memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
SFR : origin = 0x0000, length = 0x0010
|
||||
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
|
||||
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
|
||||
RAM : origin = 0x2400, length = 0x2000
|
||||
USBRAM : origin = 0x1C00, length = 0x0800
|
||||
INFOA : origin = 0x1980, length = 0x0080
|
||||
INFOB : origin = 0x1900, length = 0x0080
|
||||
INFOC : origin = 0x1880, length = 0x0080
|
||||
INFOD : origin = 0x1800, length = 0x0080
|
||||
FLASH : origin = 0x4400, length = 0xBB80
|
||||
FLASH2 : origin = 0x10000,length = 0x143F8 /* Boundaries changed to fix CPU47 */
|
||||
INT00 : origin = 0xFF80, length = 0x0002
|
||||
INT01 : origin = 0xFF82, length = 0x0002
|
||||
INT02 : origin = 0xFF84, length = 0x0002
|
||||
INT03 : origin = 0xFF86, length = 0x0002
|
||||
INT04 : origin = 0xFF88, length = 0x0002
|
||||
INT05 : origin = 0xFF8A, length = 0x0002
|
||||
INT06 : origin = 0xFF8C, length = 0x0002
|
||||
INT07 : origin = 0xFF8E, length = 0x0002
|
||||
INT08 : origin = 0xFF90, length = 0x0002
|
||||
INT09 : origin = 0xFF92, length = 0x0002
|
||||
INT10 : origin = 0xFF94, length = 0x0002
|
||||
INT11 : origin = 0xFF96, length = 0x0002
|
||||
INT12 : origin = 0xFF98, length = 0x0002
|
||||
INT13 : origin = 0xFF9A, length = 0x0002
|
||||
INT14 : origin = 0xFF9C, length = 0x0002
|
||||
INT15 : origin = 0xFF9E, length = 0x0002
|
||||
INT16 : origin = 0xFFA0, length = 0x0002
|
||||
INT17 : origin = 0xFFA2, length = 0x0002
|
||||
INT18 : origin = 0xFFA4, length = 0x0002
|
||||
INT19 : origin = 0xFFA6, length = 0x0002
|
||||
INT20 : origin = 0xFFA8, length = 0x0002
|
||||
INT21 : origin = 0xFFAA, length = 0x0002
|
||||
INT22 : origin = 0xFFAC, length = 0x0002
|
||||
INT23 : origin = 0xFFAE, length = 0x0002
|
||||
INT24 : origin = 0xFFB0, length = 0x0002
|
||||
INT25 : origin = 0xFFB2, length = 0x0002
|
||||
INT26 : origin = 0xFFB4, length = 0x0002
|
||||
INT27 : origin = 0xFFB6, length = 0x0002
|
||||
INT28 : origin = 0xFFB8, length = 0x0002
|
||||
INT29 : origin = 0xFFBA, length = 0x0002
|
||||
INT30 : origin = 0xFFBC, length = 0x0002
|
||||
INT31 : origin = 0xFFBE, length = 0x0002
|
||||
INT32 : origin = 0xFFC0, length = 0x0002
|
||||
INT33 : origin = 0xFFC2, length = 0x0002
|
||||
INT34 : origin = 0xFFC4, length = 0x0002
|
||||
INT35 : origin = 0xFFC6, length = 0x0002
|
||||
INT36 : origin = 0xFFC8, length = 0x0002
|
||||
INT37 : origin = 0xFFCA, length = 0x0002
|
||||
INT38 : origin = 0xFFCC, length = 0x0002
|
||||
INT39 : origin = 0xFFCE, length = 0x0002
|
||||
INT40 : origin = 0xFFD0, length = 0x0002
|
||||
INT41 : origin = 0xFFD2, length = 0x0002
|
||||
INT42 : origin = 0xFFD4, length = 0x0002
|
||||
INT43 : origin = 0xFFD6, length = 0x0002
|
||||
INT44 : origin = 0xFFD8, length = 0x0002
|
||||
INT45 : origin = 0xFFDA, length = 0x0002
|
||||
INT46 : origin = 0xFFDC, length = 0x0002
|
||||
INT47 : origin = 0xFFDE, length = 0x0002
|
||||
INT48 : origin = 0xFFE0, length = 0x0002
|
||||
INT49 : origin = 0xFFE2, length = 0x0002
|
||||
INT50 : origin = 0xFFE4, length = 0x0002
|
||||
INT51 : origin = 0xFFE6, length = 0x0002
|
||||
INT52 : origin = 0xFFE8, length = 0x0002
|
||||
INT53 : origin = 0xFFEA, length = 0x0002
|
||||
INT54 : origin = 0xFFEC, length = 0x0002
|
||||
INT55 : origin = 0xFFEE, length = 0x0002
|
||||
INT56 : origin = 0xFFF0, length = 0x0002
|
||||
INT57 : origin = 0xFFF2, length = 0x0002
|
||||
INT58 : origin = 0xFFF4, length = 0x0002
|
||||
INT59 : origin = 0xFFF6, length = 0x0002
|
||||
INT60 : origin = 0xFFF8, length = 0x0002
|
||||
INT61 : origin = 0xFFFA, length = 0x0002
|
||||
INT62 : origin = 0xFFFC, length = 0x0002
|
||||
RESET : origin = 0xFFFE, length = 0x0002
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the sections allocation into memory */
|
||||
/****************************************************************************/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.bss : {} > RAM /* Global & static vars */
|
||||
.data : {} > RAM /* Global & static vars */
|
||||
.TI.noinit : {} > RAM /* For #pragma noinit */
|
||||
.sysmem : {} > RAM /* Dynamic memory allocation area */
|
||||
.stack : {} > RAM (HIGH) /* Software system stack */
|
||||
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.text : {} > FLASH /* Code */
|
||||
#else
|
||||
.text : {} >> FLASH2 | FLASH /* Code */
|
||||
#endif
|
||||
.text:_isr : {} > FLASH /* ISR Code space */
|
||||
.cinit : {} > FLASH /* Initialization tables */
|
||||
#ifndef __LARGE_DATA_MODEL__
|
||||
.const : {} > FLASH /* Constant data */
|
||||
#else
|
||||
.const : {} >> FLASH | FLASH2 /* Constant data */
|
||||
#endif
|
||||
.cio : {} > RAM /* C I/O Buffer */
|
||||
|
||||
.pinit : {} > FLASH /* C++ Constructor tables */
|
||||
.binit : {} > FLASH /* Boot-time Initialization tables */
|
||||
.init_array : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.exidx : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.extab : {} > FLASH /* C++ Constructor tables */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
|
||||
#else
|
||||
.TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.infoA : {} > INFOA /* MSP430 INFO FLASH Memory segments */
|
||||
.infoB : {} > INFOB
|
||||
.infoC : {} > INFOC
|
||||
.infoD : {} > INFOD
|
||||
|
||||
/* MSP430 Interrupt vectors */
|
||||
.int00 : {} > INT00
|
||||
.int01 : {} > INT01
|
||||
.int02 : {} > INT02
|
||||
.int03 : {} > INT03
|
||||
.int04 : {} > INT04
|
||||
.int05 : {} > INT05
|
||||
.int06 : {} > INT06
|
||||
.int07 : {} > INT07
|
||||
.int08 : {} > INT08
|
||||
.int09 : {} > INT09
|
||||
.int10 : {} > INT10
|
||||
.int11 : {} > INT11
|
||||
.int12 : {} > INT12
|
||||
.int13 : {} > INT13
|
||||
.int14 : {} > INT14
|
||||
.int15 : {} > INT15
|
||||
.int16 : {} > INT16
|
||||
.int17 : {} > INT17
|
||||
.int18 : {} > INT18
|
||||
.int19 : {} > INT19
|
||||
.int20 : {} > INT20
|
||||
.int21 : {} > INT21
|
||||
.int22 : {} > INT22
|
||||
.int23 : {} > INT23
|
||||
.int24 : {} > INT24
|
||||
.int25 : {} > INT25
|
||||
.int26 : {} > INT26
|
||||
.int27 : {} > INT27
|
||||
.int28 : {} > INT28
|
||||
.int29 : {} > INT29
|
||||
.int30 : {} > INT30
|
||||
.int31 : {} > INT31
|
||||
.int32 : {} > INT32
|
||||
.int33 : {} > INT33
|
||||
.int34 : {} > INT34
|
||||
.int35 : {} > INT35
|
||||
.int36 : {} > INT36
|
||||
.int37 : {} > INT37
|
||||
.int38 : {} > INT38
|
||||
.int39 : {} > INT39
|
||||
.int40 : {} > INT40
|
||||
RTC : { * ( .int41 ) } > INT41 type = VECT_INIT
|
||||
PORT2 : { * ( .int42 ) } > INT42 type = VECT_INIT
|
||||
TIMER2_A1 : { * ( .int43 ) } > INT43 type = VECT_INIT
|
||||
TIMER2_A0 : { * ( .int44 ) } > INT44 type = VECT_INIT
|
||||
USCI_B1 : { * ( .int45 ) } > INT45 type = VECT_INIT
|
||||
USCI_A1 : { * ( .int46 ) } > INT46 type = VECT_INIT
|
||||
PORT1 : { * ( .int47 ) } > INT47 type = VECT_INIT
|
||||
TIMER1_A1 : { * ( .int48 ) } > INT48 type = VECT_INIT
|
||||
TIMER1_A0 : { * ( .int49 ) } > INT49 type = VECT_INIT
|
||||
DMA : { * ( .int50 ) } > INT50 type = VECT_INIT
|
||||
USB_UBM : { * ( .int51 ) } > INT51 type = VECT_INIT
|
||||
TIMER0_A1 : { * ( .int52 ) } > INT52 type = VECT_INIT
|
||||
TIMER0_A0 : { * ( .int53 ) } > INT53 type = VECT_INIT
|
||||
ADC12 : { * ( .int54 ) } > INT54 type = VECT_INIT
|
||||
USCI_B0 : { * ( .int55 ) } > INT55 type = VECT_INIT
|
||||
USCI_A0 : { * ( .int56 ) } > INT56 type = VECT_INIT
|
||||
WDT : { * ( .int57 ) } > INT57 type = VECT_INIT
|
||||
TIMER0_B1 : { * ( .int58 ) } > INT58 type = VECT_INIT
|
||||
TIMER0_B0 : { * ( .int59 ) } > INT59 type = VECT_INIT
|
||||
COMP_B : { * ( .int60 ) } > INT60 type = VECT_INIT
|
||||
UNMI : { * ( .int61 ) } > INT61 type = VECT_INIT
|
||||
SYSNMI : { * ( .int62 ) } > INT62 type = VECT_INIT
|
||||
.reset : {} > RESET /* MSP430 Reset vector */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Include peripherals memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
-l msp430f5529.cmd
|
||||
|
12
CPE325/L1_P1_For/targetConfigs/MSP430F5529.ccxml
Normal file
12
CPE325/L1_P1_For/targetConfigs/MSP430F5529.ccxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="configuration_0">
|
||||
<instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="TI MSP430 USB1">
|
||||
<instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="MSP430F5529" href="devices/MSP430F5529.xml" id="MSP430F5529" xml="MSP430F5529.xml" xmlpath="devices"/>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
9
CPE325/L1_P1_For/targetConfigs/readme.txt
Normal file
9
CPE325/L1_P1_For/targetConfigs/readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
||||
on the device and connection settings specified in your project on the Properties > General page.
|
||||
|
||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
||||
you may create your own target-configuration file for this project and manage it manually. You can
|
||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
2443
CPE325/L1_Problem2/Debug/L1_Problem2.map
Normal file
2443
CPE325/L1_Problem2/Debug/L1_Problem2.map
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L1_Problem2/Debug/L1_Problem2.out
Normal file
BIN
CPE325/L1_Problem2/Debug/L1_Problem2.out
Normal file
Binary file not shown.
16493
CPE325/L1_Problem2/Debug/L1_Problem2_linkInfo.xml
Normal file
16493
CPE325/L1_Problem2/Debug/L1_Problem2_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
2443
CPE325/L1_Problem2/Debug/L2_Problem2.map
Normal file
2443
CPE325/L1_Problem2/Debug/L2_Problem2.map
Normal file
File diff suppressed because it is too large
Load Diff
16493
CPE325/L1_Problem2/Debug/L2_Problem2_linkInfo.xml
Normal file
16493
CPE325/L1_Problem2/Debug/L2_Problem2_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
2443
CPE325/L1_Problem2/Debug/Problem2.map
Normal file
2443
CPE325/L1_Problem2/Debug/Problem2.map
Normal file
File diff suppressed because it is too large
Load Diff
16493
CPE325/L1_Problem2/Debug/Problem2_linkInfo.xml
Normal file
16493
CPE325/L1_Problem2/Debug/Problem2_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
CPE325/L1_Problem2/Debug/ccsObjs.opt
Normal file
1
CPE325/L1_Problem2/Debug/ccsObjs.opt
Normal file
@ -0,0 +1 @@
|
||||
"./problem2.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
|
168
CPE325/L1_Problem2/Debug/makefile
Normal file
168
CPE325/L1_Problem2/Debug/makefile
Normal file
@ -0,0 +1,168 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS
|
||||
|
||||
GEN_OPTS__FLAG :=
|
||||
GEN_CMDS__FLAG :=
|
||||
|
||||
ORDERED_OBJS += \
|
||||
"./problem2.obj" \
|
||||
"../lnk_msp430f5529.cmd" \
|
||||
$(GEN_CMDS__FLAG) \
|
||||
-llibmath.a \
|
||||
-llibc.a \
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := DEL /F
|
||||
RMDIR := RMDIR /S/Q
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir_vars.mk
|
||||
-include subdir_rules.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C55_DEPS)),)
|
||||
-include $(C55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S67_DEPS)),)
|
||||
-include $(S67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S62_DEPS)),)
|
||||
-include $(S62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_DEPS)),)
|
||||
-include $(S_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(OPT_DEPS)),)
|
||||
-include $(OPT_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C??_DEPS)),)
|
||||
-include $(C??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
||||
-include $(ASM_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S??_DEPS)),)
|
||||
-include $(S??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C64_DEPS)),)
|
||||
-include $(C64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S64_DEPS)),)
|
||||
-include $(S64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(INO_DEPS)),)
|
||||
-include $(INO_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CLA_DEPS)),)
|
||||
-include $(CLA_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S55_DEPS)),)
|
||||
-include $(S55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SV7A_DEPS)),)
|
||||
-include $(SV7A_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C62_DEPS)),)
|
||||
-include $(C62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C67_DEPS)),)
|
||||
-include $(C67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(PDE_DEPS)),)
|
||||
-include $(PDE_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(K_DEPS)),)
|
||||
-include $(K_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C43_DEPS)),)
|
||||
-include $(C43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S43_DEPS)),)
|
||||
-include $(S43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_DEPS)),)
|
||||
-include $(ASM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SA_DEPS)),)
|
||||
-include $(SA_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
EXE_OUTPUTS += \
|
||||
L1_Problem2.out \
|
||||
|
||||
EXE_OUTPUTS__QUOTED += \
|
||||
"L1_Problem2.out" \
|
||||
|
||||
BIN_OUTPUTS += \
|
||||
L1_Problem2.hex \
|
||||
|
||||
BIN_OUTPUTS__QUOTED += \
|
||||
"L1_Problem2.hex" \
|
||||
|
||||
|
||||
# All Target
|
||||
all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@$(MAKE) --no-print-directory -Onone "L1_Problem2.out"
|
||||
|
||||
# Tool invocations
|
||||
L1_Problem2.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@echo 'Building target: "$@"'
|
||||
@echo 'Invoking: MSP430 Linker'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing -z -m"L1_Problem2.map" --heap_size=600 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="L1_Problem2_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "L1_Problem2.out" $(ORDERED_OBJS)
|
||||
@echo 'Finished building target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
L1_Problem2.hex: $(EXE_OUTPUTS)
|
||||
@echo 'Building secondary target: "$@"'
|
||||
@echo 'Invoking: MSP430 Hex Utility'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "L1_Problem2.hex" $(EXE_OUTPUTS__QUOTED)
|
||||
@echo 'Finished building secondary target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED)
|
||||
-$(RM) "problem2.lst"
|
||||
-$(RM) "problem2.obj"
|
||||
-$(RM) "problem2.d"
|
||||
-@echo 'Finished clean'
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY:
|
||||
|
||||
-include ../makefile.targets
|
||||
|
8
CPE325/L1_Problem2/Debug/objects.mk
Normal file
8
CPE325/L1_Problem2/Debug/objects.mk
Normal file
@ -0,0 +1,8 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -llibmath.a -llibc.a
|
||||
|
48
CPE325/L1_Problem2/Debug/problem2.d
Normal file
48
CPE325/L1_Problem2/Debug/problem2.d
Normal file
@ -0,0 +1,48 @@
|
||||
# FIXED
|
||||
|
||||
problem2.obj: ../problem2.c
|
||||
problem2.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/ctype.h
|
||||
problem2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_isfuncdcl.h
|
||||
|
||||
../problem2.c:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/ctype.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_isfuncdcl.h:
|
||||
|
1576
CPE325/L1_Problem2/Debug/problem2.lst
Normal file
1576
CPE325/L1_Problem2/Debug/problem2.lst
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L1_Problem2/Debug/problem2.obj
Normal file
BIN
CPE325/L1_Problem2/Debug/problem2.obj
Normal file
Binary file not shown.
115
CPE325/L1_Problem2/Debug/sources.mk
Normal file
115
CPE325/L1_Problem2/Debug/sources.mk
Normal file
@ -0,0 +1,115 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C55_SRCS :=
|
||||
A_SRCS :=
|
||||
ASM_UPPER_SRCS :=
|
||||
EXE_SRCS :=
|
||||
LDS_UPPER_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CMD_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C??_SRCS :=
|
||||
C64_SRCS :=
|
||||
C67_SRCS :=
|
||||
SA_SRCS :=
|
||||
S64_SRCS :=
|
||||
OPT_SRCS :=
|
||||
CXX_SRCS :=
|
||||
S67_SRCS :=
|
||||
S??_SRCS :=
|
||||
PDE_SRCS :=
|
||||
SV7A_SRCS :=
|
||||
K_SRCS :=
|
||||
CLA_SRCS :=
|
||||
S55_SRCS :=
|
||||
LD_UPPER_SRCS :=
|
||||
OUT_SRCS :=
|
||||
INO_SRCS :=
|
||||
LIB_SRCS :=
|
||||
ASM_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
S43_SRCS :=
|
||||
LD_SRCS :=
|
||||
CMD_UPPER_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
C++_SRCS :=
|
||||
C43_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
LDS_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
S62_SRCS :=
|
||||
C62_SRCS :=
|
||||
C_SRCS :=
|
||||
C55_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S67_DEPS :=
|
||||
S62_DEPS :=
|
||||
S_DEPS :=
|
||||
OPT_DEPS :=
|
||||
C??_DEPS :=
|
||||
ASM_UPPER_DEPS :=
|
||||
S??_DEPS :=
|
||||
C64_DEPS :=
|
||||
CXX_DEPS :=
|
||||
S64_DEPS :=
|
||||
INO_DEPS :=
|
||||
CLA_DEPS :=
|
||||
S55_DEPS :=
|
||||
SV7A_DEPS :=
|
||||
EXE_OUTPUTS :=
|
||||
C62_DEPS :=
|
||||
C67_DEPS :=
|
||||
PDE_DEPS :=
|
||||
K_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
BIN_OUTPUTS :=
|
||||
C++_DEPS :=
|
||||
C43_DEPS :=
|
||||
S43_DEPS :=
|
||||
OBJS :=
|
||||
ASM_DEPS :=
|
||||
S_UPPER_DEPS :=
|
||||
CPP_DEPS :=
|
||||
SA_DEPS :=
|
||||
C++_DEPS__QUOTED :=
|
||||
OPT_DEPS__QUOTED :=
|
||||
S_UPPER_DEPS__QUOTED :=
|
||||
SA_DEPS__QUOTED :=
|
||||
C??_DEPS__QUOTED :=
|
||||
S67_DEPS__QUOTED :=
|
||||
C55_DEPS__QUOTED :=
|
||||
CC_DEPS__QUOTED :=
|
||||
ASM_UPPER_DEPS__QUOTED :=
|
||||
SV7A_DEPS__QUOTED :=
|
||||
S??_DEPS__QUOTED :=
|
||||
OBJS__QUOTED :=
|
||||
C67_DEPS__QUOTED :=
|
||||
K_DEPS__QUOTED :=
|
||||
S55_DEPS__QUOTED :=
|
||||
INO_DEPS__QUOTED :=
|
||||
C62_DEPS__QUOTED :=
|
||||
C_DEPS__QUOTED :=
|
||||
C_UPPER_DEPS__QUOTED :=
|
||||
C43_DEPS__QUOTED :=
|
||||
CPP_DEPS__QUOTED :=
|
||||
BIN_OUTPUTS__QUOTED :=
|
||||
C64_DEPS__QUOTED :=
|
||||
CXX_DEPS__QUOTED :=
|
||||
CLA_DEPS__QUOTED :=
|
||||
S_DEPS__QUOTED :=
|
||||
ASM_DEPS__QUOTED :=
|
||||
S43_DEPS__QUOTED :=
|
||||
EXE_OUTPUTS__QUOTED :=
|
||||
S64_DEPS__QUOTED :=
|
||||
S62_DEPS__QUOTED :=
|
||||
PDE_DEPS__QUOTED :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
15
CPE325/L1_Problem2/Debug/subdir_rules.mk
Normal file
15
CPE325/L1_Problem2/Debug/subdir_rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.obj: ../%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
|
||||
@echo 'Building file: "$<"'
|
||||
@echo 'Invoking: MSP430 Compiler'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/L1_Problem2" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
|
||||
@echo 'Finished building: "$<"'
|
||||
@echo ' '
|
||||
|
||||
|
29
CPE325/L1_Problem2/Debug/subdir_vars.mk
Normal file
29
CPE325/L1_Problem2/Debug/subdir_vars.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CMD_SRCS += \
|
||||
../lnk_msp430f5529.cmd
|
||||
|
||||
C_SRCS += \
|
||||
../problem2.c
|
||||
|
||||
C_DEPS += \
|
||||
./problem2.d
|
||||
|
||||
OBJS += \
|
||||
./problem2.obj
|
||||
|
||||
OBJS__QUOTED += \
|
||||
"problem2.obj"
|
||||
|
||||
C_DEPS__QUOTED += \
|
||||
"problem2.d"
|
||||
|
||||
C_SRCS__QUOTED += \
|
||||
"../problem2.c"
|
||||
|
||||
|
251
CPE325/L1_Problem2/lnk_msp430f5529.cmd
Executable file
251
CPE325/L1_Problem2/lnk_msp430f5529.cmd
Executable file
@ -0,0 +1,251 @@
|
||||
/* ============================================================================ */
|
||||
/* Copyright (c) 2020, Texas Instruments Incorporated */
|
||||
/* All rights reserved. */
|
||||
/* */
|
||||
/* Redistribution and use in source and binary forms, with or without */
|
||||
/* modification, are permitted provided that the following conditions */
|
||||
/* are met: */
|
||||
/* */
|
||||
/* * Redistributions of source code must retain the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer. */
|
||||
/* */
|
||||
/* * Redistributions in binary form must reproduce the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer in the */
|
||||
/* documentation and/or other materials provided with the distribution. */
|
||||
/* */
|
||||
/* * Neither the name of Texas Instruments Incorporated nor the names of */
|
||||
/* its contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */
|
||||
/* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
|
||||
/* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */
|
||||
/* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */
|
||||
/* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
|
||||
/* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR */
|
||||
/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ============================================================================ */
|
||||
|
||||
/******************************************************************************/
|
||||
/* lnk_msp430f5529.cmd - LINKER COMMAND FILE FOR LINKING MSP430F5529 PROGRAMS */
|
||||
/* */
|
||||
/* Usage: lnk430 <obj files...> -o <out file> -m <map file> lnk.cmd */
|
||||
/* cl430 <src files...> -z -o <out file> -m <map file> lnk.cmd */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* These linker options are for command line linking only. For IDE linking, */
|
||||
/* you should set your linker options in Project Properties */
|
||||
/* -c LINK USING C CONVENTIONS */
|
||||
/* -stack 0x0100 SOFTWARE STACK SIZE */
|
||||
/* -heap 0x0100 HEAP AREA SIZE */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Version: 1.211 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the system memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
SFR : origin = 0x0000, length = 0x0010
|
||||
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
|
||||
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
|
||||
RAM : origin = 0x2400, length = 0x2000
|
||||
USBRAM : origin = 0x1C00, length = 0x0800
|
||||
INFOA : origin = 0x1980, length = 0x0080
|
||||
INFOB : origin = 0x1900, length = 0x0080
|
||||
INFOC : origin = 0x1880, length = 0x0080
|
||||
INFOD : origin = 0x1800, length = 0x0080
|
||||
FLASH : origin = 0x4400, length = 0xBB80
|
||||
FLASH2 : origin = 0x10000,length = 0x143F8 /* Boundaries changed to fix CPU47 */
|
||||
INT00 : origin = 0xFF80, length = 0x0002
|
||||
INT01 : origin = 0xFF82, length = 0x0002
|
||||
INT02 : origin = 0xFF84, length = 0x0002
|
||||
INT03 : origin = 0xFF86, length = 0x0002
|
||||
INT04 : origin = 0xFF88, length = 0x0002
|
||||
INT05 : origin = 0xFF8A, length = 0x0002
|
||||
INT06 : origin = 0xFF8C, length = 0x0002
|
||||
INT07 : origin = 0xFF8E, length = 0x0002
|
||||
INT08 : origin = 0xFF90, length = 0x0002
|
||||
INT09 : origin = 0xFF92, length = 0x0002
|
||||
INT10 : origin = 0xFF94, length = 0x0002
|
||||
INT11 : origin = 0xFF96, length = 0x0002
|
||||
INT12 : origin = 0xFF98, length = 0x0002
|
||||
INT13 : origin = 0xFF9A, length = 0x0002
|
||||
INT14 : origin = 0xFF9C, length = 0x0002
|
||||
INT15 : origin = 0xFF9E, length = 0x0002
|
||||
INT16 : origin = 0xFFA0, length = 0x0002
|
||||
INT17 : origin = 0xFFA2, length = 0x0002
|
||||
INT18 : origin = 0xFFA4, length = 0x0002
|
||||
INT19 : origin = 0xFFA6, length = 0x0002
|
||||
INT20 : origin = 0xFFA8, length = 0x0002
|
||||
INT21 : origin = 0xFFAA, length = 0x0002
|
||||
INT22 : origin = 0xFFAC, length = 0x0002
|
||||
INT23 : origin = 0xFFAE, length = 0x0002
|
||||
INT24 : origin = 0xFFB0, length = 0x0002
|
||||
INT25 : origin = 0xFFB2, length = 0x0002
|
||||
INT26 : origin = 0xFFB4, length = 0x0002
|
||||
INT27 : origin = 0xFFB6, length = 0x0002
|
||||
INT28 : origin = 0xFFB8, length = 0x0002
|
||||
INT29 : origin = 0xFFBA, length = 0x0002
|
||||
INT30 : origin = 0xFFBC, length = 0x0002
|
||||
INT31 : origin = 0xFFBE, length = 0x0002
|
||||
INT32 : origin = 0xFFC0, length = 0x0002
|
||||
INT33 : origin = 0xFFC2, length = 0x0002
|
||||
INT34 : origin = 0xFFC4, length = 0x0002
|
||||
INT35 : origin = 0xFFC6, length = 0x0002
|
||||
INT36 : origin = 0xFFC8, length = 0x0002
|
||||
INT37 : origin = 0xFFCA, length = 0x0002
|
||||
INT38 : origin = 0xFFCC, length = 0x0002
|
||||
INT39 : origin = 0xFFCE, length = 0x0002
|
||||
INT40 : origin = 0xFFD0, length = 0x0002
|
||||
INT41 : origin = 0xFFD2, length = 0x0002
|
||||
INT42 : origin = 0xFFD4, length = 0x0002
|
||||
INT43 : origin = 0xFFD6, length = 0x0002
|
||||
INT44 : origin = 0xFFD8, length = 0x0002
|
||||
INT45 : origin = 0xFFDA, length = 0x0002
|
||||
INT46 : origin = 0xFFDC, length = 0x0002
|
||||
INT47 : origin = 0xFFDE, length = 0x0002
|
||||
INT48 : origin = 0xFFE0, length = 0x0002
|
||||
INT49 : origin = 0xFFE2, length = 0x0002
|
||||
INT50 : origin = 0xFFE4, length = 0x0002
|
||||
INT51 : origin = 0xFFE6, length = 0x0002
|
||||
INT52 : origin = 0xFFE8, length = 0x0002
|
||||
INT53 : origin = 0xFFEA, length = 0x0002
|
||||
INT54 : origin = 0xFFEC, length = 0x0002
|
||||
INT55 : origin = 0xFFEE, length = 0x0002
|
||||
INT56 : origin = 0xFFF0, length = 0x0002
|
||||
INT57 : origin = 0xFFF2, length = 0x0002
|
||||
INT58 : origin = 0xFFF4, length = 0x0002
|
||||
INT59 : origin = 0xFFF6, length = 0x0002
|
||||
INT60 : origin = 0xFFF8, length = 0x0002
|
||||
INT61 : origin = 0xFFFA, length = 0x0002
|
||||
INT62 : origin = 0xFFFC, length = 0x0002
|
||||
RESET : origin = 0xFFFE, length = 0x0002
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the sections allocation into memory */
|
||||
/****************************************************************************/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.bss : {} > RAM /* Global & static vars */
|
||||
.data : {} > RAM /* Global & static vars */
|
||||
.TI.noinit : {} > RAM /* For #pragma noinit */
|
||||
.sysmem : {} > RAM /* Dynamic memory allocation area */
|
||||
.stack : {} > RAM (HIGH) /* Software system stack */
|
||||
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.text : {} > FLASH /* Code */
|
||||
#else
|
||||
.text : {} >> FLASH2 | FLASH /* Code */
|
||||
#endif
|
||||
.text:_isr : {} > FLASH /* ISR Code space */
|
||||
.cinit : {} > FLASH /* Initialization tables */
|
||||
#ifndef __LARGE_DATA_MODEL__
|
||||
.const : {} > FLASH /* Constant data */
|
||||
#else
|
||||
.const : {} >> FLASH | FLASH2 /* Constant data */
|
||||
#endif
|
||||
.cio : {} > RAM /* C I/O Buffer */
|
||||
|
||||
.pinit : {} > FLASH /* C++ Constructor tables */
|
||||
.binit : {} > FLASH /* Boot-time Initialization tables */
|
||||
.init_array : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.exidx : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.extab : {} > FLASH /* C++ Constructor tables */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
|
||||
#else
|
||||
.TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.infoA : {} > INFOA /* MSP430 INFO FLASH Memory segments */
|
||||
.infoB : {} > INFOB
|
||||
.infoC : {} > INFOC
|
||||
.infoD : {} > INFOD
|
||||
|
||||
/* MSP430 Interrupt vectors */
|
||||
.int00 : {} > INT00
|
||||
.int01 : {} > INT01
|
||||
.int02 : {} > INT02
|
||||
.int03 : {} > INT03
|
||||
.int04 : {} > INT04
|
||||
.int05 : {} > INT05
|
||||
.int06 : {} > INT06
|
||||
.int07 : {} > INT07
|
||||
.int08 : {} > INT08
|
||||
.int09 : {} > INT09
|
||||
.int10 : {} > INT10
|
||||
.int11 : {} > INT11
|
||||
.int12 : {} > INT12
|
||||
.int13 : {} > INT13
|
||||
.int14 : {} > INT14
|
||||
.int15 : {} > INT15
|
||||
.int16 : {} > INT16
|
||||
.int17 : {} > INT17
|
||||
.int18 : {} > INT18
|
||||
.int19 : {} > INT19
|
||||
.int20 : {} > INT20
|
||||
.int21 : {} > INT21
|
||||
.int22 : {} > INT22
|
||||
.int23 : {} > INT23
|
||||
.int24 : {} > INT24
|
||||
.int25 : {} > INT25
|
||||
.int26 : {} > INT26
|
||||
.int27 : {} > INT27
|
||||
.int28 : {} > INT28
|
||||
.int29 : {} > INT29
|
||||
.int30 : {} > INT30
|
||||
.int31 : {} > INT31
|
||||
.int32 : {} > INT32
|
||||
.int33 : {} > INT33
|
||||
.int34 : {} > INT34
|
||||
.int35 : {} > INT35
|
||||
.int36 : {} > INT36
|
||||
.int37 : {} > INT37
|
||||
.int38 : {} > INT38
|
||||
.int39 : {} > INT39
|
||||
.int40 : {} > INT40
|
||||
RTC : { * ( .int41 ) } > INT41 type = VECT_INIT
|
||||
PORT2 : { * ( .int42 ) } > INT42 type = VECT_INIT
|
||||
TIMER2_A1 : { * ( .int43 ) } > INT43 type = VECT_INIT
|
||||
TIMER2_A0 : { * ( .int44 ) } > INT44 type = VECT_INIT
|
||||
USCI_B1 : { * ( .int45 ) } > INT45 type = VECT_INIT
|
||||
USCI_A1 : { * ( .int46 ) } > INT46 type = VECT_INIT
|
||||
PORT1 : { * ( .int47 ) } > INT47 type = VECT_INIT
|
||||
TIMER1_A1 : { * ( .int48 ) } > INT48 type = VECT_INIT
|
||||
TIMER1_A0 : { * ( .int49 ) } > INT49 type = VECT_INIT
|
||||
DMA : { * ( .int50 ) } > INT50 type = VECT_INIT
|
||||
USB_UBM : { * ( .int51 ) } > INT51 type = VECT_INIT
|
||||
TIMER0_A1 : { * ( .int52 ) } > INT52 type = VECT_INIT
|
||||
TIMER0_A0 : { * ( .int53 ) } > INT53 type = VECT_INIT
|
||||
ADC12 : { * ( .int54 ) } > INT54 type = VECT_INIT
|
||||
USCI_B0 : { * ( .int55 ) } > INT55 type = VECT_INIT
|
||||
USCI_A0 : { * ( .int56 ) } > INT56 type = VECT_INIT
|
||||
WDT : { * ( .int57 ) } > INT57 type = VECT_INIT
|
||||
TIMER0_B1 : { * ( .int58 ) } > INT58 type = VECT_INIT
|
||||
TIMER0_B0 : { * ( .int59 ) } > INT59 type = VECT_INIT
|
||||
COMP_B : { * ( .int60 ) } > INT60 type = VECT_INIT
|
||||
UNMI : { * ( .int61 ) } > INT61 type = VECT_INIT
|
||||
SYSNMI : { * ( .int62 ) } > INT62 type = VECT_INIT
|
||||
.reset : {} > RESET /* MSP430 Reset vector */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Include peripherals memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
-l msp430f5529.cmd
|
||||
|
32
CPE325/L1_Problem2/problem2.c
Normal file
32
CPE325/L1_Problem2/problem2.c
Normal file
@ -0,0 +1,32 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* File: problem2.c
|
||||
* Function: Change lowercase letters to uppercase letters
|
||||
* Description: This C program changes the message <20>Welcome to CPE 325 in Fall 2021!<21> to
|
||||
* "WELCOME TO CPE 325 IN FALL 2021!"
|
||||
* Input: None
|
||||
* Output: "WELCOME TO CPE 325 IN FALL 2021!"
|
||||
* Author(s): Noah Woodlee
|
||||
* Lab Section: 09
|
||||
* Date: Aug 20, 2021
|
||||
*----------------------------------------------------------------------------*/
|
||||
#include <msp430.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
|
||||
int main(){
|
||||
int i;
|
||||
char msg[] ="Welcome to CPE 325 in Fall 2021!";
|
||||
size_t size = sizeof(msg)/sizeof(msg[0]); // size of msg[]
|
||||
for (i=0; i < size;i++){ // loop over the array
|
||||
char str = msg[i]; // store the character in msg[i] as a char in str
|
||||
int str_as_int=(int)str; // covert string to an integer
|
||||
// check if str is lower-case
|
||||
if (islower(str)){
|
||||
msg[i]=str_as_int-32; // if it is, subtract 32 from the character value
|
||||
}
|
||||
else msg[i]=str_as_int; //else keep the string the same
|
||||
}
|
||||
printf("%s\n",msg); // print output
|
||||
}
|
12
CPE325/L1_Problem2/targetConfigs/MSP430F5529.ccxml
Normal file
12
CPE325/L1_Problem2/targetConfigs/MSP430F5529.ccxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="configuration_0">
|
||||
<instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="TI MSP430 USB1">
|
||||
<instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="MSP430F5529" href="devices/MSP430F5529.xml" id="MSP430F5529" xml="MSP430F5529.xml" xmlpath="devices"/>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
9
CPE325/L1_Problem2/targetConfigs/readme.txt
Normal file
9
CPE325/L1_Problem2/targetConfigs/readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
||||
on the device and connection settings specified in your project on the Properties > General page.
|
||||
|
||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
||||
you may create your own target-configuration file for this project and manage it manually. You can
|
||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
2441
CPE325/L2_P1/Debug/L2_P1.map
Normal file
2441
CPE325/L2_P1/Debug/L2_P1.map
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L2_P1/Debug/L2_P1.out
Normal file
BIN
CPE325/L2_P1/Debug/L2_P1.out
Normal file
Binary file not shown.
16453
CPE325/L2_P1/Debug/L2_P1_linkInfo.xml
Normal file
16453
CPE325/L2_P1/Debug/L2_P1_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
1
CPE325/L2_P1/Debug/ccsObjs.opt
Normal file
1
CPE325/L2_P1/Debug/ccsObjs.opt
Normal file
@ -0,0 +1 @@
|
||||
"./p1.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
|
168
CPE325/L2_P1/Debug/makefile
Normal file
168
CPE325/L2_P1/Debug/makefile
Normal file
@ -0,0 +1,168 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS
|
||||
|
||||
GEN_OPTS__FLAG :=
|
||||
GEN_CMDS__FLAG :=
|
||||
|
||||
ORDERED_OBJS += \
|
||||
"./p1.obj" \
|
||||
"../lnk_msp430f5529.cmd" \
|
||||
$(GEN_CMDS__FLAG) \
|
||||
-llibmath.a \
|
||||
-llibc.a \
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := DEL /F
|
||||
RMDIR := RMDIR /S/Q
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir_vars.mk
|
||||
-include subdir_rules.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C55_DEPS)),)
|
||||
-include $(C55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S67_DEPS)),)
|
||||
-include $(S67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S62_DEPS)),)
|
||||
-include $(S62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_DEPS)),)
|
||||
-include $(S_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(OPT_DEPS)),)
|
||||
-include $(OPT_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C??_DEPS)),)
|
||||
-include $(C??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
||||
-include $(ASM_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S??_DEPS)),)
|
||||
-include $(S??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C64_DEPS)),)
|
||||
-include $(C64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S64_DEPS)),)
|
||||
-include $(S64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(INO_DEPS)),)
|
||||
-include $(INO_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CLA_DEPS)),)
|
||||
-include $(CLA_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S55_DEPS)),)
|
||||
-include $(S55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SV7A_DEPS)),)
|
||||
-include $(SV7A_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C62_DEPS)),)
|
||||
-include $(C62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C67_DEPS)),)
|
||||
-include $(C67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(PDE_DEPS)),)
|
||||
-include $(PDE_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(K_DEPS)),)
|
||||
-include $(K_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C43_DEPS)),)
|
||||
-include $(C43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S43_DEPS)),)
|
||||
-include $(S43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_DEPS)),)
|
||||
-include $(ASM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SA_DEPS)),)
|
||||
-include $(SA_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
EXE_OUTPUTS += \
|
||||
L2_P1.out \
|
||||
|
||||
EXE_OUTPUTS__QUOTED += \
|
||||
"L2_P1.out" \
|
||||
|
||||
BIN_OUTPUTS += \
|
||||
L2_P1.hex \
|
||||
|
||||
BIN_OUTPUTS__QUOTED += \
|
||||
"L2_P1.hex" \
|
||||
|
||||
|
||||
# All Target
|
||||
all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@$(MAKE) --no-print-directory -Onone "L2_P1.out"
|
||||
|
||||
# Tool invocations
|
||||
L2_P1.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@echo 'Building target: "$@"'
|
||||
@echo 'Invoking: MSP430 Linker'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --advice:power="all" --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing -z -m"L2_P1.map" --heap_size=300 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="L2_P1_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "L2_P1.out" $(ORDERED_OBJS)
|
||||
@echo 'Finished building target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
L2_P1.hex: $(EXE_OUTPUTS)
|
||||
@echo 'Building secondary target: "$@"'
|
||||
@echo 'Invoking: MSP430 Hex Utility'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "L2_P1.hex" $(EXE_OUTPUTS__QUOTED)
|
||||
@echo 'Finished building secondary target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED)
|
||||
-$(RM) "p1.lst"
|
||||
-$(RM) "p1.obj"
|
||||
-$(RM) "p1.d"
|
||||
-@echo 'Finished clean'
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY:
|
||||
|
||||
-include ../makefile.targets
|
||||
|
8
CPE325/L2_P1/Debug/objects.mk
Normal file
8
CPE325/L2_P1/Debug/objects.mk
Normal file
@ -0,0 +1,8 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -llibmath.a -llibc.a
|
||||
|
48
CPE325/L2_P1/Debug/p1.d
Normal file
48
CPE325/L2_P1/Debug/p1.d
Normal file
@ -0,0 +1,48 @@
|
||||
# FIXED
|
||||
|
||||
p1.obj: ../p1.c
|
||||
p1.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/limits.h
|
||||
p1.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/float.h
|
||||
|
||||
../p1.c:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/limits.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/float.h:
|
||||
|
3703
CPE325/L2_P1/Debug/p1.lst
Normal file
3703
CPE325/L2_P1/Debug/p1.lst
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L2_P1/Debug/p1.obj
Normal file
BIN
CPE325/L2_P1/Debug/p1.obj
Normal file
Binary file not shown.
115
CPE325/L2_P1/Debug/sources.mk
Normal file
115
CPE325/L2_P1/Debug/sources.mk
Normal file
@ -0,0 +1,115 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C55_SRCS :=
|
||||
A_SRCS :=
|
||||
ASM_UPPER_SRCS :=
|
||||
EXE_SRCS :=
|
||||
LDS_UPPER_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CMD_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C??_SRCS :=
|
||||
C64_SRCS :=
|
||||
C67_SRCS :=
|
||||
SA_SRCS :=
|
||||
S64_SRCS :=
|
||||
OPT_SRCS :=
|
||||
CXX_SRCS :=
|
||||
S67_SRCS :=
|
||||
S??_SRCS :=
|
||||
PDE_SRCS :=
|
||||
SV7A_SRCS :=
|
||||
K_SRCS :=
|
||||
CLA_SRCS :=
|
||||
S55_SRCS :=
|
||||
LD_UPPER_SRCS :=
|
||||
OUT_SRCS :=
|
||||
INO_SRCS :=
|
||||
LIB_SRCS :=
|
||||
ASM_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
S43_SRCS :=
|
||||
LD_SRCS :=
|
||||
CMD_UPPER_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
C++_SRCS :=
|
||||
C43_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
LDS_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
S62_SRCS :=
|
||||
C62_SRCS :=
|
||||
C_SRCS :=
|
||||
C55_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S67_DEPS :=
|
||||
S62_DEPS :=
|
||||
S_DEPS :=
|
||||
OPT_DEPS :=
|
||||
C??_DEPS :=
|
||||
ASM_UPPER_DEPS :=
|
||||
S??_DEPS :=
|
||||
C64_DEPS :=
|
||||
CXX_DEPS :=
|
||||
S64_DEPS :=
|
||||
INO_DEPS :=
|
||||
CLA_DEPS :=
|
||||
S55_DEPS :=
|
||||
SV7A_DEPS :=
|
||||
EXE_OUTPUTS :=
|
||||
C62_DEPS :=
|
||||
C67_DEPS :=
|
||||
PDE_DEPS :=
|
||||
K_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
BIN_OUTPUTS :=
|
||||
C++_DEPS :=
|
||||
C43_DEPS :=
|
||||
S43_DEPS :=
|
||||
OBJS :=
|
||||
ASM_DEPS :=
|
||||
S_UPPER_DEPS :=
|
||||
CPP_DEPS :=
|
||||
SA_DEPS :=
|
||||
C++_DEPS__QUOTED :=
|
||||
OPT_DEPS__QUOTED :=
|
||||
S_UPPER_DEPS__QUOTED :=
|
||||
SA_DEPS__QUOTED :=
|
||||
C??_DEPS__QUOTED :=
|
||||
S67_DEPS__QUOTED :=
|
||||
C55_DEPS__QUOTED :=
|
||||
CC_DEPS__QUOTED :=
|
||||
ASM_UPPER_DEPS__QUOTED :=
|
||||
SV7A_DEPS__QUOTED :=
|
||||
S??_DEPS__QUOTED :=
|
||||
OBJS__QUOTED :=
|
||||
C67_DEPS__QUOTED :=
|
||||
K_DEPS__QUOTED :=
|
||||
S55_DEPS__QUOTED :=
|
||||
INO_DEPS__QUOTED :=
|
||||
C62_DEPS__QUOTED :=
|
||||
C_DEPS__QUOTED :=
|
||||
C_UPPER_DEPS__QUOTED :=
|
||||
C43_DEPS__QUOTED :=
|
||||
CPP_DEPS__QUOTED :=
|
||||
BIN_OUTPUTS__QUOTED :=
|
||||
C64_DEPS__QUOTED :=
|
||||
CXX_DEPS__QUOTED :=
|
||||
CLA_DEPS__QUOTED :=
|
||||
S_DEPS__QUOTED :=
|
||||
ASM_DEPS__QUOTED :=
|
||||
S43_DEPS__QUOTED :=
|
||||
EXE_OUTPUTS__QUOTED :=
|
||||
S64_DEPS__QUOTED :=
|
||||
S62_DEPS__QUOTED :=
|
||||
PDE_DEPS__QUOTED :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
15
CPE325/L2_P1/Debug/subdir_rules.mk
Normal file
15
CPE325/L2_P1/Debug/subdir_rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.obj: ../%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
|
||||
@echo 'Building file: "$<"'
|
||||
@echo 'Invoking: MSP430 Compiler'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/L2_P1" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power="all" --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
|
||||
@echo 'Finished building: "$<"'
|
||||
@echo ' '
|
||||
|
||||
|
29
CPE325/L2_P1/Debug/subdir_vars.mk
Normal file
29
CPE325/L2_P1/Debug/subdir_vars.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CMD_SRCS += \
|
||||
../lnk_msp430f5529.cmd
|
||||
|
||||
C_SRCS += \
|
||||
../p1.c
|
||||
|
||||
C_DEPS += \
|
||||
./p1.d
|
||||
|
||||
OBJS += \
|
||||
./p1.obj
|
||||
|
||||
OBJS__QUOTED += \
|
||||
"p1.obj"
|
||||
|
||||
C_DEPS__QUOTED += \
|
||||
"p1.d"
|
||||
|
||||
C_SRCS__QUOTED += \
|
||||
"../p1.c"
|
||||
|
||||
|
251
CPE325/L2_P1/lnk_msp430f5529.cmd
Executable file
251
CPE325/L2_P1/lnk_msp430f5529.cmd
Executable file
@ -0,0 +1,251 @@
|
||||
/* ============================================================================ */
|
||||
/* Copyright (c) 2020, Texas Instruments Incorporated */
|
||||
/* All rights reserved. */
|
||||
/* */
|
||||
/* Redistribution and use in source and binary forms, with or without */
|
||||
/* modification, are permitted provided that the following conditions */
|
||||
/* are met: */
|
||||
/* */
|
||||
/* * Redistributions of source code must retain the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer. */
|
||||
/* */
|
||||
/* * Redistributions in binary form must reproduce the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer in the */
|
||||
/* documentation and/or other materials provided with the distribution. */
|
||||
/* */
|
||||
/* * Neither the name of Texas Instruments Incorporated nor the names of */
|
||||
/* its contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */
|
||||
/* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
|
||||
/* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */
|
||||
/* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */
|
||||
/* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
|
||||
/* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR */
|
||||
/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ============================================================================ */
|
||||
|
||||
/******************************************************************************/
|
||||
/* lnk_msp430f5529.cmd - LINKER COMMAND FILE FOR LINKING MSP430F5529 PROGRAMS */
|
||||
/* */
|
||||
/* Usage: lnk430 <obj files...> -o <out file> -m <map file> lnk.cmd */
|
||||
/* cl430 <src files...> -z -o <out file> -m <map file> lnk.cmd */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* These linker options are for command line linking only. For IDE linking, */
|
||||
/* you should set your linker options in Project Properties */
|
||||
/* -c LINK USING C CONVENTIONS */
|
||||
/* -stack 0x0100 SOFTWARE STACK SIZE */
|
||||
/* -heap 0x0100 HEAP AREA SIZE */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Version: 1.211 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the system memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
SFR : origin = 0x0000, length = 0x0010
|
||||
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
|
||||
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
|
||||
RAM : origin = 0x2400, length = 0x2000
|
||||
USBRAM : origin = 0x1C00, length = 0x0800
|
||||
INFOA : origin = 0x1980, length = 0x0080
|
||||
INFOB : origin = 0x1900, length = 0x0080
|
||||
INFOC : origin = 0x1880, length = 0x0080
|
||||
INFOD : origin = 0x1800, length = 0x0080
|
||||
FLASH : origin = 0x4400, length = 0xBB80
|
||||
FLASH2 : origin = 0x10000,length = 0x143F8 /* Boundaries changed to fix CPU47 */
|
||||
INT00 : origin = 0xFF80, length = 0x0002
|
||||
INT01 : origin = 0xFF82, length = 0x0002
|
||||
INT02 : origin = 0xFF84, length = 0x0002
|
||||
INT03 : origin = 0xFF86, length = 0x0002
|
||||
INT04 : origin = 0xFF88, length = 0x0002
|
||||
INT05 : origin = 0xFF8A, length = 0x0002
|
||||
INT06 : origin = 0xFF8C, length = 0x0002
|
||||
INT07 : origin = 0xFF8E, length = 0x0002
|
||||
INT08 : origin = 0xFF90, length = 0x0002
|
||||
INT09 : origin = 0xFF92, length = 0x0002
|
||||
INT10 : origin = 0xFF94, length = 0x0002
|
||||
INT11 : origin = 0xFF96, length = 0x0002
|
||||
INT12 : origin = 0xFF98, length = 0x0002
|
||||
INT13 : origin = 0xFF9A, length = 0x0002
|
||||
INT14 : origin = 0xFF9C, length = 0x0002
|
||||
INT15 : origin = 0xFF9E, length = 0x0002
|
||||
INT16 : origin = 0xFFA0, length = 0x0002
|
||||
INT17 : origin = 0xFFA2, length = 0x0002
|
||||
INT18 : origin = 0xFFA4, length = 0x0002
|
||||
INT19 : origin = 0xFFA6, length = 0x0002
|
||||
INT20 : origin = 0xFFA8, length = 0x0002
|
||||
INT21 : origin = 0xFFAA, length = 0x0002
|
||||
INT22 : origin = 0xFFAC, length = 0x0002
|
||||
INT23 : origin = 0xFFAE, length = 0x0002
|
||||
INT24 : origin = 0xFFB0, length = 0x0002
|
||||
INT25 : origin = 0xFFB2, length = 0x0002
|
||||
INT26 : origin = 0xFFB4, length = 0x0002
|
||||
INT27 : origin = 0xFFB6, length = 0x0002
|
||||
INT28 : origin = 0xFFB8, length = 0x0002
|
||||
INT29 : origin = 0xFFBA, length = 0x0002
|
||||
INT30 : origin = 0xFFBC, length = 0x0002
|
||||
INT31 : origin = 0xFFBE, length = 0x0002
|
||||
INT32 : origin = 0xFFC0, length = 0x0002
|
||||
INT33 : origin = 0xFFC2, length = 0x0002
|
||||
INT34 : origin = 0xFFC4, length = 0x0002
|
||||
INT35 : origin = 0xFFC6, length = 0x0002
|
||||
INT36 : origin = 0xFFC8, length = 0x0002
|
||||
INT37 : origin = 0xFFCA, length = 0x0002
|
||||
INT38 : origin = 0xFFCC, length = 0x0002
|
||||
INT39 : origin = 0xFFCE, length = 0x0002
|
||||
INT40 : origin = 0xFFD0, length = 0x0002
|
||||
INT41 : origin = 0xFFD2, length = 0x0002
|
||||
INT42 : origin = 0xFFD4, length = 0x0002
|
||||
INT43 : origin = 0xFFD6, length = 0x0002
|
||||
INT44 : origin = 0xFFD8, length = 0x0002
|
||||
INT45 : origin = 0xFFDA, length = 0x0002
|
||||
INT46 : origin = 0xFFDC, length = 0x0002
|
||||
INT47 : origin = 0xFFDE, length = 0x0002
|
||||
INT48 : origin = 0xFFE0, length = 0x0002
|
||||
INT49 : origin = 0xFFE2, length = 0x0002
|
||||
INT50 : origin = 0xFFE4, length = 0x0002
|
||||
INT51 : origin = 0xFFE6, length = 0x0002
|
||||
INT52 : origin = 0xFFE8, length = 0x0002
|
||||
INT53 : origin = 0xFFEA, length = 0x0002
|
||||
INT54 : origin = 0xFFEC, length = 0x0002
|
||||
INT55 : origin = 0xFFEE, length = 0x0002
|
||||
INT56 : origin = 0xFFF0, length = 0x0002
|
||||
INT57 : origin = 0xFFF2, length = 0x0002
|
||||
INT58 : origin = 0xFFF4, length = 0x0002
|
||||
INT59 : origin = 0xFFF6, length = 0x0002
|
||||
INT60 : origin = 0xFFF8, length = 0x0002
|
||||
INT61 : origin = 0xFFFA, length = 0x0002
|
||||
INT62 : origin = 0xFFFC, length = 0x0002
|
||||
RESET : origin = 0xFFFE, length = 0x0002
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the sections allocation into memory */
|
||||
/****************************************************************************/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.bss : {} > RAM /* Global & static vars */
|
||||
.data : {} > RAM /* Global & static vars */
|
||||
.TI.noinit : {} > RAM /* For #pragma noinit */
|
||||
.sysmem : {} > RAM /* Dynamic memory allocation area */
|
||||
.stack : {} > RAM (HIGH) /* Software system stack */
|
||||
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.text : {} > FLASH /* Code */
|
||||
#else
|
||||
.text : {} >> FLASH2 | FLASH /* Code */
|
||||
#endif
|
||||
.text:_isr : {} > FLASH /* ISR Code space */
|
||||
.cinit : {} > FLASH /* Initialization tables */
|
||||
#ifndef __LARGE_DATA_MODEL__
|
||||
.const : {} > FLASH /* Constant data */
|
||||
#else
|
||||
.const : {} >> FLASH | FLASH2 /* Constant data */
|
||||
#endif
|
||||
.cio : {} > RAM /* C I/O Buffer */
|
||||
|
||||
.pinit : {} > FLASH /* C++ Constructor tables */
|
||||
.binit : {} > FLASH /* Boot-time Initialization tables */
|
||||
.init_array : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.exidx : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.extab : {} > FLASH /* C++ Constructor tables */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
|
||||
#else
|
||||
.TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.infoA : {} > INFOA /* MSP430 INFO FLASH Memory segments */
|
||||
.infoB : {} > INFOB
|
||||
.infoC : {} > INFOC
|
||||
.infoD : {} > INFOD
|
||||
|
||||
/* MSP430 Interrupt vectors */
|
||||
.int00 : {} > INT00
|
||||
.int01 : {} > INT01
|
||||
.int02 : {} > INT02
|
||||
.int03 : {} > INT03
|
||||
.int04 : {} > INT04
|
||||
.int05 : {} > INT05
|
||||
.int06 : {} > INT06
|
||||
.int07 : {} > INT07
|
||||
.int08 : {} > INT08
|
||||
.int09 : {} > INT09
|
||||
.int10 : {} > INT10
|
||||
.int11 : {} > INT11
|
||||
.int12 : {} > INT12
|
||||
.int13 : {} > INT13
|
||||
.int14 : {} > INT14
|
||||
.int15 : {} > INT15
|
||||
.int16 : {} > INT16
|
||||
.int17 : {} > INT17
|
||||
.int18 : {} > INT18
|
||||
.int19 : {} > INT19
|
||||
.int20 : {} > INT20
|
||||
.int21 : {} > INT21
|
||||
.int22 : {} > INT22
|
||||
.int23 : {} > INT23
|
||||
.int24 : {} > INT24
|
||||
.int25 : {} > INT25
|
||||
.int26 : {} > INT26
|
||||
.int27 : {} > INT27
|
||||
.int28 : {} > INT28
|
||||
.int29 : {} > INT29
|
||||
.int30 : {} > INT30
|
||||
.int31 : {} > INT31
|
||||
.int32 : {} > INT32
|
||||
.int33 : {} > INT33
|
||||
.int34 : {} > INT34
|
||||
.int35 : {} > INT35
|
||||
.int36 : {} > INT36
|
||||
.int37 : {} > INT37
|
||||
.int38 : {} > INT38
|
||||
.int39 : {} > INT39
|
||||
.int40 : {} > INT40
|
||||
RTC : { * ( .int41 ) } > INT41 type = VECT_INIT
|
||||
PORT2 : { * ( .int42 ) } > INT42 type = VECT_INIT
|
||||
TIMER2_A1 : { * ( .int43 ) } > INT43 type = VECT_INIT
|
||||
TIMER2_A0 : { * ( .int44 ) } > INT44 type = VECT_INIT
|
||||
USCI_B1 : { * ( .int45 ) } > INT45 type = VECT_INIT
|
||||
USCI_A1 : { * ( .int46 ) } > INT46 type = VECT_INIT
|
||||
PORT1 : { * ( .int47 ) } > INT47 type = VECT_INIT
|
||||
TIMER1_A1 : { * ( .int48 ) } > INT48 type = VECT_INIT
|
||||
TIMER1_A0 : { * ( .int49 ) } > INT49 type = VECT_INIT
|
||||
DMA : { * ( .int50 ) } > INT50 type = VECT_INIT
|
||||
USB_UBM : { * ( .int51 ) } > INT51 type = VECT_INIT
|
||||
TIMER0_A1 : { * ( .int52 ) } > INT52 type = VECT_INIT
|
||||
TIMER0_A0 : { * ( .int53 ) } > INT53 type = VECT_INIT
|
||||
ADC12 : { * ( .int54 ) } > INT54 type = VECT_INIT
|
||||
USCI_B0 : { * ( .int55 ) } > INT55 type = VECT_INIT
|
||||
USCI_A0 : { * ( .int56 ) } > INT56 type = VECT_INIT
|
||||
WDT : { * ( .int57 ) } > INT57 type = VECT_INIT
|
||||
TIMER0_B1 : { * ( .int58 ) } > INT58 type = VECT_INIT
|
||||
TIMER0_B0 : { * ( .int59 ) } > INT59 type = VECT_INIT
|
||||
COMP_B : { * ( .int60 ) } > INT60 type = VECT_INIT
|
||||
UNMI : { * ( .int61 ) } > INT61 type = VECT_INIT
|
||||
SYSNMI : { * ( .int62 ) } > INT62 type = VECT_INIT
|
||||
.reset : {} > RESET /* MSP430 Reset vector */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Include peripherals memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
-l msp430f5529.cmd
|
||||
|
60
CPE325/L2_P1/p1.c
Normal file
60
CPE325/L2_P1/p1.c
Normal file
@ -0,0 +1,60 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* File: p1.c
|
||||
* Function: Prints out variables according to their Data Type with the size and the ranges of the variables
|
||||
* Description: This C program outputs numbers using
|
||||
* Input: None
|
||||
* Output: "
|
||||
* Author(s): Noah Woodlee
|
||||
* Lab Section: 09
|
||||
* Date: Aug 20, 2021
|
||||
*----------------------------------------------------------------------------*/
|
||||
#include <msp430.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
|
||||
// Printf statements
|
||||
// Header
|
||||
printf("-------------------------------------------------------------------------------------------------------------------\n");
|
||||
printf("| Data Type | Value | Size (in bytes) | Min | Max |\n");
|
||||
printf("-------------------------------------------------------------------------------------------------------------------\n");
|
||||
// signed char
|
||||
char signedChar = 'a';
|
||||
printf("| signed char | '%c' | %d | %d | %d |\n",signedChar,sizeof(signedChar),SCHAR_MIN,SCHAR_MAX);
|
||||
// short int
|
||||
int shortInt = 12;
|
||||
printf("| short int | %hd | %d | %d | %d |\n",shortInt,sizeof(shortInt),SHRT_MIN,SHRT_MAX);
|
||||
// int
|
||||
int integer = 900;
|
||||
printf("| int | %d | %d | %d | %d |\n",integer,sizeof(integer),INT_MIN,INT_MAX);
|
||||
// long int
|
||||
int longInt = 200;
|
||||
printf("| long int | %hi | %i | %i | %i |\n",longInt,sizeof(longInt),LONG_MIN,LONG_MAX);
|
||||
// long long int
|
||||
int longlongInt = -400;
|
||||
printf("| long long int | %hhi | %d | %d | %d |\n",longlongInt,sizeof(longlongInt),LLONG_MIN,LLONG_MAX);
|
||||
// unsigned char
|
||||
char unsignedChar = 'o';
|
||||
printf("| unsigned char | '%c' | %d | %lu | %lu |\n",unsignedChar,sizeof(unsignedChar),0,UCHAR_MAX);
|
||||
//unsigned short int
|
||||
int unsignedshortInt = 500;
|
||||
printf("| unsigned short int | %hu | %d | %lu | %lu |\n",unsignedshortInt,sizeof(unsignedshortInt),0,LONG_MAX);
|
||||
//unsigned int
|
||||
int unsignedInt = 500;
|
||||
printf("| unsigned int | %u | %l | %u | %u |\n",unsignedInt,sizeof(unsignedInt),0,LONG_MAX);
|
||||
//unsigned long int
|
||||
int unsignedlongInt = 800;
|
||||
printf("| unsigned long int | %lu | %lu | %u | %ld |\n",unsignedlongInt,sizeof(unsignedlongInt),0,ULONG_MAX);
|
||||
//unsigned long long int
|
||||
int unsignedlonglongInt = 5000;
|
||||
printf("| unsigned long long int | %llu | %llu | %llu | %llu |\n",unsignedlonglongInt,sizeof(unsignedlonglongInt),0,ULLONG_MAX);
|
||||
//float
|
||||
float flo = 50.022;
|
||||
printf("| float | %f | %d | %f | %f |\n",flo,sizeof(flo), 16777215,FLT_MAX);
|
||||
//double
|
||||
double dou = 5506;
|
||||
printf("| double | '%E' | %d | %e | %e |\n",dou,sizeof(dou),DBL_MIN,DBL_MAX);
|
||||
}
|
12
CPE325/L2_P1/targetConfigs/MSP430F5529.ccxml
Normal file
12
CPE325/L2_P1/targetConfigs/MSP430F5529.ccxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="configuration_0">
|
||||
<instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="TI MSP430 USB1">
|
||||
<instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="MSP430F5529" href="devices/MSP430F5529.xml" id="MSP430F5529" xml="MSP430F5529.xml" xmlpath="devices"/>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
9
CPE325/L2_P1/targetConfigs/readme.txt
Normal file
9
CPE325/L2_P1/targetConfigs/readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
||||
on the device and connection settings specified in your project on the Properties > General page.
|
||||
|
||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
||||
you may create your own target-configuration file for this project and manage it manually. You can
|
||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
1
CPE325/L2_P3/Debug/ccsObjs.opt
Normal file
1
CPE325/L2_P3/Debug/ccsObjs.opt
Normal file
@ -0,0 +1 @@
|
||||
"./p3.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
|
168
CPE325/L2_P3/Debug/makefile
Normal file
168
CPE325/L2_P3/Debug/makefile
Normal file
@ -0,0 +1,168 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS
|
||||
|
||||
GEN_OPTS__FLAG :=
|
||||
GEN_CMDS__FLAG :=
|
||||
|
||||
ORDERED_OBJS += \
|
||||
"./p3.obj" \
|
||||
"../lnk_msp430f5529.cmd" \
|
||||
$(GEN_CMDS__FLAG) \
|
||||
-llibmath.a \
|
||||
-llibc.a \
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := DEL /F
|
||||
RMDIR := RMDIR /S/Q
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir_vars.mk
|
||||
-include subdir_rules.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C55_DEPS)),)
|
||||
-include $(C55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S67_DEPS)),)
|
||||
-include $(S67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S62_DEPS)),)
|
||||
-include $(S62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_DEPS)),)
|
||||
-include $(S_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(OPT_DEPS)),)
|
||||
-include $(OPT_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C??_DEPS)),)
|
||||
-include $(C??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
||||
-include $(ASM_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S??_DEPS)),)
|
||||
-include $(S??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C64_DEPS)),)
|
||||
-include $(C64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S64_DEPS)),)
|
||||
-include $(S64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(INO_DEPS)),)
|
||||
-include $(INO_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CLA_DEPS)),)
|
||||
-include $(CLA_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S55_DEPS)),)
|
||||
-include $(S55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SV7A_DEPS)),)
|
||||
-include $(SV7A_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C62_DEPS)),)
|
||||
-include $(C62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C67_DEPS)),)
|
||||
-include $(C67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(PDE_DEPS)),)
|
||||
-include $(PDE_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(K_DEPS)),)
|
||||
-include $(K_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C43_DEPS)),)
|
||||
-include $(C43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S43_DEPS)),)
|
||||
-include $(S43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_DEPS)),)
|
||||
-include $(ASM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SA_DEPS)),)
|
||||
-include $(SA_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
EXE_OUTPUTS += \
|
||||
L2_P3.out \
|
||||
|
||||
EXE_OUTPUTS__QUOTED += \
|
||||
"L2_P3.out" \
|
||||
|
||||
BIN_OUTPUTS += \
|
||||
L2_P3.hex \
|
||||
|
||||
BIN_OUTPUTS__QUOTED += \
|
||||
"L2_P3.hex" \
|
||||
|
||||
|
||||
# All Target
|
||||
all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@$(MAKE) --no-print-directory -Onone "L2_P3.out"
|
||||
|
||||
# Tool invocations
|
||||
L2_P3.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@echo 'Building target: "$@"'
|
||||
@echo 'Invoking: MSP430 Linker'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing -z -m"L2_P3.map" --heap_size=300 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="L2_P3_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "L2_P3.out" $(ORDERED_OBJS)
|
||||
@echo 'Finished building target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
L2_P3.hex: $(EXE_OUTPUTS)
|
||||
@echo 'Building secondary target: "$@"'
|
||||
@echo 'Invoking: MSP430 Hex Utility'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "L2_P3.hex" $(EXE_OUTPUTS__QUOTED)
|
||||
@echo 'Finished building secondary target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED)
|
||||
-$(RM) "p3.lst"
|
||||
-$(RM) "p3.obj"
|
||||
-$(RM) "p3.d"
|
||||
-@echo 'Finished clean'
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY:
|
||||
|
||||
-include ../makefile.targets
|
||||
|
8
CPE325/L2_P3/Debug/objects.mk
Normal file
8
CPE325/L2_P3/Debug/objects.mk
Normal file
@ -0,0 +1,8 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -llibmath.a -llibc.a
|
||||
|
6
CPE325/L2_P3/Debug/p3.d
Normal file
6
CPE325/L2_P3/Debug/p3.d
Normal file
@ -0,0 +1,6 @@
|
||||
# FIXED
|
||||
|
||||
p3.obj: ../p3.c
|
||||
|
||||
../p3.c:
|
||||
|
115
CPE325/L2_P3/Debug/sources.mk
Normal file
115
CPE325/L2_P3/Debug/sources.mk
Normal file
@ -0,0 +1,115 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C55_SRCS :=
|
||||
A_SRCS :=
|
||||
ASM_UPPER_SRCS :=
|
||||
EXE_SRCS :=
|
||||
LDS_UPPER_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CMD_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C??_SRCS :=
|
||||
C64_SRCS :=
|
||||
C67_SRCS :=
|
||||
SA_SRCS :=
|
||||
S64_SRCS :=
|
||||
OPT_SRCS :=
|
||||
CXX_SRCS :=
|
||||
S67_SRCS :=
|
||||
S??_SRCS :=
|
||||
PDE_SRCS :=
|
||||
SV7A_SRCS :=
|
||||
K_SRCS :=
|
||||
CLA_SRCS :=
|
||||
S55_SRCS :=
|
||||
LD_UPPER_SRCS :=
|
||||
OUT_SRCS :=
|
||||
INO_SRCS :=
|
||||
LIB_SRCS :=
|
||||
ASM_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
S43_SRCS :=
|
||||
LD_SRCS :=
|
||||
CMD_UPPER_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
C++_SRCS :=
|
||||
C43_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
LDS_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
S62_SRCS :=
|
||||
C62_SRCS :=
|
||||
C_SRCS :=
|
||||
C55_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S67_DEPS :=
|
||||
S62_DEPS :=
|
||||
S_DEPS :=
|
||||
OPT_DEPS :=
|
||||
C??_DEPS :=
|
||||
ASM_UPPER_DEPS :=
|
||||
S??_DEPS :=
|
||||
C64_DEPS :=
|
||||
CXX_DEPS :=
|
||||
S64_DEPS :=
|
||||
INO_DEPS :=
|
||||
CLA_DEPS :=
|
||||
S55_DEPS :=
|
||||
SV7A_DEPS :=
|
||||
EXE_OUTPUTS :=
|
||||
C62_DEPS :=
|
||||
C67_DEPS :=
|
||||
PDE_DEPS :=
|
||||
K_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
BIN_OUTPUTS :=
|
||||
C++_DEPS :=
|
||||
C43_DEPS :=
|
||||
S43_DEPS :=
|
||||
OBJS :=
|
||||
ASM_DEPS :=
|
||||
S_UPPER_DEPS :=
|
||||
CPP_DEPS :=
|
||||
SA_DEPS :=
|
||||
C++_DEPS__QUOTED :=
|
||||
OPT_DEPS__QUOTED :=
|
||||
S_UPPER_DEPS__QUOTED :=
|
||||
SA_DEPS__QUOTED :=
|
||||
C??_DEPS__QUOTED :=
|
||||
S67_DEPS__QUOTED :=
|
||||
C55_DEPS__QUOTED :=
|
||||
CC_DEPS__QUOTED :=
|
||||
ASM_UPPER_DEPS__QUOTED :=
|
||||
SV7A_DEPS__QUOTED :=
|
||||
S??_DEPS__QUOTED :=
|
||||
OBJS__QUOTED :=
|
||||
C67_DEPS__QUOTED :=
|
||||
K_DEPS__QUOTED :=
|
||||
S55_DEPS__QUOTED :=
|
||||
INO_DEPS__QUOTED :=
|
||||
C62_DEPS__QUOTED :=
|
||||
C_DEPS__QUOTED :=
|
||||
C_UPPER_DEPS__QUOTED :=
|
||||
C43_DEPS__QUOTED :=
|
||||
CPP_DEPS__QUOTED :=
|
||||
BIN_OUTPUTS__QUOTED :=
|
||||
C64_DEPS__QUOTED :=
|
||||
CXX_DEPS__QUOTED :=
|
||||
CLA_DEPS__QUOTED :=
|
||||
S_DEPS__QUOTED :=
|
||||
ASM_DEPS__QUOTED :=
|
||||
S43_DEPS__QUOTED :=
|
||||
EXE_OUTPUTS__QUOTED :=
|
||||
S64_DEPS__QUOTED :=
|
||||
S62_DEPS__QUOTED :=
|
||||
PDE_DEPS__QUOTED :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
15
CPE325/L2_P3/Debug/subdir_rules.mk
Normal file
15
CPE325/L2_P3/Debug/subdir_rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.obj: ../%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
|
||||
@echo 'Building file: "$<"'
|
||||
@echo 'Invoking: MSP430 Compiler'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmsp --data_model=small -Ooff --use_hw_mpy=F5 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/L2_P3" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --asm_listing --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
|
||||
@echo 'Finished building: "$<"'
|
||||
@echo ' '
|
||||
|
||||
|
29
CPE325/L2_P3/Debug/subdir_vars.mk
Normal file
29
CPE325/L2_P3/Debug/subdir_vars.mk
Normal file
@ -0,0 +1,29 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CMD_SRCS += \
|
||||
../lnk_msp430f5529.cmd
|
||||
|
||||
C_SRCS += \
|
||||
../p3.c
|
||||
|
||||
C_DEPS += \
|
||||
./p3.d
|
||||
|
||||
OBJS += \
|
||||
./p3.obj
|
||||
|
||||
OBJS__QUOTED += \
|
||||
"p3.obj"
|
||||
|
||||
C_DEPS__QUOTED += \
|
||||
"p3.d"
|
||||
|
||||
C_SRCS__QUOTED += \
|
||||
"../p3.c"
|
||||
|
||||
|
251
CPE325/L2_P3/lnk_msp430f5529.cmd
Executable file
251
CPE325/L2_P3/lnk_msp430f5529.cmd
Executable file
@ -0,0 +1,251 @@
|
||||
/* ============================================================================ */
|
||||
/* Copyright (c) 2020, Texas Instruments Incorporated */
|
||||
/* All rights reserved. */
|
||||
/* */
|
||||
/* Redistribution and use in source and binary forms, with or without */
|
||||
/* modification, are permitted provided that the following conditions */
|
||||
/* are met: */
|
||||
/* */
|
||||
/* * Redistributions of source code must retain the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer. */
|
||||
/* */
|
||||
/* * Redistributions in binary form must reproduce the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer in the */
|
||||
/* documentation and/or other materials provided with the distribution. */
|
||||
/* */
|
||||
/* * Neither the name of Texas Instruments Incorporated nor the names of */
|
||||
/* its contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */
|
||||
/* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
|
||||
/* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */
|
||||
/* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */
|
||||
/* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
|
||||
/* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR */
|
||||
/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ============================================================================ */
|
||||
|
||||
/******************************************************************************/
|
||||
/* lnk_msp430f5529.cmd - LINKER COMMAND FILE FOR LINKING MSP430F5529 PROGRAMS */
|
||||
/* */
|
||||
/* Usage: lnk430 <obj files...> -o <out file> -m <map file> lnk.cmd */
|
||||
/* cl430 <src files...> -z -o <out file> -m <map file> lnk.cmd */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* These linker options are for command line linking only. For IDE linking, */
|
||||
/* you should set your linker options in Project Properties */
|
||||
/* -c LINK USING C CONVENTIONS */
|
||||
/* -stack 0x0100 SOFTWARE STACK SIZE */
|
||||
/* -heap 0x0100 HEAP AREA SIZE */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Version: 1.211 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the system memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
SFR : origin = 0x0000, length = 0x0010
|
||||
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
|
||||
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
|
||||
RAM : origin = 0x2400, length = 0x2000
|
||||
USBRAM : origin = 0x1C00, length = 0x0800
|
||||
INFOA : origin = 0x1980, length = 0x0080
|
||||
INFOB : origin = 0x1900, length = 0x0080
|
||||
INFOC : origin = 0x1880, length = 0x0080
|
||||
INFOD : origin = 0x1800, length = 0x0080
|
||||
FLASH : origin = 0x4400, length = 0xBB80
|
||||
FLASH2 : origin = 0x10000,length = 0x143F8 /* Boundaries changed to fix CPU47 */
|
||||
INT00 : origin = 0xFF80, length = 0x0002
|
||||
INT01 : origin = 0xFF82, length = 0x0002
|
||||
INT02 : origin = 0xFF84, length = 0x0002
|
||||
INT03 : origin = 0xFF86, length = 0x0002
|
||||
INT04 : origin = 0xFF88, length = 0x0002
|
||||
INT05 : origin = 0xFF8A, length = 0x0002
|
||||
INT06 : origin = 0xFF8C, length = 0x0002
|
||||
INT07 : origin = 0xFF8E, length = 0x0002
|
||||
INT08 : origin = 0xFF90, length = 0x0002
|
||||
INT09 : origin = 0xFF92, length = 0x0002
|
||||
INT10 : origin = 0xFF94, length = 0x0002
|
||||
INT11 : origin = 0xFF96, length = 0x0002
|
||||
INT12 : origin = 0xFF98, length = 0x0002
|
||||
INT13 : origin = 0xFF9A, length = 0x0002
|
||||
INT14 : origin = 0xFF9C, length = 0x0002
|
||||
INT15 : origin = 0xFF9E, length = 0x0002
|
||||
INT16 : origin = 0xFFA0, length = 0x0002
|
||||
INT17 : origin = 0xFFA2, length = 0x0002
|
||||
INT18 : origin = 0xFFA4, length = 0x0002
|
||||
INT19 : origin = 0xFFA6, length = 0x0002
|
||||
INT20 : origin = 0xFFA8, length = 0x0002
|
||||
INT21 : origin = 0xFFAA, length = 0x0002
|
||||
INT22 : origin = 0xFFAC, length = 0x0002
|
||||
INT23 : origin = 0xFFAE, length = 0x0002
|
||||
INT24 : origin = 0xFFB0, length = 0x0002
|
||||
INT25 : origin = 0xFFB2, length = 0x0002
|
||||
INT26 : origin = 0xFFB4, length = 0x0002
|
||||
INT27 : origin = 0xFFB6, length = 0x0002
|
||||
INT28 : origin = 0xFFB8, length = 0x0002
|
||||
INT29 : origin = 0xFFBA, length = 0x0002
|
||||
INT30 : origin = 0xFFBC, length = 0x0002
|
||||
INT31 : origin = 0xFFBE, length = 0x0002
|
||||
INT32 : origin = 0xFFC0, length = 0x0002
|
||||
INT33 : origin = 0xFFC2, length = 0x0002
|
||||
INT34 : origin = 0xFFC4, length = 0x0002
|
||||
INT35 : origin = 0xFFC6, length = 0x0002
|
||||
INT36 : origin = 0xFFC8, length = 0x0002
|
||||
INT37 : origin = 0xFFCA, length = 0x0002
|
||||
INT38 : origin = 0xFFCC, length = 0x0002
|
||||
INT39 : origin = 0xFFCE, length = 0x0002
|
||||
INT40 : origin = 0xFFD0, length = 0x0002
|
||||
INT41 : origin = 0xFFD2, length = 0x0002
|
||||
INT42 : origin = 0xFFD4, length = 0x0002
|
||||
INT43 : origin = 0xFFD6, length = 0x0002
|
||||
INT44 : origin = 0xFFD8, length = 0x0002
|
||||
INT45 : origin = 0xFFDA, length = 0x0002
|
||||
INT46 : origin = 0xFFDC, length = 0x0002
|
||||
INT47 : origin = 0xFFDE, length = 0x0002
|
||||
INT48 : origin = 0xFFE0, length = 0x0002
|
||||
INT49 : origin = 0xFFE2, length = 0x0002
|
||||
INT50 : origin = 0xFFE4, length = 0x0002
|
||||
INT51 : origin = 0xFFE6, length = 0x0002
|
||||
INT52 : origin = 0xFFE8, length = 0x0002
|
||||
INT53 : origin = 0xFFEA, length = 0x0002
|
||||
INT54 : origin = 0xFFEC, length = 0x0002
|
||||
INT55 : origin = 0xFFEE, length = 0x0002
|
||||
INT56 : origin = 0xFFF0, length = 0x0002
|
||||
INT57 : origin = 0xFFF2, length = 0x0002
|
||||
INT58 : origin = 0xFFF4, length = 0x0002
|
||||
INT59 : origin = 0xFFF6, length = 0x0002
|
||||
INT60 : origin = 0xFFF8, length = 0x0002
|
||||
INT61 : origin = 0xFFFA, length = 0x0002
|
||||
INT62 : origin = 0xFFFC, length = 0x0002
|
||||
RESET : origin = 0xFFFE, length = 0x0002
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the sections allocation into memory */
|
||||
/****************************************************************************/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.bss : {} > RAM /* Global & static vars */
|
||||
.data : {} > RAM /* Global & static vars */
|
||||
.TI.noinit : {} > RAM /* For #pragma noinit */
|
||||
.sysmem : {} > RAM /* Dynamic memory allocation area */
|
||||
.stack : {} > RAM (HIGH) /* Software system stack */
|
||||
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.text : {} > FLASH /* Code */
|
||||
#else
|
||||
.text : {} >> FLASH2 | FLASH /* Code */
|
||||
#endif
|
||||
.text:_isr : {} > FLASH /* ISR Code space */
|
||||
.cinit : {} > FLASH /* Initialization tables */
|
||||
#ifndef __LARGE_DATA_MODEL__
|
||||
.const : {} > FLASH /* Constant data */
|
||||
#else
|
||||
.const : {} >> FLASH | FLASH2 /* Constant data */
|
||||
#endif
|
||||
.cio : {} > RAM /* C I/O Buffer */
|
||||
|
||||
.pinit : {} > FLASH /* C++ Constructor tables */
|
||||
.binit : {} > FLASH /* Boot-time Initialization tables */
|
||||
.init_array : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.exidx : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.extab : {} > FLASH /* C++ Constructor tables */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
|
||||
#else
|
||||
.TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.infoA : {} > INFOA /* MSP430 INFO FLASH Memory segments */
|
||||
.infoB : {} > INFOB
|
||||
.infoC : {} > INFOC
|
||||
.infoD : {} > INFOD
|
||||
|
||||
/* MSP430 Interrupt vectors */
|
||||
.int00 : {} > INT00
|
||||
.int01 : {} > INT01
|
||||
.int02 : {} > INT02
|
||||
.int03 : {} > INT03
|
||||
.int04 : {} > INT04
|
||||
.int05 : {} > INT05
|
||||
.int06 : {} > INT06
|
||||
.int07 : {} > INT07
|
||||
.int08 : {} > INT08
|
||||
.int09 : {} > INT09
|
||||
.int10 : {} > INT10
|
||||
.int11 : {} > INT11
|
||||
.int12 : {} > INT12
|
||||
.int13 : {} > INT13
|
||||
.int14 : {} > INT14
|
||||
.int15 : {} > INT15
|
||||
.int16 : {} > INT16
|
||||
.int17 : {} > INT17
|
||||
.int18 : {} > INT18
|
||||
.int19 : {} > INT19
|
||||
.int20 : {} > INT20
|
||||
.int21 : {} > INT21
|
||||
.int22 : {} > INT22
|
||||
.int23 : {} > INT23
|
||||
.int24 : {} > INT24
|
||||
.int25 : {} > INT25
|
||||
.int26 : {} > INT26
|
||||
.int27 : {} > INT27
|
||||
.int28 : {} > INT28
|
||||
.int29 : {} > INT29
|
||||
.int30 : {} > INT30
|
||||
.int31 : {} > INT31
|
||||
.int32 : {} > INT32
|
||||
.int33 : {} > INT33
|
||||
.int34 : {} > INT34
|
||||
.int35 : {} > INT35
|
||||
.int36 : {} > INT36
|
||||
.int37 : {} > INT37
|
||||
.int38 : {} > INT38
|
||||
.int39 : {} > INT39
|
||||
.int40 : {} > INT40
|
||||
RTC : { * ( .int41 ) } > INT41 type = VECT_INIT
|
||||
PORT2 : { * ( .int42 ) } > INT42 type = VECT_INIT
|
||||
TIMER2_A1 : { * ( .int43 ) } > INT43 type = VECT_INIT
|
||||
TIMER2_A0 : { * ( .int44 ) } > INT44 type = VECT_INIT
|
||||
USCI_B1 : { * ( .int45 ) } > INT45 type = VECT_INIT
|
||||
USCI_A1 : { * ( .int46 ) } > INT46 type = VECT_INIT
|
||||
PORT1 : { * ( .int47 ) } > INT47 type = VECT_INIT
|
||||
TIMER1_A1 : { * ( .int48 ) } > INT48 type = VECT_INIT
|
||||
TIMER1_A0 : { * ( .int49 ) } > INT49 type = VECT_INIT
|
||||
DMA : { * ( .int50 ) } > INT50 type = VECT_INIT
|
||||
USB_UBM : { * ( .int51 ) } > INT51 type = VECT_INIT
|
||||
TIMER0_A1 : { * ( .int52 ) } > INT52 type = VECT_INIT
|
||||
TIMER0_A0 : { * ( .int53 ) } > INT53 type = VECT_INIT
|
||||
ADC12 : { * ( .int54 ) } > INT54 type = VECT_INIT
|
||||
USCI_B0 : { * ( .int55 ) } > INT55 type = VECT_INIT
|
||||
USCI_A0 : { * ( .int56 ) } > INT56 type = VECT_INIT
|
||||
WDT : { * ( .int57 ) } > INT57 type = VECT_INIT
|
||||
TIMER0_B1 : { * ( .int58 ) } > INT58 type = VECT_INIT
|
||||
TIMER0_B0 : { * ( .int59 ) } > INT59 type = VECT_INIT
|
||||
COMP_B : { * ( .int60 ) } > INT60 type = VECT_INIT
|
||||
UNMI : { * ( .int61 ) } > INT61 type = VECT_INIT
|
||||
SYSNMI : { * ( .int62 ) } > INT62 type = VECT_INIT
|
||||
.reset : {} > RESET /* MSP430 Reset vector */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Include peripherals memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
-l msp430f5529.cmd
|
||||
|
32
CPE325/L2_P3/p3.c
Normal file
32
CPE325/L2_P3/p3.c
Normal file
@ -0,0 +1,32 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* File: p3.c
|
||||
* Function: Prints out variables according to their Data Type with the size and the ranges of the variables
|
||||
* Description: This C program outputs numbers using
|
||||
* Input: None
|
||||
* Output: "
|
||||
* Author(s): Noah Woodlee
|
||||
* Lab Section: 09
|
||||
* Date: Aug 20, 2021
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
int a[5]={0xA, 0x6, -0x8, 0x5, 0xC};
|
||||
int b[5] = {0xD, -0xE, 0x7, 0x2, 0x1};
|
||||
|
||||
int orOp_0 = (0xA | 0xD);
|
||||
int andOp_0 = (0xA & 0xD);
|
||||
|
||||
int orOp_1 = (0x6 | -0xE);
|
||||
int andOp_1 = (0x6 & -0xE);
|
||||
|
||||
int orOp_2 = (a[2] | b[2]);
|
||||
int andOp_2 = (a[2] & b[2]);
|
||||
|
||||
int orOp_3 = (a[3] | b[3]);
|
||||
int andOp_3 = (a[3] & b[3]);
|
||||
|
||||
int orOp_4 = (a[4] | b[4]);
|
||||
int andOp_4 = (a[4] & b[4]);
|
||||
|
||||
printf("Input array a: {0xA, 0x6, -0x8, 0x5, 0xC}\n");
|
||||
printf("Input array b: {0xD, -0xE, 0x7, 0x2, 0x1}\n");
|
||||
printf("The OR opperation for the 0th element is: %o",(a[0] | b[0]));
|
12
CPE325/L2_P3/targetConfigs/MSP430F5529.ccxml
Normal file
12
CPE325/L2_P3/targetConfigs/MSP430F5529.ccxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="configuration_0">
|
||||
<instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="TI MSP430 USB1">
|
||||
<instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="MSP430F5529" href="devices/MSP430F5529.xml" id="MSP430F5529" xml="MSP430F5529.xml" xmlpath="devices"/>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
9
CPE325/L2_P3/targetConfigs/readme.txt
Normal file
9
CPE325/L2_P3/targetConfigs/readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
||||
on the device and connection settings specified in your project on the Properties > General page.
|
||||
|
||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
||||
you may create your own target-configuration file for this project and manage it manually. You can
|
||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
42
CPE325/L3/Debug/L3.d
Normal file
42
CPE325/L3/Debug/L3.d
Normal file
@ -0,0 +1,42 @@
|
||||
# FIXED
|
||||
|
||||
L3.obj: ../L3.c
|
||||
L3.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h
|
||||
L3.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h
|
||||
|
||||
../L3.c:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdio.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/_ti_config.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/linkage.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/stdarg.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/_types.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/sys/cdefs.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/machine/_types.h:
|
||||
|
1781
CPE325/L3/Debug/L3.map
Normal file
1781
CPE325/L3/Debug/L3.map
Normal file
File diff suppressed because it is too large
Load Diff
BIN
CPE325/L3/Debug/L3.obj
Normal file
BIN
CPE325/L3/Debug/L3.obj
Normal file
Binary file not shown.
BIN
CPE325/L3/Debug/L3.out
Normal file
BIN
CPE325/L3/Debug/L3.out
Normal file
Binary file not shown.
5677
CPE325/L3/Debug/L3_linkInfo.xml
Normal file
5677
CPE325/L3/Debug/L3_linkInfo.xml
Normal file
File diff suppressed because it is too large
Load Diff
21
CPE325/L3/Debug/Lab03_D2.d
Normal file
21
CPE325/L3/Debug/Lab03_D2.d
Normal file
@ -0,0 +1,21 @@
|
||||
# FIXED
|
||||
|
||||
Lab03_D2.obj: ../Lab03_D2.c
|
||||
Lab03_D2.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h
|
||||
Lab03_D2.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h
|
||||
Lab03_D2.obj: C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h
|
||||
Lab03_D2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h
|
||||
Lab03_D2.obj: C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h
|
||||
|
||||
../Lab03_D2.c:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/msp430f5529.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/ccs_base/msp430/include/in430.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics.h:
|
||||
|
||||
C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include/intrinsics_legacy_undefs.h:
|
||||
|
BIN
CPE325/L3/Debug/Lab03_D2.obj
Normal file
BIN
CPE325/L3/Debug/Lab03_D2.obj
Normal file
Binary file not shown.
6
CPE325/L3/Debug/Lab03_D3.d
Normal file
6
CPE325/L3/Debug/Lab03_D3.d
Normal file
@ -0,0 +1,6 @@
|
||||
# FIXED
|
||||
|
||||
Lab03_D3.obj: ../Lab03_D3.c
|
||||
|
||||
../Lab03_D3.c:
|
||||
|
BIN
CPE325/L3/Debug/Lab03_D3.obj
Normal file
BIN
CPE325/L3/Debug/Lab03_D3.obj
Normal file
Binary file not shown.
1
CPE325/L3/Debug/ccsObjs.opt
Normal file
1
CPE325/L3/Debug/ccsObjs.opt
Normal file
@ -0,0 +1 @@
|
||||
"./L3.obj" "./Lab03_D2.obj" "./Lab03_D3.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
|
169
CPE325/L3/Debug/makefile
Normal file
169
CPE325/L3/Debug/makefile
Normal file
@ -0,0 +1,169 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
CG_TOOL_ROOT := C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS
|
||||
|
||||
GEN_OPTS__FLAG :=
|
||||
GEN_CMDS__FLAG :=
|
||||
|
||||
ORDERED_OBJS += \
|
||||
"./L3.obj" \
|
||||
"./Lab03_D2.obj" \
|
||||
"./Lab03_D3.obj" \
|
||||
"../lnk_msp430f5529.cmd" \
|
||||
$(GEN_CMDS__FLAG) \
|
||||
-llibmath.a \
|
||||
-llibc.a \
|
||||
|
||||
-include ../makefile.init
|
||||
|
||||
RM := DEL /F
|
||||
RMDIR := RMDIR /S/Q
|
||||
|
||||
# All of the sources participating in the build are defined here
|
||||
-include sources.mk
|
||||
-include subdir_vars.mk
|
||||
-include subdir_rules.mk
|
||||
-include objects.mk
|
||||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(strip $(C55_DEPS)),)
|
||||
-include $(C55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_UPPER_DEPS)),)
|
||||
-include $(C_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S67_DEPS)),)
|
||||
-include $(S67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S62_DEPS)),)
|
||||
-include $(S62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_DEPS)),)
|
||||
-include $(S_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(OPT_DEPS)),)
|
||||
-include $(OPT_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C??_DEPS)),)
|
||||
-include $(C??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_UPPER_DEPS)),)
|
||||
-include $(ASM_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S??_DEPS)),)
|
||||
-include $(S??_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C64_DEPS)),)
|
||||
-include $(C64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CXX_DEPS)),)
|
||||
-include $(CXX_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S64_DEPS)),)
|
||||
-include $(S64_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(INO_DEPS)),)
|
||||
-include $(INO_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CLA_DEPS)),)
|
||||
-include $(CLA_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S55_DEPS)),)
|
||||
-include $(S55_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SV7A_DEPS)),)
|
||||
-include $(SV7A_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C62_DEPS)),)
|
||||
-include $(C62_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C67_DEPS)),)
|
||||
-include $(C67_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(PDE_DEPS)),)
|
||||
-include $(PDE_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(K_DEPS)),)
|
||||
-include $(K_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C_DEPS)),)
|
||||
-include $(C_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CC_DEPS)),)
|
||||
-include $(CC_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C++_DEPS)),)
|
||||
-include $(C++_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(C43_DEPS)),)
|
||||
-include $(C43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S43_DEPS)),)
|
||||
-include $(S43_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(ASM_DEPS)),)
|
||||
-include $(ASM_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(S_UPPER_DEPS)),)
|
||||
-include $(S_UPPER_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(CPP_DEPS)),)
|
||||
-include $(CPP_DEPS)
|
||||
endif
|
||||
ifneq ($(strip $(SA_DEPS)),)
|
||||
-include $(SA_DEPS)
|
||||
endif
|
||||
endif
|
||||
|
||||
-include ../makefile.defs
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
EXE_OUTPUTS += \
|
||||
L3.out \
|
||||
|
||||
EXE_OUTPUTS__QUOTED += \
|
||||
"L3.out" \
|
||||
|
||||
BIN_OUTPUTS += \
|
||||
L3.hex \
|
||||
|
||||
BIN_OUTPUTS__QUOTED += \
|
||||
"L3.hex" \
|
||||
|
||||
|
||||
# All Target
|
||||
all: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@$(MAKE) --no-print-directory -Onone "L3.out"
|
||||
|
||||
# Tool invocations
|
||||
L3.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)
|
||||
@echo 'Building target: "$@"'
|
||||
@echo 'Invoking: MSP430 Linker'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"L3.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs1040/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1040/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/lib" -i"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="L3_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "L3.out" $(ORDERED_OBJS)
|
||||
@echo 'Finished building target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
L3.hex: $(EXE_OUTPUTS)
|
||||
@echo 'Building secondary target: "$@"'
|
||||
@echo 'Invoking: MSP430 Hex Utility'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/hex430" --memwidth=8 --romwidth=8 --diag_wrap=off -o "L3.hex" $(EXE_OUTPUTS__QUOTED)
|
||||
@echo 'Finished building secondary target: "$@"'
|
||||
@echo ' '
|
||||
|
||||
# Other Targets
|
||||
clean:
|
||||
-$(RM) $(BIN_OUTPUTS__QUOTED)$(EXE_OUTPUTS__QUOTED)
|
||||
-$(RM) "L3.obj" "Lab03_D2.obj" "Lab03_D3.obj"
|
||||
-$(RM) "L3.d" "Lab03_D2.d" "Lab03_D3.d"
|
||||
-@echo 'Finished clean'
|
||||
-@echo ' '
|
||||
|
||||
.PHONY: all clean dependents
|
||||
.SECONDARY:
|
||||
|
||||
-include ../makefile.targets
|
||||
|
8
CPE325/L3/Debug/objects.mk
Normal file
8
CPE325/L3/Debug/objects.mk
Normal file
@ -0,0 +1,8 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
USER_OBJS :=
|
||||
|
||||
LIBS := -llibmath.a -llibc.a
|
||||
|
115
CPE325/L3/Debug/sources.mk
Normal file
115
CPE325/L3/Debug/sources.mk
Normal file
@ -0,0 +1,115 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
C55_SRCS :=
|
||||
A_SRCS :=
|
||||
ASM_UPPER_SRCS :=
|
||||
EXE_SRCS :=
|
||||
LDS_UPPER_SRCS :=
|
||||
CPP_SRCS :=
|
||||
CMD_SRCS :=
|
||||
O_SRCS :=
|
||||
ELF_SRCS :=
|
||||
C??_SRCS :=
|
||||
C64_SRCS :=
|
||||
C67_SRCS :=
|
||||
SA_SRCS :=
|
||||
S64_SRCS :=
|
||||
OPT_SRCS :=
|
||||
CXX_SRCS :=
|
||||
S67_SRCS :=
|
||||
S??_SRCS :=
|
||||
PDE_SRCS :=
|
||||
SV7A_SRCS :=
|
||||
K_SRCS :=
|
||||
CLA_SRCS :=
|
||||
S55_SRCS :=
|
||||
LD_UPPER_SRCS :=
|
||||
OUT_SRCS :=
|
||||
INO_SRCS :=
|
||||
LIB_SRCS :=
|
||||
ASM_SRCS :=
|
||||
S_UPPER_SRCS :=
|
||||
S43_SRCS :=
|
||||
LD_SRCS :=
|
||||
CMD_UPPER_SRCS :=
|
||||
C_UPPER_SRCS :=
|
||||
C++_SRCS :=
|
||||
C43_SRCS :=
|
||||
OBJ_SRCS :=
|
||||
LDS_SRCS :=
|
||||
S_SRCS :=
|
||||
CC_SRCS :=
|
||||
S62_SRCS :=
|
||||
C62_SRCS :=
|
||||
C_SRCS :=
|
||||
C55_DEPS :=
|
||||
C_UPPER_DEPS :=
|
||||
S67_DEPS :=
|
||||
S62_DEPS :=
|
||||
S_DEPS :=
|
||||
OPT_DEPS :=
|
||||
C??_DEPS :=
|
||||
ASM_UPPER_DEPS :=
|
||||
S??_DEPS :=
|
||||
C64_DEPS :=
|
||||
CXX_DEPS :=
|
||||
S64_DEPS :=
|
||||
INO_DEPS :=
|
||||
CLA_DEPS :=
|
||||
S55_DEPS :=
|
||||
SV7A_DEPS :=
|
||||
EXE_OUTPUTS :=
|
||||
C62_DEPS :=
|
||||
C67_DEPS :=
|
||||
PDE_DEPS :=
|
||||
K_DEPS :=
|
||||
C_DEPS :=
|
||||
CC_DEPS :=
|
||||
BIN_OUTPUTS :=
|
||||
C++_DEPS :=
|
||||
C43_DEPS :=
|
||||
S43_DEPS :=
|
||||
OBJS :=
|
||||
ASM_DEPS :=
|
||||
S_UPPER_DEPS :=
|
||||
CPP_DEPS :=
|
||||
SA_DEPS :=
|
||||
C++_DEPS__QUOTED :=
|
||||
OPT_DEPS__QUOTED :=
|
||||
S_UPPER_DEPS__QUOTED :=
|
||||
SA_DEPS__QUOTED :=
|
||||
C??_DEPS__QUOTED :=
|
||||
S67_DEPS__QUOTED :=
|
||||
C55_DEPS__QUOTED :=
|
||||
CC_DEPS__QUOTED :=
|
||||
ASM_UPPER_DEPS__QUOTED :=
|
||||
SV7A_DEPS__QUOTED :=
|
||||
S??_DEPS__QUOTED :=
|
||||
OBJS__QUOTED :=
|
||||
C67_DEPS__QUOTED :=
|
||||
K_DEPS__QUOTED :=
|
||||
S55_DEPS__QUOTED :=
|
||||
INO_DEPS__QUOTED :=
|
||||
C62_DEPS__QUOTED :=
|
||||
C_DEPS__QUOTED :=
|
||||
C_UPPER_DEPS__QUOTED :=
|
||||
C43_DEPS__QUOTED :=
|
||||
CPP_DEPS__QUOTED :=
|
||||
BIN_OUTPUTS__QUOTED :=
|
||||
C64_DEPS__QUOTED :=
|
||||
CXX_DEPS__QUOTED :=
|
||||
CLA_DEPS__QUOTED :=
|
||||
S_DEPS__QUOTED :=
|
||||
ASM_DEPS__QUOTED :=
|
||||
S43_DEPS__QUOTED :=
|
||||
EXE_OUTPUTS__QUOTED :=
|
||||
S64_DEPS__QUOTED :=
|
||||
S62_DEPS__QUOTED :=
|
||||
PDE_DEPS__QUOTED :=
|
||||
|
||||
# Every subdirectory with source files must be described here
|
||||
SUBDIRS := \
|
||||
. \
|
||||
|
15
CPE325/L3/Debug/subdir_rules.mk
Normal file
15
CPE325/L3/Debug/subdir_rules.mk
Normal file
@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
%.obj: ../%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
|
||||
@echo 'Building file: "$<"'
|
||||
@echo 'Invoking: MSP430 Compiler'
|
||||
"C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccs1040/ccs/ccs_base/msp430/include" --include_path="C:/CPE325_Workspace/L3" --include_path="C:/ti/ccs1040/ccs/tools/compiler/ti-cgt-msp430_20.2.5.LTS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="$(basename $(<F)).d_raw" $(GEN_OPTS__FLAG) "$<"
|
||||
@echo 'Finished building: "$<"'
|
||||
@echo ' '
|
||||
|
||||
|
41
CPE325/L3/Debug/subdir_vars.mk
Normal file
41
CPE325/L3/Debug/subdir_vars.mk
Normal file
@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
# Automatically-generated file. Do not edit!
|
||||
################################################################################
|
||||
|
||||
SHELL = cmd.exe
|
||||
|
||||
# Add inputs and outputs from these tool invocations to the build variables
|
||||
CMD_SRCS += \
|
||||
../lnk_msp430f5529.cmd
|
||||
|
||||
C_SRCS += \
|
||||
../L3.c \
|
||||
../Lab03_D2.c \
|
||||
../Lab03_D3.c
|
||||
|
||||
C_DEPS += \
|
||||
./L3.d \
|
||||
./Lab03_D2.d \
|
||||
./Lab03_D3.d
|
||||
|
||||
OBJS += \
|
||||
./L3.obj \
|
||||
./Lab03_D2.obj \
|
||||
./Lab03_D3.obj
|
||||
|
||||
OBJS__QUOTED += \
|
||||
"L3.obj" \
|
||||
"Lab03_D2.obj" \
|
||||
"Lab03_D3.obj"
|
||||
|
||||
C_DEPS__QUOTED += \
|
||||
"L3.d" \
|
||||
"Lab03_D2.d" \
|
||||
"Lab03_D3.d"
|
||||
|
||||
C_SRCS__QUOTED += \
|
||||
"../L3.c" \
|
||||
"../Lab03_D2.c" \
|
||||
"../Lab03_D3.c"
|
||||
|
||||
|
82
CPE325/L3/L3.c
Normal file
82
CPE325/L3/L3.c
Normal file
@ -0,0 +1,82 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* File: L3.c
|
||||
* Function: Turns on LEDs at different cycles if switches are pressed
|
||||
* Description: This C program takes as input the switches P1.7 and P2.7 and passes uses the switches to
|
||||
* turn on the LEDs at P1.1 and P2.0
|
||||
* Input: S1 and S2
|
||||
* Output:
|
||||
* Author(s): Noah Woodlee
|
||||
* Lab Section: 09
|
||||
* Date: Sept 3, 2021
|
||||
*----------------------------------------------------------------------------*/
|
||||
|
||||
#include <msp430.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define S1 (P2IN&BIT1)
|
||||
#define S2 (P1IN&BIT1)
|
||||
#define REDLED BIT0
|
||||
#define GREENLED BIT7
|
||||
|
||||
int main()
|
||||
{
|
||||
WDTCTL = WDTPW + WDTHOLD; // Watchdog timer
|
||||
P1DIR |= REDLED; // Set port 1 output direction
|
||||
P4DIR |= GREENLED; // Set port 4 output direction
|
||||
P2DIR &= ~BIT1; // Clear direction for P2.1
|
||||
P1DIR &= ~BIT1; // Clear direction for P1.1
|
||||
|
||||
P2REN |= BIT1; // Enable Pull-up resistor at P1
|
||||
P2OUT |= BIT1; // Required for proper IO
|
||||
P1REN |= BIT1; // Enable Pull-up resistor at P2
|
||||
P1OUT |= BIT1; // Required for proper IO
|
||||
|
||||
P1OUT |= REDLED; // LED 1 is ON
|
||||
P4OUT |= GREENLED; // LED 2 is ON
|
||||
|
||||
unsigned int i = 0;
|
||||
while(1)
|
||||
{
|
||||
if((S1) == 0) // If S1 is pressed
|
||||
{
|
||||
for(i = 2000; i > 0; i--); //Debounce ~20ms
|
||||
if((S1) == 0)
|
||||
{
|
||||
P4OUT |= GREENLED; // LED 2 is ON
|
||||
for (i = 0;i < 20000; i++); //5 Hz
|
||||
for (i = 0;i < 10000; i++); // Software delay
|
||||
P1OUT ^= REDLED; // Toggle LED 1
|
||||
while ((S1) == 0) // As long as S1 is pressed
|
||||
{
|
||||
P4OUT |= GREENLED; // LED 2 is ON
|
||||
for (i = 0;i < 20000; i++); //5 Hz
|
||||
for (i = 0;i < 10000; i++); //Software delay
|
||||
P1OUT ^= REDLED; // Toggle LED 1
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((S2) == 0) // If S2 is pressed
|
||||
{
|
||||
for(i = 2000; i > 0; i--); //Debounce ~20ms
|
||||
if((S2) == 0)
|
||||
{
|
||||
P1OUT |= REDLED; // LED 1 is ON
|
||||
for (i = 0;i < 50000; i++); //2 Hz
|
||||
for (i = 0;i < 25000; i++); // Software delay
|
||||
P4OUT ^= GREENLED; // Toggle LED 2
|
||||
while ((S2) == 0) // As long as S2 is pressed
|
||||
{
|
||||
P1OUT |= REDLED; // LED 1 is ON
|
||||
for (i = 0;i < 50000; i++); //2 Hz
|
||||
for (i = 0;i < 25000; i++); // Software delay
|
||||
P4OUT ^= GREENLED; // Toggle LED 2
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
P1OUT |= REDLED;
|
||||
P4OUT |= GREENLED;
|
||||
}
|
||||
}
|
||||
}
|
42
CPE325/L3/Lab03_D2.c
Normal file
42
CPE325/L3/Lab03_D2.c
Normal file
@ -0,0 +1,42 @@
|
||||
/*------------------------------------------------------------------------------
|
||||
* File: Lab03_D2.c
|
||||
* Function: Blinking LED1 and LED2
|
||||
* Description: This C program toggle LED1 and LED2 at 1Hz by xoring P1.0 and
|
||||
* P4.7 inside a loop. The LEDs are on when P1.0=1 and P4.7=1.
|
||||
* The LED1 is initialized to be off and LED2 to be on.
|
||||
* Clocks: ACLK = 32.768kHz, MCLK = SMCLK = default DCO (~1 MHz)
|
||||
* MSP-EXP430F5529LP
|
||||
* -----------------
|
||||
* /|\| |
|
||||
* | | |
|
||||
* --|RST |
|
||||
* | P1.0|-->LED1(RED)
|
||||
* | P4.7|-->LED2(GREEN)
|
||||
* | |
|
||||
* Input: None
|
||||
* Output: LED1 and LED2 blink alternately at a frequency of 1 Hz
|
||||
* Author(s): Aleksandar Milenkovic, milenkovic@computer.org
|
||||
* Prawar Poudel, prawar.poudel@uah.edu
|
||||
* Date:
|
||||
* ---------------------------------------------------------------------------*/
|
||||
#include <msp430.h>
|
||||
|
||||
#define REDLED 0x01 // Mask for BIT0 = 0000_0001b
|
||||
#define GREENLED 0x80 // Mask for BIT7 = 1000_0000b
|
||||
|
||||
void main(void)
|
||||
{
|
||||
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
|
||||
P1DIR |= REDLED; // Set P1.0 to output direction
|
||||
P4DIR |= GREENLED; // Set P4.7 to output direction
|
||||
P1OUT &= ~REDLED; // LED1 is OFF
|
||||
P4OUT |= GREENLED; // LED2 is ON
|
||||
unsigned int i = 0;
|
||||
while(1) // Infinite loop
|
||||
{
|
||||
for (i = 0; i < 50000; i++); // Delay 0.5s
|
||||
// 0.5s on, 0.5s off => 1/(1s) = 1Hz
|
||||
P1OUT ^= REDLED; // Toggle LED1
|
||||
P4OUT ^= GREENLED; // Toggle LED2
|
||||
}
|
||||
}
|
57
CPE325/L3/Lab03_D3.c
Normal file
57
CPE325/L3/Lab03_D3.c
Normal file
@ -0,0 +1,57 @@
|
||||
///*------------------------------------------------------------------------------
|
||||
// * File: Lab03_D3.c
|
||||
// * Function: Turning on LED1 when S1 is pressed
|
||||
// * Description: This C program turns on LED1 connected to P1.0 when the S1 is
|
||||
// * pressed. S1 is connected to P2.1 and when it is pressed,
|
||||
// * P2IN, bit 1 is read as a logic 0 (check the schematic).
|
||||
// * To avoid faulty detection of button press,
|
||||
// * debouncing delay of 20ms is added before turning on the LED1.
|
||||
// * Clocks: ACLK = 32.768kHz, MCLK = SMCLK = default DCO (~1 MHz)
|
||||
// * MSP-EXP430F5529LP
|
||||
// * -----------------
|
||||
// * /|\| |
|
||||
// * | | |
|
||||
// * --|RST |
|
||||
// * | P1.0|-->LED1(RED)
|
||||
// * | P2.1|<--SW1
|
||||
// * | |
|
||||
// * Input: Pressing S1
|
||||
// * Output: LED1 is turned on when S1 is pressed
|
||||
// * Author(s): Aleksandar Milenkovic, milenkovic@computer.org
|
||||
// * Prawar Poudel, prawar.poudel@uah.edu
|
||||
// * Date:
|
||||
// * ---------------------------------------------------------------------------*/
|
||||
//#include <msp430.h>
|
||||
//
|
||||
//#define S1 P2IN&BIT1
|
||||
//#define REDLED 0x01 // Mask for BIT0 = 0000_0001b
|
||||
//#define GREENLED 0x80 // Mask for BIT7 = 1000_0000b
|
||||
//
|
||||
//void main(void)
|
||||
//{
|
||||
// WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
|
||||
// P1DIR |= REDLED; // Set P1.0 to output direction
|
||||
// P1OUT &= ~REDLED; // LED1 is OFF
|
||||
//
|
||||
// P2DIR &= ~BIT1; // Set P2.1 as input for S1 input
|
||||
// P2REN |= BIT1; // Enable the pull-up resistor at P2.1
|
||||
// P2OUT |= BIT1; // Required for proper IO
|
||||
//
|
||||
// unsigned int i = 0;
|
||||
// while(1) // Infinite loop
|
||||
// {
|
||||
// if ((S1) == 0) // If S1 is pressed
|
||||
// {
|
||||
// for (i = 2000; i > 0; i--); // Debounce ~20 ms
|
||||
// if ((S1) == 0) // If S1 is pressed
|
||||
// {
|
||||
// P1OUT |= REDLED; // Turn LED1 on
|
||||
// }
|
||||
// while ((S1) == 0); // Hang-on as long as S1 pressed
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// P1OUT &= ~REDLED; // Turn LED1 off
|
||||
// }
|
||||
// }
|
||||
//}
|
251
CPE325/L3/lnk_msp430f5529.cmd
Executable file
251
CPE325/L3/lnk_msp430f5529.cmd
Executable file
@ -0,0 +1,251 @@
|
||||
/* ============================================================================ */
|
||||
/* Copyright (c) 2020, Texas Instruments Incorporated */
|
||||
/* All rights reserved. */
|
||||
/* */
|
||||
/* Redistribution and use in source and binary forms, with or without */
|
||||
/* modification, are permitted provided that the following conditions */
|
||||
/* are met: */
|
||||
/* */
|
||||
/* * Redistributions of source code must retain the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer. */
|
||||
/* */
|
||||
/* * Redistributions in binary form must reproduce the above copyright */
|
||||
/* notice, this list of conditions and the following disclaimer in the */
|
||||
/* documentation and/or other materials provided with the distribution. */
|
||||
/* */
|
||||
/* * Neither the name of Texas Instruments Incorporated nor the names of */
|
||||
/* its contributors may be used to endorse or promote products derived */
|
||||
/* from this software without specific prior written permission. */
|
||||
/* */
|
||||
/* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" */
|
||||
/* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR */
|
||||
/* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR */
|
||||
/* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, */
|
||||
/* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, */
|
||||
/* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; */
|
||||
/* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, */
|
||||
/* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR */
|
||||
/* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */
|
||||
/* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
|
||||
/* ============================================================================ */
|
||||
|
||||
/******************************************************************************/
|
||||
/* lnk_msp430f5529.cmd - LINKER COMMAND FILE FOR LINKING MSP430F5529 PROGRAMS */
|
||||
/* */
|
||||
/* Usage: lnk430 <obj files...> -o <out file> -m <map file> lnk.cmd */
|
||||
/* cl430 <src files...> -z -o <out file> -m <map file> lnk.cmd */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* These linker options are for command line linking only. For IDE linking, */
|
||||
/* you should set your linker options in Project Properties */
|
||||
/* -c LINK USING C CONVENTIONS */
|
||||
/* -stack 0x0100 SOFTWARE STACK SIZE */
|
||||
/* -heap 0x0100 HEAP AREA SIZE */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Version: 1.211 */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the system memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
MEMORY
|
||||
{
|
||||
SFR : origin = 0x0000, length = 0x0010
|
||||
PERIPHERALS_8BIT : origin = 0x0010, length = 0x00F0
|
||||
PERIPHERALS_16BIT : origin = 0x0100, length = 0x0100
|
||||
RAM : origin = 0x2400, length = 0x2000
|
||||
USBRAM : origin = 0x1C00, length = 0x0800
|
||||
INFOA : origin = 0x1980, length = 0x0080
|
||||
INFOB : origin = 0x1900, length = 0x0080
|
||||
INFOC : origin = 0x1880, length = 0x0080
|
||||
INFOD : origin = 0x1800, length = 0x0080
|
||||
FLASH : origin = 0x4400, length = 0xBB80
|
||||
FLASH2 : origin = 0x10000,length = 0x143F8 /* Boundaries changed to fix CPU47 */
|
||||
INT00 : origin = 0xFF80, length = 0x0002
|
||||
INT01 : origin = 0xFF82, length = 0x0002
|
||||
INT02 : origin = 0xFF84, length = 0x0002
|
||||
INT03 : origin = 0xFF86, length = 0x0002
|
||||
INT04 : origin = 0xFF88, length = 0x0002
|
||||
INT05 : origin = 0xFF8A, length = 0x0002
|
||||
INT06 : origin = 0xFF8C, length = 0x0002
|
||||
INT07 : origin = 0xFF8E, length = 0x0002
|
||||
INT08 : origin = 0xFF90, length = 0x0002
|
||||
INT09 : origin = 0xFF92, length = 0x0002
|
||||
INT10 : origin = 0xFF94, length = 0x0002
|
||||
INT11 : origin = 0xFF96, length = 0x0002
|
||||
INT12 : origin = 0xFF98, length = 0x0002
|
||||
INT13 : origin = 0xFF9A, length = 0x0002
|
||||
INT14 : origin = 0xFF9C, length = 0x0002
|
||||
INT15 : origin = 0xFF9E, length = 0x0002
|
||||
INT16 : origin = 0xFFA0, length = 0x0002
|
||||
INT17 : origin = 0xFFA2, length = 0x0002
|
||||
INT18 : origin = 0xFFA4, length = 0x0002
|
||||
INT19 : origin = 0xFFA6, length = 0x0002
|
||||
INT20 : origin = 0xFFA8, length = 0x0002
|
||||
INT21 : origin = 0xFFAA, length = 0x0002
|
||||
INT22 : origin = 0xFFAC, length = 0x0002
|
||||
INT23 : origin = 0xFFAE, length = 0x0002
|
||||
INT24 : origin = 0xFFB0, length = 0x0002
|
||||
INT25 : origin = 0xFFB2, length = 0x0002
|
||||
INT26 : origin = 0xFFB4, length = 0x0002
|
||||
INT27 : origin = 0xFFB6, length = 0x0002
|
||||
INT28 : origin = 0xFFB8, length = 0x0002
|
||||
INT29 : origin = 0xFFBA, length = 0x0002
|
||||
INT30 : origin = 0xFFBC, length = 0x0002
|
||||
INT31 : origin = 0xFFBE, length = 0x0002
|
||||
INT32 : origin = 0xFFC0, length = 0x0002
|
||||
INT33 : origin = 0xFFC2, length = 0x0002
|
||||
INT34 : origin = 0xFFC4, length = 0x0002
|
||||
INT35 : origin = 0xFFC6, length = 0x0002
|
||||
INT36 : origin = 0xFFC8, length = 0x0002
|
||||
INT37 : origin = 0xFFCA, length = 0x0002
|
||||
INT38 : origin = 0xFFCC, length = 0x0002
|
||||
INT39 : origin = 0xFFCE, length = 0x0002
|
||||
INT40 : origin = 0xFFD0, length = 0x0002
|
||||
INT41 : origin = 0xFFD2, length = 0x0002
|
||||
INT42 : origin = 0xFFD4, length = 0x0002
|
||||
INT43 : origin = 0xFFD6, length = 0x0002
|
||||
INT44 : origin = 0xFFD8, length = 0x0002
|
||||
INT45 : origin = 0xFFDA, length = 0x0002
|
||||
INT46 : origin = 0xFFDC, length = 0x0002
|
||||
INT47 : origin = 0xFFDE, length = 0x0002
|
||||
INT48 : origin = 0xFFE0, length = 0x0002
|
||||
INT49 : origin = 0xFFE2, length = 0x0002
|
||||
INT50 : origin = 0xFFE4, length = 0x0002
|
||||
INT51 : origin = 0xFFE6, length = 0x0002
|
||||
INT52 : origin = 0xFFE8, length = 0x0002
|
||||
INT53 : origin = 0xFFEA, length = 0x0002
|
||||
INT54 : origin = 0xFFEC, length = 0x0002
|
||||
INT55 : origin = 0xFFEE, length = 0x0002
|
||||
INT56 : origin = 0xFFF0, length = 0x0002
|
||||
INT57 : origin = 0xFFF2, length = 0x0002
|
||||
INT58 : origin = 0xFFF4, length = 0x0002
|
||||
INT59 : origin = 0xFFF6, length = 0x0002
|
||||
INT60 : origin = 0xFFF8, length = 0x0002
|
||||
INT61 : origin = 0xFFFA, length = 0x0002
|
||||
INT62 : origin = 0xFFFC, length = 0x0002
|
||||
RESET : origin = 0xFFFE, length = 0x0002
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Specify the sections allocation into memory */
|
||||
/****************************************************************************/
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
.bss : {} > RAM /* Global & static vars */
|
||||
.data : {} > RAM /* Global & static vars */
|
||||
.TI.noinit : {} > RAM /* For #pragma noinit */
|
||||
.sysmem : {} > RAM /* Dynamic memory allocation area */
|
||||
.stack : {} > RAM (HIGH) /* Software system stack */
|
||||
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.text : {} > FLASH /* Code */
|
||||
#else
|
||||
.text : {} >> FLASH2 | FLASH /* Code */
|
||||
#endif
|
||||
.text:_isr : {} > FLASH /* ISR Code space */
|
||||
.cinit : {} > FLASH /* Initialization tables */
|
||||
#ifndef __LARGE_DATA_MODEL__
|
||||
.const : {} > FLASH /* Constant data */
|
||||
#else
|
||||
.const : {} >> FLASH | FLASH2 /* Constant data */
|
||||
#endif
|
||||
.cio : {} > RAM /* C I/O Buffer */
|
||||
|
||||
.pinit : {} > FLASH /* C++ Constructor tables */
|
||||
.binit : {} > FLASH /* Boot-time Initialization tables */
|
||||
.init_array : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.exidx : {} > FLASH /* C++ Constructor tables */
|
||||
.mspabi.extab : {} > FLASH /* C++ Constructor tables */
|
||||
#ifdef __TI_COMPILER_VERSION__
|
||||
#if __TI_COMPILER_VERSION__ >= 15009000
|
||||
#ifndef __LARGE_CODE_MODEL__
|
||||
.TI.ramfunc : {} load=FLASH, run=RAM, table(BINIT)
|
||||
#else
|
||||
.TI.ramfunc : {} load=FLASH | FLASH2, run=RAM, table(BINIT)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
.infoA : {} > INFOA /* MSP430 INFO FLASH Memory segments */
|
||||
.infoB : {} > INFOB
|
||||
.infoC : {} > INFOC
|
||||
.infoD : {} > INFOD
|
||||
|
||||
/* MSP430 Interrupt vectors */
|
||||
.int00 : {} > INT00
|
||||
.int01 : {} > INT01
|
||||
.int02 : {} > INT02
|
||||
.int03 : {} > INT03
|
||||
.int04 : {} > INT04
|
||||
.int05 : {} > INT05
|
||||
.int06 : {} > INT06
|
||||
.int07 : {} > INT07
|
||||
.int08 : {} > INT08
|
||||
.int09 : {} > INT09
|
||||
.int10 : {} > INT10
|
||||
.int11 : {} > INT11
|
||||
.int12 : {} > INT12
|
||||
.int13 : {} > INT13
|
||||
.int14 : {} > INT14
|
||||
.int15 : {} > INT15
|
||||
.int16 : {} > INT16
|
||||
.int17 : {} > INT17
|
||||
.int18 : {} > INT18
|
||||
.int19 : {} > INT19
|
||||
.int20 : {} > INT20
|
||||
.int21 : {} > INT21
|
||||
.int22 : {} > INT22
|
||||
.int23 : {} > INT23
|
||||
.int24 : {} > INT24
|
||||
.int25 : {} > INT25
|
||||
.int26 : {} > INT26
|
||||
.int27 : {} > INT27
|
||||
.int28 : {} > INT28
|
||||
.int29 : {} > INT29
|
||||
.int30 : {} > INT30
|
||||
.int31 : {} > INT31
|
||||
.int32 : {} > INT32
|
||||
.int33 : {} > INT33
|
||||
.int34 : {} > INT34
|
||||
.int35 : {} > INT35
|
||||
.int36 : {} > INT36
|
||||
.int37 : {} > INT37
|
||||
.int38 : {} > INT38
|
||||
.int39 : {} > INT39
|
||||
.int40 : {} > INT40
|
||||
RTC : { * ( .int41 ) } > INT41 type = VECT_INIT
|
||||
PORT2 : { * ( .int42 ) } > INT42 type = VECT_INIT
|
||||
TIMER2_A1 : { * ( .int43 ) } > INT43 type = VECT_INIT
|
||||
TIMER2_A0 : { * ( .int44 ) } > INT44 type = VECT_INIT
|
||||
USCI_B1 : { * ( .int45 ) } > INT45 type = VECT_INIT
|
||||
USCI_A1 : { * ( .int46 ) } > INT46 type = VECT_INIT
|
||||
PORT1 : { * ( .int47 ) } > INT47 type = VECT_INIT
|
||||
TIMER1_A1 : { * ( .int48 ) } > INT48 type = VECT_INIT
|
||||
TIMER1_A0 : { * ( .int49 ) } > INT49 type = VECT_INIT
|
||||
DMA : { * ( .int50 ) } > INT50 type = VECT_INIT
|
||||
USB_UBM : { * ( .int51 ) } > INT51 type = VECT_INIT
|
||||
TIMER0_A1 : { * ( .int52 ) } > INT52 type = VECT_INIT
|
||||
TIMER0_A0 : { * ( .int53 ) } > INT53 type = VECT_INIT
|
||||
ADC12 : { * ( .int54 ) } > INT54 type = VECT_INIT
|
||||
USCI_B0 : { * ( .int55 ) } > INT55 type = VECT_INIT
|
||||
USCI_A0 : { * ( .int56 ) } > INT56 type = VECT_INIT
|
||||
WDT : { * ( .int57 ) } > INT57 type = VECT_INIT
|
||||
TIMER0_B1 : { * ( .int58 ) } > INT58 type = VECT_INIT
|
||||
TIMER0_B0 : { * ( .int59 ) } > INT59 type = VECT_INIT
|
||||
COMP_B : { * ( .int60 ) } > INT60 type = VECT_INIT
|
||||
UNMI : { * ( .int61 ) } > INT61 type = VECT_INIT
|
||||
SYSNMI : { * ( .int62 ) } > INT62 type = VECT_INIT
|
||||
.reset : {} > RESET /* MSP430 Reset vector */
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Include peripherals memory map */
|
||||
/****************************************************************************/
|
||||
|
||||
-l msp430f5529.cmd
|
||||
|
12
CPE325/L3/targetConfigs/MSP430F5529.ccxml
Normal file
12
CPE325/L3/targetConfigs/MSP430F5529.ccxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<configurations XML_version="1.2" id="configurations_0">
|
||||
<configuration XML_version="1.2" id="configuration_0">
|
||||
<instance XML_version="1.2" desc="TI MSP430 USB1" href="connections/TIMSP430-USB.xml" id="TI MSP430 USB1" xml="TIMSP430-USB.xml" xmlpath="connections"/>
|
||||
<connection XML_version="1.2" id="TI MSP430 USB1">
|
||||
<instance XML_version="1.2" href="drivers/msp430_emu.xml" id="drivers" xml="msp430_emu.xml" xmlpath="drivers"/>
|
||||
<platform XML_version="1.2" id="platform_0">
|
||||
<instance XML_version="1.2" desc="MSP430F5529" href="devices/MSP430F5529.xml" id="MSP430F5529" xml="MSP430F5529.xml" xmlpath="devices"/>
|
||||
</platform>
|
||||
</connection>
|
||||
</configuration>
|
||||
</configurations>
|
9
CPE325/L3/targetConfigs/readme.txt
Normal file
9
CPE325/L3/targetConfigs/readme.txt
Normal file
@ -0,0 +1,9 @@
|
||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
||||
on the device and connection settings specified in your project on the Properties > General page.
|
||||
|
||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
||||
you may create your own target-configuration file for this project and manage it manually. You can
|
||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
979
CPE325/Lab10_Part1/Debug/Lab10_Part1.map
Normal file
979
CPE325/Lab10_Part1/Debug/Lab10_Part1.map
Normal file
@ -0,0 +1,979 @@
|
||||
******************************************************************************
|
||||
MSP430 Linker PC v20.2.5
|
||||
******************************************************************************
|
||||
>> Linked Thu Nov 11 23:19:12 2021
|
||||
|
||||
OUTPUT FILE NAME: <Lab10_Part1.out>
|
||||
ENTRY POINT SYMBOL: "_c_int00_noargs" address: 00003124
|
||||
|
||||
|
||||
MEMORY CONFIGURATION
|
||||
|
||||
name origin length used unused attr fill
|
||||
---------------------- -------- --------- -------- -------- ---- --------
|
||||
SFR 00000000 00000010 00000000 00000010 RWIX
|
||||
PERIPHERALS_8BIT 00000010 000000f0 00000000 000000f0 RWIX
|
||||
PERIPHERALS_16BIT 00000100 00000100 00000000 00000100 RWIX
|
||||
INFOB 00001000 00000080 00000000 00000080 RWIX
|
||||
INFOA 00001080 00000080 00000000 00000080 RWIX
|
||||
RAM 00001100 00002000 00000068 00001f98 RWIX
|
||||
FLASH 00003100 0000cebe 0000006a 0000ce54 RWIX
|
||||
BSLSIGNATURE 0000ffbe 00000002 00000002 00000000 RWIX ffff
|
||||
INT00 0000ffc0 00000002 00000000 00000002 RWIX
|
||||
INT01 0000ffc2 00000002 00000000 00000002 RWIX
|
||||
INT02 0000ffc4 00000002 00000000 00000002 RWIX
|
||||
INT03 0000ffc6 00000002 00000000 00000002 RWIX
|
||||
INT04 0000ffc8 00000002 00000000 00000002 RWIX
|
||||
INT05 0000ffca 00000002 00000000 00000002 RWIX
|
||||
INT06 0000ffcc 00000002 00000000 00000002 RWIX
|
||||
INT07 0000ffce 00000002 00000000 00000002 RWIX
|
||||
INT08 0000ffd0 00000002 00000000 00000002 RWIX
|
||||
INT09 0000ffd2 00000002 00000000 00000002 RWIX
|
||||
INT10 0000ffd4 00000002 00000000 00000002 RWIX
|
||||
INT11 0000ffd6 00000002 00000000 00000002 RWIX
|
||||
INT12 0000ffd8 00000002 00000000 00000002 RWIX
|
||||
INT13 0000ffda 00000002 00000000 00000002 RWIX
|
||||
INT14 0000ffdc 00000002 00000002 00000000 RWIX
|
||||
INT15 0000ffde 00000002 00000002 00000000 RWIX
|
||||
INT16 0000ffe0 00000002 00000002 00000000 RWIX
|
||||
INT17 0000ffe2 00000002 00000002 00000000 RWIX
|
||||
INT18 0000ffe4 00000002 00000002 00000000 RWIX
|
||||
INT19 0000ffe6 00000002 00000002 00000000 RWIX
|
||||
INT20 0000ffe8 00000002 00000002 00000000 RWIX
|
||||
INT21 0000ffea 00000002 00000002 00000000 RWIX
|
||||
INT22 0000ffec 00000002 00000002 00000000 RWIX
|
||||
INT23 0000ffee 00000002 00000002 00000000 RWIX
|
||||
INT24 0000fff0 00000002 00000002 00000000 RWIX
|
||||
INT25 0000fff2 00000002 00000002 00000000 RWIX
|
||||
INT26 0000fff4 00000002 00000002 00000000 RWIX
|
||||
INT27 0000fff6 00000002 00000002 00000000 RWIX
|
||||
INT28 0000fff8 00000002 00000002 00000000 RWIX
|
||||
INT29 0000fffa 00000002 00000002 00000000 RWIX
|
||||
INT30 0000fffc 00000002 00000002 00000000 RWIX
|
||||
RESET 0000fffe 00000002 00000002 00000000 RWIX
|
||||
FLASH2 00010000 00010000 000018d2 0000e72e RWIX
|
||||
|
||||
|
||||
SECTION ALLOCATION MAP
|
||||
|
||||
output attributes/
|
||||
section page origin length input sections
|
||||
-------- ---- ---------- ---------- ----------------
|
||||
.bss 0 00001100 00000018 UNINITIALIZED
|
||||
00001100 00000004 (.common:ADCXval)
|
||||
00001104 00000004 (.common:ADCYval)
|
||||
00001108 00000004 (.common:ADCZval)
|
||||
0000110c 00000004 (.common:Xper)
|
||||
00001110 00000004 (.common:Yper)
|
||||
00001114 00000004 (.common:Zper)
|
||||
|
||||
.stack 0 000030b0 00000050 UNINITIALIZED
|
||||
000030b0 00000004 rts430x_lc_rd_eabi.lib : boot.c.obj (.stack)
|
||||
000030b4 0000004c --HOLE--
|
||||
|
||||
.text:_isr
|
||||
* 0 00003100 00000058
|
||||
00003100 00000024 main.obj (.text:_isr:ADC12ISR)
|
||||
00003124 0000001c rts430x_lc_rd_eabi.lib : boot.c.obj (.text:_isr:_c_int00_noargs)
|
||||
00003140 00000010 main.obj (.text:_isr:timerA_isr)
|
||||
00003150 00000008 rts430x_lc_rd_eabi.lib : isr_trap.asm.obj (.text:_isr:__TI_ISR_TRAP)
|
||||
|
||||
.cinit 0 00003158 00000012
|
||||
00003158 00000006 (.cinit..bss.load) [load image, compression = zero_init]
|
||||
0000315e 00000004 (__TI_handler_table)
|
||||
00003162 00000008 (__TI_cinit_table)
|
||||
|
||||
.binit 0 00003100 00000000
|
||||
|
||||
.init_array
|
||||
* 0 00003100 00000000 UNINITIALIZED
|
||||
|
||||
$fill000 0 0000ffbe 00000002
|
||||
0000ffbe 00000002 --HOLE-- [fill = ffff]
|
||||
|
||||
DAC12 0 0000ffdc 00000002
|
||||
0000ffdc 00000002 rts430x_lc_rd_eabi.lib : int14.asm.obj (.int14)
|
||||
|
||||
DMA 0 0000ffde 00000002
|
||||
0000ffde 00000002 rts430x_lc_rd_eabi.lib : int15.asm.obj (.int15)
|
||||
|
||||
BASICTIMER
|
||||
* 0 0000ffe0 00000002
|
||||
0000ffe0 00000002 rts430x_lc_rd_eabi.lib : int16.asm.obj (.int16)
|
||||
|
||||
PORT2 0 0000ffe2 00000002
|
||||
0000ffe2 00000002 rts430x_lc_rd_eabi.lib : int17.asm.obj (.int17)
|
||||
|
||||
USART1TX 0 0000ffe4 00000002
|
||||
0000ffe4 00000002 rts430x_lc_rd_eabi.lib : int18.asm.obj (.int18)
|
||||
|
||||
USART1RX 0 0000ffe6 00000002
|
||||
0000ffe6 00000002 rts430x_lc_rd_eabi.lib : int19.asm.obj (.int19)
|
||||
|
||||
PORT1 0 0000ffe8 00000002
|
||||
0000ffe8 00000002 rts430x_lc_rd_eabi.lib : int20.asm.obj (.int20)
|
||||
|
||||
TIMERA1 0 0000ffea 00000002
|
||||
0000ffea 00000002 rts430x_lc_rd_eabi.lib : int21.asm.obj (.int21)
|
||||
|
||||
TIMERA0 0 0000ffec 00000002
|
||||
0000ffec 00000002 main.obj (.int22)
|
||||
|
||||
ADC12 0 0000ffee 00000002
|
||||
0000ffee 00000002 main.obj (.int23)
|
||||
|
||||
USCIAB0TX
|
||||
* 0 0000fff0 00000002
|
||||
0000fff0 00000002 rts430x_lc_rd_eabi.lib : int24.asm.obj (.int24)
|
||||
|
||||
USCIAB0RX
|
||||
* 0 0000fff2 00000002
|
||||
0000fff2 00000002 rts430x_lc_rd_eabi.lib : int25.asm.obj (.int25)
|
||||
|
||||
WDT 0 0000fff4 00000002
|
||||
0000fff4 00000002 rts430x_lc_rd_eabi.lib : int26.asm.obj (.int26)
|
||||
|
||||
COMPARATORA
|
||||
* 0 0000fff6 00000002
|
||||
0000fff6 00000002 rts430x_lc_rd_eabi.lib : int27.asm.obj (.int27)
|
||||
|
||||
TIMERB1 0 0000fff8 00000002
|
||||
0000fff8 00000002 rts430x_lc_rd_eabi.lib : int28.asm.obj (.int28)
|
||||
|
||||
TIMERB0 0 0000fffa 00000002
|
||||
0000fffa 00000002 rts430x_lc_rd_eabi.lib : int29.asm.obj (.int29)
|
||||
|
||||
NMI 0 0000fffc 00000002
|
||||
0000fffc 00000002 rts430x_lc_rd_eabi.lib : int30.asm.obj (.int30)
|
||||
|
||||
.reset 0 0000fffe 00000002
|
||||
0000fffe 00000002 rts430x_lc_rd_eabi.lib : boot.c.obj (.reset)
|
||||
|
||||
.text 0 00010000 000018d2
|
||||
00010000 0000072a rts430x_lc_rd_eabi.lib : addd.c.obj (.text:__mspabi_addd)
|
||||
0001072a 00000466 : frcdivd.c.obj (.text:__TI_frcdivd)
|
||||
00010b90 00000298 : mpyd.c.obj (.text:__mspabi_mpyd)
|
||||
00010e28 00000222 : divd.c.obj (.text:__mspabi_divd)
|
||||
0001104a 000001d0 main.obj (.text:sendData)
|
||||
0001121a 00000164 rts430x_lc_rd_eabi.lib : frcmpyd.c.obj (.text:__TI_frcmpyd)
|
||||
0001137e 000000b2 : cvtdf.c.obj (.text:__mspabi_cvtdf)
|
||||
00011430 0000009e : fltlid.c.obj (.text:__mspabi_fltlid)
|
||||
000114ce 00000096 : mult64_hw.asm.obj (.text:__mpyll)
|
||||
00011564 00000054 : autoinit.c.obj (.text:__TI_auto_init_nobinit_nopinit_hold_wdt:__TI_auto_init_nobinit_nopinit_hold_wdt)
|
||||
000115b8 0000004e : mult3264_hw.asm.obj (.text:__mpyull)
|
||||
00011606 00000046 main.obj (.text:ADC_setup)
|
||||
0001164c 00000040 rts430x_lc_rd_eabi.lib : asr64.c.obj (.text:__mspabi_srall)
|
||||
0001168c 0000003e : asr32.asm.obj (.text:l_asr_const)
|
||||
000116ca 0000003e : lsl32.asm.obj (.text:l_lsl_const)
|
||||
00011708 0000003e : lsr32.asm.obj (.text:l_lsr_const)
|
||||
00011746 0000003a : lsl64.c.obj (.text:__mspabi_sllll)
|
||||
00011780 0000003a : lsr64.c.obj (.text:__mspabi_srlll)
|
||||
000117ba 00000032 : subd.c.obj (.text:__mspabi_subd)
|
||||
000117ec 00000032 : mult32_hw.asm.obj (.text)
|
||||
0001181e 00000026 main.obj (.text:UART_setup)
|
||||
00011844 00000026 main.obj (.text:main)
|
||||
0001186a 00000024 rts430x_lc_rd_eabi.lib : copy_zero_init.c.obj (.text:decompress:ZI:__TI_zero_init_nomemset:__TI_zero_init_nomemset)
|
||||
0001188e 00000018 : mult16_hw.asm.obj (.text)
|
||||
000118a6 00000014 main.obj (.text:TimerA_setup)
|
||||
000118ba 0000000c main.obj (.text:UART_putCharacter)
|
||||
000118c6 00000006 rts430x_lc_rd_eabi.lib : exit.c.obj (.text:abort)
|
||||
000118cc 00000004 : pre_init.c.obj (.text:_system_pre_init)
|
||||
000118d0 00000002 : startup.c.obj (.text:_system_post_cinit)
|
||||
|
||||
MODULE SUMMARY
|
||||
|
||||
Module code ro data rw data
|
||||
------ ---- ------- -------
|
||||
.\
|
||||
main.obj 694 4 24
|
||||
+--+----------------------+------+---------+---------+
|
||||
Total: 694 4 24
|
||||
|
||||
C:\ti\ccs1040\ccs\tools\compiler\ti-cgt-msp430_20.2.5.LTS\lib\rts430x_lc_rd_eabi.lib
|
||||
addd.c.obj 1834 0 0
|
||||
frcdivd.c.obj 1126 0 0
|
||||
mpyd.c.obj 664 0 0
|
||||
divd.c.obj 546 0 0
|
||||
frcmpyd.c.obj 356 0 0
|
||||
cvtdf.c.obj 178 0 0
|
||||
fltlid.c.obj 158 0 0
|
||||
mult64_hw.asm.obj 150 0 0
|
||||
autoinit.c.obj 84 0 0
|
||||
mult3264_hw.asm.obj 78 0 0
|
||||
asr64.c.obj 64 0 0
|
||||
asr32.asm.obj 62 0 0
|
||||
lsl32.asm.obj 62 0 0
|
||||
lsr32.asm.obj 62 0 0
|
||||
lsl64.c.obj 58 0 0
|
||||
lsr64.c.obj 58 0 0
|
||||
mult32_hw.asm.obj 50 0 0
|
||||
subd.c.obj 50 0 0
|
||||
copy_zero_init.c.obj 36 0 0
|
||||
boot.c.obj 28 2 0
|
||||
mult16_hw.asm.obj 24 0 0
|
||||
isr_trap.asm.obj 8 0 0
|
||||
exit.c.obj 6 0 0
|
||||
pre_init.c.obj 4 0 0
|
||||
int14.asm.obj 0 2 0
|
||||
int15.asm.obj 0 2 0
|
||||
int16.asm.obj 0 2 0
|
||||
int17.asm.obj 0 2 0
|
||||
int18.asm.obj 0 2 0
|
||||
int19.asm.obj 0 2 0
|
||||
int20.asm.obj 0 2 0
|
||||
int21.asm.obj 0 2 0
|
||||
int24.asm.obj 0 2 0
|
||||
int25.asm.obj 0 2 0
|
||||
int26.asm.obj 0 2 0
|
||||
int27.asm.obj 0 2 0
|
||||
int28.asm.obj 0 2 0
|
||||
int29.asm.obj 0 2 0
|
||||
int30.asm.obj 0 2 0
|
||||
startup.c.obj 2 0 0
|
||||
+--+----------------------+------+---------+---------+
|
||||
Total: 5748 32 0
|
||||
|
||||
Stack: 0 0 80
|
||||
Linker Generated: 0 18 0
|
||||
+--+----------------------+------+---------+---------+
|
||||
Grand Total: 6442 54 104
|
||||
|
||||
|
||||
LINKER GENERATED COPY TABLES
|
||||
|
||||
__TI_cinit_table @ 00003162 records: 1, size/record: 8, table size: 8
|
||||
.bss: load addr=00003158, load size=00000006 bytes, run addr=00001100, run size=00000018 bytes, compression=zero_init
|
||||
|
||||
|
||||
LINKER GENERATED HANDLER TABLE
|
||||
|
||||
__TI_handler_table @ 0000315e records: 1, size/record: 4, table size: 4
|
||||
index: 0, handler: __TI_zero_init
|
||||
|
||||
|
||||
GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name
|
||||
|
||||
address name
|
||||
------- ----
|
||||
000001a0 ADC12CTL0
|
||||
000001a2 ADC12CTL1
|
||||
000001a6 ADC12IE
|
||||
000001a4 ADC12IFG
|
||||
00003100 ADC12ISR
|
||||
000001a8 ADC12IV
|
||||
00000080 ADC12MCTL0
|
||||
00000081 ADC12MCTL1
|
||||
0000008a ADC12MCTL10
|
||||
0000008b ADC12MCTL11
|
||||
0000008c ADC12MCTL12
|
||||
0000008d ADC12MCTL13
|
||||
0000008e ADC12MCTL14
|
||||
0000008f ADC12MCTL15
|
||||
00000082 ADC12MCTL2
|
||||
00000083 ADC12MCTL3
|
||||
00000084 ADC12MCTL4
|
||||
00000085 ADC12MCTL5
|
||||
00000086 ADC12MCTL6
|
||||
00000087 ADC12MCTL7
|
||||
00000088 ADC12MCTL8
|
||||
00000089 ADC12MCTL9
|
||||
00000140 ADC12MEM0
|
||||
00000142 ADC12MEM1
|
||||
00000154 ADC12MEM10
|
||||
00000156 ADC12MEM11
|
||||
00000158 ADC12MEM12
|
||||
0000015a ADC12MEM13
|
||||
0000015c ADC12MEM14
|
||||
0000015e ADC12MEM15
|
||||
00000144 ADC12MEM2
|
||||
00000146 ADC12MEM3
|
||||
00000148 ADC12MEM4
|
||||
0000014a ADC12MEM5
|
||||
0000014c ADC12MEM6
|
||||
0000014e ADC12MEM7
|
||||
00000150 ADC12MEM8
|
||||
00000152 ADC12MEM9
|
||||
00001100 ADCXval
|
||||
00001104 ADCYval
|
||||
00001108 ADCZval
|
||||
00011606 ADC_setup
|
||||
00000046 BTCNT1
|
||||
00000046 BTCNT12
|
||||
00000047 BTCNT2
|
||||
00000040 BTCTL
|
||||
000118c6 C$$EXIT
|
||||
00000059 CACTL1
|
||||
0000005a CACTL2
|
||||
0000005b CAPD
|
||||
000001c0 DAC12_0CTL
|
||||
000001c8 DAC12_0DAT
|
||||
000001c2 DAC12_1CTL
|
||||
000001ca DAC12_1DAT
|
||||
000001d0 DMA0CTL
|
||||
000001d6 DMA0DA
|
||||
000001d6 DMA0DAL
|
||||
000001d2 DMA0SA
|
||||
000001d2 DMA0SAL
|
||||
000001da DMA0SZ
|
||||
000001dc DMA1CTL
|
||||
000001e2 DMA1DA
|
||||
000001e2 DMA1DAL
|
||||
000001de DMA1SA
|
||||
000001de DMA1SAL
|
||||
000001e6 DMA1SZ
|
||||
000001e8 DMA2CTL
|
||||
000001ee DMA2DA
|
||||
000001ee DMA2DAL
|
||||
000001ea DMA2SA
|
||||
000001ea DMA2SAL
|
||||
000001f2 DMA2SZ
|
||||
00000122 DMACTL0
|
||||
00000124 DMACTL1
|
||||
00000126 DMAIV
|
||||
00000128 FCTL1
|
||||
0000012a FCTL2
|
||||
0000012c FCTL3
|
||||
00000053 FLL_CTL0
|
||||
00000054 FLL_CTL1
|
||||
00000000 IE1
|
||||
00000001 IE2
|
||||
00000002 IFG1
|
||||
00000003 IFG2
|
||||
00000090 LCDACTL
|
||||
000000ac LCDAPCTL0
|
||||
000000ad LCDAPCTL1
|
||||
000000ae LCDAVCTL0
|
||||
000000af LCDAVCTL1
|
||||
00000091 LCDM1
|
||||
0000009a LCDM10
|
||||
0000009b LCDM11
|
||||
0000009c LCDM12
|
||||
0000009d LCDM13
|
||||
0000009e LCDM14
|
||||
0000009f LCDM15
|
||||
000000a0 LCDM16
|
||||
000000a1 LCDM17
|
||||
000000a2 LCDM18
|
||||
000000a3 LCDM19
|
||||
00000092 LCDM2
|
||||
000000a4 LCDM20
|
||||
00000093 LCDM3
|
||||
00000094 LCDM4
|
||||
00000095 LCDM5
|
||||
00000096 LCDM6
|
||||
00000097 LCDM7
|
||||
00000098 LCDM8
|
||||
00000099 LCDM9
|
||||
00000134 MAC
|
||||
00000136 MACS
|
||||
00000005 ME2
|
||||
00000130 MPY
|
||||
00000132 MPYS
|
||||
000000c0 OA0CTL0
|
||||
000000c1 OA0CTL1
|
||||
000000c2 OA1CTL0
|
||||
000000c3 OA1CTL1
|
||||
000000c4 OA2CTL0
|
||||
000000c5 OA2CTL1
|
||||
00000138 OP2
|
||||
0000000d P10DIR
|
||||
00000009 P10IN
|
||||
0000000b P10OUT
|
||||
0000000f P10SEL
|
||||
00000022 P1DIR
|
||||
00000025 P1IE
|
||||
00000024 P1IES
|
||||
00000023 P1IFG
|
||||
00000020 P1IN
|
||||
00000021 P1OUT
|
||||
00000026 P1SEL
|
||||
0000002a P2DIR
|
||||
0000002d P2IE
|
||||
0000002c P2IES
|
||||
0000002b P2IFG
|
||||
00000028 P2IN
|
||||
00000029 P2OUT
|
||||
0000002e P2SEL
|
||||
0000001a P3DIR
|
||||
00000018 P3IN
|
||||
00000019 P3OUT
|
||||
0000001b P3SEL
|
||||
0000001e P4DIR
|
||||
0000001c P4IN
|
||||
0000001d P4OUT
|
||||
0000001f P4SEL
|
||||
00000032 P5DIR
|
||||
00000030 P5IN
|
||||
00000031 P5OUT
|
||||
00000033 P5SEL
|
||||
00000036 P6DIR
|
||||
00000034 P6IN
|
||||
00000035 P6OUT
|
||||
00000037 P6SEL
|
||||
0000003c P7DIR
|
||||
00000038 P7IN
|
||||
0000003a P7OUT
|
||||
0000003e P7SEL
|
||||
0000003d P8DIR
|
||||
00000039 P8IN
|
||||
0000003b P8OUT
|
||||
0000003f P8SEL
|
||||
0000000c P9DIR
|
||||
00000008 P9IN
|
||||
0000000a P9OUT
|
||||
0000000e P9SEL
|
||||
0000003c PADIR
|
||||
00000038 PAIN
|
||||
0000003a PAOUT
|
||||
0000003e PASEL
|
||||
0000000c PBDIR
|
||||
00000008 PBIN
|
||||
0000000a PBOUT
|
||||
0000000e PBSEL
|
||||
0000013c RESHI
|
||||
0000013a RESLO
|
||||
00000041 RTCCTL
|
||||
0000004c RTCDATE
|
||||
0000004c RTCDAY
|
||||
0000004d RTCMON
|
||||
00000042 RTCNT1
|
||||
00000043 RTCNT2
|
||||
00000044 RTCNT3
|
||||
00000045 RTCNT4
|
||||
00000042 RTCTIM0
|
||||
00000044 RTCTIM1
|
||||
00000040 RTCTL
|
||||
0000004e RTCYEAR
|
||||
0000004f RTCYEARH
|
||||
0000004e RTCYEARL
|
||||
00000050 SCFI0
|
||||
00000051 SCFI1
|
||||
00000052 SCFQCTL
|
||||
0000013e SUMEXT
|
||||
00000056 SVSCTL
|
||||
00000172 TACCR0
|
||||
00000174 TACCR1
|
||||
00000176 TACCR2
|
||||
00000162 TACCTL0
|
||||
00000164 TACCTL1
|
||||
00000166 TACCTL2
|
||||
00000160 TACTL
|
||||
0000012e TAIV
|
||||
00000170 TAR
|
||||
00000192 TBCCR0
|
||||
00000194 TBCCR1
|
||||
00000196 TBCCR2
|
||||
00000198 TBCCR3
|
||||
0000019a TBCCR4
|
||||
0000019c TBCCR5
|
||||
0000019e TBCCR6
|
||||
00000182 TBCCTL0
|
||||
00000184 TBCCTL1
|
||||
00000186 TBCCTL2
|
||||
00000188 TBCCTL3
|
||||
0000018a TBCCTL4
|
||||
0000018c TBCCTL5
|
||||
0000018e TBCCTL6
|
||||
00000180 TBCTL
|
||||
0000011e TBIV
|
||||
00000190 TBR
|
||||
000118a6 TimerA_setup
|
||||
0000007c U1BR0
|
||||
0000007d U1BR1
|
||||
00000078 U1CTL
|
||||
0000007b U1MCTL
|
||||
0000007a U1RCTL
|
||||
0000007e U1RXBUF
|
||||
00000079 U1TCTL
|
||||
0000007f U1TXBUF
|
||||
000118ba UART_putCharacter
|
||||
0001181e UART_setup
|
||||
0000005d UCA0ABCTL
|
||||
00000062 UCA0BR0
|
||||
00000063 UCA0BR1
|
||||
00000060 UCA0CTL0
|
||||
00000061 UCA0CTL1
|
||||
0000005f UCA0IRRCTL
|
||||
0000005e UCA0IRTCTL
|
||||
00000064 UCA0MCTL
|
||||
00000066 UCA0RXBUF
|
||||
00000065 UCA0STAT
|
||||
00000067 UCA0TXBUF
|
||||
0000006a UCB0BR0
|
||||
0000006b UCB0BR1
|
||||
00000068 UCB0CTL0
|
||||
00000069 UCB0CTL1
|
||||
0000006c UCB0I2CIE
|
||||
00000118 UCB0I2COA
|
||||
0000011a UCB0I2CSA
|
||||
0000006e UCB0RXBUF
|
||||
0000006d UCB0STAT
|
||||
0000006f UCB0TXBUF
|
||||
00000120 WDTCTL
|
||||
0000110c Xper
|
||||
00001110 Yper
|
||||
00001114 Zper
|
||||
00003100 __STACK_END
|
||||
00000050 __STACK_SIZE
|
||||
00003162 __TI_CINIT_Base
|
||||
0000316a __TI_CINIT_Limit
|
||||
0000315e __TI_Handler_Table_Base
|
||||
00003162 __TI_Handler_Table_Limit
|
||||
00003150 __TI_ISR_TRAP
|
||||
00011564 __TI_auto_init_nobinit_nopinit_hold_wdt
|
||||
0001072a __TI_frcdivd
|
||||
0001121a __TI_frcmpyd
|
||||
0000ffdc __TI_int14
|
||||
0000ffde __TI_int15
|
||||
0000ffe0 __TI_int16
|
||||
0000ffe2 __TI_int17
|
||||
0000ffe4 __TI_int18
|
||||
0000ffe6 __TI_int19
|
||||
0000ffe8 __TI_int20
|
||||
0000ffea __TI_int21
|
||||
0000ffec __TI_int22
|
||||
0000ffee __TI_int23
|
||||
0000fff0 __TI_int24
|
||||
0000fff2 __TI_int25
|
||||
0000fff4 __TI_int26
|
||||
0000fff6 __TI_int27
|
||||
0000fff8 __TI_int28
|
||||
0000fffa __TI_int29
|
||||
0000fffc __TI_int30
|
||||
ffffffff __TI_pprof_out_hndl
|
||||
ffffffff __TI_prof_data_size
|
||||
ffffffff __TI_prof_data_start
|
||||
0001186a __TI_zero_init_nomemset
|
||||
ffffffff __c_args__
|
||||
00010000 __mspabi_addd
|
||||
0001137e __mspabi_cvtdf
|
||||
00010e28 __mspabi_divd
|
||||
00011430 __mspabi_fltlid
|
||||
00010b90 __mspabi_mpyd
|
||||
0001188e __mspabi_mpyi_hw
|
||||
000117ec __mspabi_mpyl_hw
|
||||
000114ce __mspabi_mpyll_hw
|
||||
000115b8 __mspabi_mpyull_hw
|
||||
00011702 __mspabi_slll_1
|
||||
000116de __mspabi_slll_10
|
||||
000116da __mspabi_slll_11
|
||||
000116d6 __mspabi_slll_12
|
||||
000116d2 __mspabi_slll_13
|
||||
000116ce __mspabi_slll_14
|
||||
000116ca __mspabi_slll_15
|
||||
000116fe __mspabi_slll_2
|
||||
000116fa __mspabi_slll_3
|
||||
000116f6 __mspabi_slll_4
|
||||
000116f2 __mspabi_slll_5
|
||||
000116ee __mspabi_slll_6
|
||||
000116ea __mspabi_slll_7
|
||||
000116e6 __mspabi_slll_8
|
||||
000116e2 __mspabi_slll_9
|
||||
00011746 __mspabi_sllll
|
||||
000116c4 __mspabi_sral_1
|
||||
000116a0 __mspabi_sral_10
|
||||
0001169c __mspabi_sral_11
|
||||
00011698 __mspabi_sral_12
|
||||
00011694 __mspabi_sral_13
|
||||
00011690 __mspabi_sral_14
|
||||
0001168c __mspabi_sral_15
|
||||
000116c0 __mspabi_sral_2
|
||||
000116bc __mspabi_sral_3
|
||||
000116b8 __mspabi_sral_4
|
||||
000116b4 __mspabi_sral_5
|
||||
000116b0 __mspabi_sral_6
|
||||
000116ac __mspabi_sral_7
|
||||
000116a8 __mspabi_sral_8
|
||||
000116a4 __mspabi_sral_9
|
||||
0001164c __mspabi_srall
|
||||
00011740 __mspabi_srll_1
|
||||
0001171c __mspabi_srll_10
|
||||
00011718 __mspabi_srll_11
|
||||
00011714 __mspabi_srll_12
|
||||
00011710 __mspabi_srll_13
|
||||
0001170c __mspabi_srll_14
|
||||
00011708 __mspabi_srll_15
|
||||
0001173c __mspabi_srll_2
|
||||
00011738 __mspabi_srll_3
|
||||
00011734 __mspabi_srll_4
|
||||
00011730 __mspabi_srll_5
|
||||
0001172c __mspabi_srll_6
|
||||
00011728 __mspabi_srll_7
|
||||
00011724 __mspabi_srll_8
|
||||
00011720 __mspabi_srll_9
|
||||
00011780 __mspabi_srlll
|
||||
000117ba __mspabi_subd
|
||||
00003124 _c_int00_noargs
|
||||
0000fffe _reset_vector
|
||||
000030b0 _stack
|
||||
000118d0 _system_post_cinit
|
||||
000118cc _system_pre_init
|
||||
000118c6 abort
|
||||
00011844 main
|
||||
0001104a sendData
|
||||
00003140 timerA_isr
|
||||
|
||||
|
||||
GLOBAL SYMBOLS: SORTED BY Symbol Address
|
||||
|
||||
address name
|
||||
------- ----
|
||||
00000000 IE1
|
||||
00000001 IE2
|
||||
00000002 IFG1
|
||||
00000003 IFG2
|
||||
00000005 ME2
|
||||
00000008 P9IN
|
||||
00000008 PBIN
|
||||
00000009 P10IN
|
||||
0000000a P9OUT
|
||||
0000000a PBOUT
|
||||
0000000b P10OUT
|
||||
0000000c P9DIR
|
||||
0000000c PBDIR
|
||||
0000000d P10DIR
|
||||
0000000e P9SEL
|
||||
0000000e PBSEL
|
||||
0000000f P10SEL
|
||||
00000018 P3IN
|
||||
00000019 P3OUT
|
||||
0000001a P3DIR
|
||||
0000001b P3SEL
|
||||
0000001c P4IN
|
||||
0000001d P4OUT
|
||||
0000001e P4DIR
|
||||
0000001f P4SEL
|
||||
00000020 P1IN
|
||||
00000021 P1OUT
|
||||
00000022 P1DIR
|
||||
00000023 P1IFG
|
||||
00000024 P1IES
|
||||
00000025 P1IE
|
||||
00000026 P1SEL
|
||||
00000028 P2IN
|
||||
00000029 P2OUT
|
||||
0000002a P2DIR
|
||||
0000002b P2IFG
|
||||
0000002c P2IES
|
||||
0000002d P2IE
|
||||
0000002e P2SEL
|
||||
00000030 P5IN
|
||||
00000031 P5OUT
|
||||
00000032 P5DIR
|
||||
00000033 P5SEL
|
||||
00000034 P6IN
|
||||
00000035 P6OUT
|
||||
00000036 P6DIR
|
||||
00000037 P6SEL
|
||||
00000038 P7IN
|
||||
00000038 PAIN
|
||||
00000039 P8IN
|
||||
0000003a P7OUT
|
||||
0000003a PAOUT
|
||||
0000003b P8OUT
|
||||
0000003c P7DIR
|
||||
0000003c PADIR
|
||||
0000003d P8DIR
|
||||
0000003e P7SEL
|
||||
0000003e PASEL
|
||||
0000003f P8SEL
|
||||
00000040 BTCTL
|
||||
00000040 RTCTL
|
||||
00000041 RTCCTL
|
||||
00000042 RTCNT1
|
||||
00000042 RTCTIM0
|
||||
00000043 RTCNT2
|
||||
00000044 RTCNT3
|
||||
00000044 RTCTIM1
|
||||
00000045 RTCNT4
|
||||
00000046 BTCNT1
|
||||
00000046 BTCNT12
|
||||
00000047 BTCNT2
|
||||
0000004c RTCDATE
|
||||
0000004c RTCDAY
|
||||
0000004d RTCMON
|
||||
0000004e RTCYEAR
|
||||
0000004e RTCYEARL
|
||||
0000004f RTCYEARH
|
||||
00000050 SCFI0
|
||||
00000050 __STACK_SIZE
|
||||
00000051 SCFI1
|
||||
00000052 SCFQCTL
|
||||
00000053 FLL_CTL0
|
||||
00000054 FLL_CTL1
|
||||
00000056 SVSCTL
|
||||
00000059 CACTL1
|
||||
0000005a CACTL2
|
||||
0000005b CAPD
|
||||
0000005d UCA0ABCTL
|
||||
0000005e UCA0IRTCTL
|
||||
0000005f UCA0IRRCTL
|
||||
00000060 UCA0CTL0
|
||||
00000061 UCA0CTL1
|
||||
00000062 UCA0BR0
|
||||
00000063 UCA0BR1
|
||||
00000064 UCA0MCTL
|
||||
00000065 UCA0STAT
|
||||
00000066 UCA0RXBUF
|
||||
00000067 UCA0TXBUF
|
||||
00000068 UCB0CTL0
|
||||
00000069 UCB0CTL1
|
||||
0000006a UCB0BR0
|
||||
0000006b UCB0BR1
|
||||
0000006c UCB0I2CIE
|
||||
0000006d UCB0STAT
|
||||
0000006e UCB0RXBUF
|
||||
0000006f UCB0TXBUF
|
||||
00000078 U1CTL
|
||||
00000079 U1TCTL
|
||||
0000007a U1RCTL
|
||||
0000007b U1MCTL
|
||||
0000007c U1BR0
|
||||
0000007d U1BR1
|
||||
0000007e U1RXBUF
|
||||
0000007f U1TXBUF
|
||||
00000080 ADC12MCTL0
|
||||
00000081 ADC12MCTL1
|
||||
00000082 ADC12MCTL2
|
||||
00000083 ADC12MCTL3
|
||||
00000084 ADC12MCTL4
|
||||
00000085 ADC12MCTL5
|
||||
00000086 ADC12MCTL6
|
||||
00000087 ADC12MCTL7
|
||||
00000088 ADC12MCTL8
|
||||
00000089 ADC12MCTL9
|
||||
0000008a ADC12MCTL10
|
||||
0000008b ADC12MCTL11
|
||||
0000008c ADC12MCTL12
|
||||
0000008d ADC12MCTL13
|
||||
0000008e ADC12MCTL14
|
||||
0000008f ADC12MCTL15
|
||||
00000090 LCDACTL
|
||||
00000091 LCDM1
|
||||
00000092 LCDM2
|
||||
00000093 LCDM3
|
||||
00000094 LCDM4
|
||||
00000095 LCDM5
|
||||
00000096 LCDM6
|
||||
00000097 LCDM7
|
||||
00000098 LCDM8
|
||||
00000099 LCDM9
|
||||
0000009a LCDM10
|
||||
0000009b LCDM11
|
||||
0000009c LCDM12
|
||||
0000009d LCDM13
|
||||
0000009e LCDM14
|
||||
0000009f LCDM15
|
||||
000000a0 LCDM16
|
||||
000000a1 LCDM17
|
||||
000000a2 LCDM18
|
||||
000000a3 LCDM19
|
||||
000000a4 LCDM20
|
||||
000000ac LCDAPCTL0
|
||||
000000ad LCDAPCTL1
|
||||
000000ae LCDAVCTL0
|
||||
000000af LCDAVCTL1
|
||||
000000c0 OA0CTL0
|
||||
000000c1 OA0CTL1
|
||||
000000c2 OA1CTL0
|
||||
000000c3 OA1CTL1
|
||||
000000c4 OA2CTL0
|
||||
000000c5 OA2CTL1
|
||||
00000118 UCB0I2COA
|
||||
0000011a UCB0I2CSA
|
||||
0000011e TBIV
|
||||
00000120 WDTCTL
|
||||
00000122 DMACTL0
|
||||
00000124 DMACTL1
|
||||
00000126 DMAIV
|
||||
00000128 FCTL1
|
||||
0000012a FCTL2
|
||||
0000012c FCTL3
|
||||
0000012e TAIV
|
||||
00000130 MPY
|
||||
00000132 MPYS
|
||||
00000134 MAC
|
||||
00000136 MACS
|
||||
00000138 OP2
|
||||
0000013a RESLO
|
||||
0000013c RESHI
|
||||
0000013e SUMEXT
|
||||
00000140 ADC12MEM0
|
||||
00000142 ADC12MEM1
|
||||
00000144 ADC12MEM2
|
||||
00000146 ADC12MEM3
|
||||
00000148 ADC12MEM4
|
||||
0000014a ADC12MEM5
|
||||
0000014c ADC12MEM6
|
||||
0000014e ADC12MEM7
|
||||
00000150 ADC12MEM8
|
||||
00000152 ADC12MEM9
|
||||
00000154 ADC12MEM10
|
||||
00000156 ADC12MEM11
|
||||
00000158 ADC12MEM12
|
||||
0000015a ADC12MEM13
|
||||
0000015c ADC12MEM14
|
||||
0000015e ADC12MEM15
|
||||
00000160 TACTL
|
||||
00000162 TACCTL0
|
||||
00000164 TACCTL1
|
||||
00000166 TACCTL2
|
||||
00000170 TAR
|
||||
00000172 TACCR0
|
||||
00000174 TACCR1
|
||||
00000176 TACCR2
|
||||
00000180 TBCTL
|
||||
00000182 TBCCTL0
|
||||
00000184 TBCCTL1
|
||||
00000186 TBCCTL2
|
||||
00000188 TBCCTL3
|
||||
0000018a TBCCTL4
|
||||
0000018c TBCCTL5
|
||||
0000018e TBCCTL6
|
||||
00000190 TBR
|
||||
00000192 TBCCR0
|
||||
00000194 TBCCR1
|
||||
00000196 TBCCR2
|
||||
00000198 TBCCR3
|
||||
0000019a TBCCR4
|
||||
0000019c TBCCR5
|
||||
0000019e TBCCR6
|
||||
000001a0 ADC12CTL0
|
||||
000001a2 ADC12CTL1
|
||||
000001a4 ADC12IFG
|
||||
000001a6 ADC12IE
|
||||
000001a8 ADC12IV
|
||||
000001c0 DAC12_0CTL
|
||||
000001c2 DAC12_1CTL
|
||||
000001c8 DAC12_0DAT
|
||||
000001ca DAC12_1DAT
|
||||
000001d0 DMA0CTL
|
||||
000001d2 DMA0SA
|
||||
000001d2 DMA0SAL
|
||||
000001d6 DMA0DA
|
||||
000001d6 DMA0DAL
|
||||
000001da DMA0SZ
|
||||
000001dc DMA1CTL
|
||||
000001de DMA1SA
|
||||
000001de DMA1SAL
|
||||
000001e2 DMA1DA
|
||||
000001e2 DMA1DAL
|
||||
000001e6 DMA1SZ
|
||||
000001e8 DMA2CTL
|
||||
000001ea DMA2SA
|
||||
000001ea DMA2SAL
|
||||
000001ee DMA2DA
|
||||
000001ee DMA2DAL
|
||||
000001f2 DMA2SZ
|
||||
00001100 ADCXval
|
||||
00001104 ADCYval
|
||||
00001108 ADCZval
|
||||
0000110c Xper
|
||||
00001110 Yper
|
||||
00001114 Zper
|
||||
000030b0 _stack
|
||||
00003100 ADC12ISR
|
||||
00003100 __STACK_END
|
||||
00003124 _c_int00_noargs
|
||||
00003140 timerA_isr
|
||||
00003150 __TI_ISR_TRAP
|
||||
0000315e __TI_Handler_Table_Base
|
||||
00003162 __TI_CINIT_Base
|
||||
00003162 __TI_Handler_Table_Limit
|
||||
0000316a __TI_CINIT_Limit
|
||||
0000ffdc __TI_int14
|
||||
0000ffde __TI_int15
|
||||
0000ffe0 __TI_int16
|
||||
0000ffe2 __TI_int17
|
||||
0000ffe4 __TI_int18
|
||||
0000ffe6 __TI_int19
|
||||
0000ffe8 __TI_int20
|
||||
0000ffea __TI_int21
|
||||
0000ffec __TI_int22
|
||||
0000ffee __TI_int23
|
||||
0000fff0 __TI_int24
|
||||
0000fff2 __TI_int25
|
||||
0000fff4 __TI_int26
|
||||
0000fff6 __TI_int27
|
||||
0000fff8 __TI_int28
|
||||
0000fffa __TI_int29
|
||||
0000fffc __TI_int30
|
||||
0000fffe _reset_vector
|
||||
00010000 __mspabi_addd
|
||||
0001072a __TI_frcdivd
|
||||
00010b90 __mspabi_mpyd
|
||||
00010e28 __mspabi_divd
|
||||
0001104a sendData
|
||||
0001121a __TI_frcmpyd
|
||||
0001137e __mspabi_cvtdf
|
||||
00011430 __mspabi_fltlid
|
||||
000114ce __mspabi_mpyll_hw
|
||||
00011564 __TI_auto_init_nobinit_nopinit_hold_wdt
|
||||
000115b8 __mspabi_mpyull_hw
|
||||
00011606 ADC_setup
|
||||
0001164c __mspabi_srall
|
||||
0001168c __mspabi_sral_15
|
||||
00011690 __mspabi_sral_14
|
||||
00011694 __mspabi_sral_13
|
||||
00011698 __mspabi_sral_12
|
||||
0001169c __mspabi_sral_11
|
||||
000116a0 __mspabi_sral_10
|
||||
000116a4 __mspabi_sral_9
|
||||
000116a8 __mspabi_sral_8
|
||||
000116ac __mspabi_sral_7
|
||||
000116b0 __mspabi_sral_6
|
||||
000116b4 __mspabi_sral_5
|
||||
000116b8 __mspabi_sral_4
|
||||
000116bc __mspabi_sral_3
|
||||
000116c0 __mspabi_sral_2
|
||||
000116c4 __mspabi_sral_1
|
||||
000116ca __mspabi_slll_15
|
||||
000116ce __mspabi_slll_14
|
||||
000116d2 __mspabi_slll_13
|
||||
000116d6 __mspabi_slll_12
|
||||
000116da __mspabi_slll_11
|
||||
000116de __mspabi_slll_10
|
||||
000116e2 __mspabi_slll_9
|
||||
000116e6 __mspabi_slll_8
|
||||
000116ea __mspabi_slll_7
|
||||
000116ee __mspabi_slll_6
|
||||
000116f2 __mspabi_slll_5
|
||||
000116f6 __mspabi_slll_4
|
||||
000116fa __mspabi_slll_3
|
||||
000116fe __mspabi_slll_2
|
||||
00011702 __mspabi_slll_1
|
||||
00011708 __mspabi_srll_15
|
||||
0001170c __mspabi_srll_14
|
||||
00011710 __mspabi_srll_13
|
||||
00011714 __mspabi_srll_12
|
||||
00011718 __mspabi_srll_11
|
||||
0001171c __mspabi_srll_10
|
||||
00011720 __mspabi_srll_9
|
||||
00011724 __mspabi_srll_8
|
||||
00011728 __mspabi_srll_7
|
||||
0001172c __mspabi_srll_6
|
||||
00011730 __mspabi_srll_5
|
||||
00011734 __mspabi_srll_4
|
||||
00011738 __mspabi_srll_3
|
||||
0001173c __mspabi_srll_2
|
||||
00011740 __mspabi_srll_1
|
||||
00011746 __mspabi_sllll
|
||||
00011780 __mspabi_srlll
|
||||
000117ba __mspabi_subd
|
||||
000117ec __mspabi_mpyl_hw
|
||||
0001181e UART_setup
|
||||
00011844 main
|
||||
0001186a __TI_zero_init_nomemset
|
||||
0001188e __mspabi_mpyi_hw
|
||||
000118a6 TimerA_setup
|
||||
000118ba UART_putCharacter
|
||||
000118c6 C$$EXIT
|
||||
000118c6 abort
|
||||
000118cc _system_pre_init
|
||||
000118d0 _system_post_cinit
|
||||
ffffffff __TI_pprof_out_hndl
|
||||
ffffffff __TI_prof_data_size
|
||||
ffffffff __TI_prof_data_start
|
||||
ffffffff __c_args__
|
||||
|
||||
[357 symbols]
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user