forked from zyxiaooo/SJTU
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zyxiaooo
authored
Aug 24, 2016
1 parent
216d820
commit 074a5b2
Showing
77 changed files
with
12,767 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#****************************************************************************** | ||
# | ||
# Makefile - Rules for building the hello example. | ||
# | ||
# Copyright (c) 2009-2012 Texas Instruments Incorporated. All rights reserved. | ||
# Software License Agreement | ||
# | ||
# Texas Instruments (TI) is supplying this software for use solely and | ||
# exclusively on TI's microcontroller products. The software is owned by | ||
# TI and/or its suppliers, and is protected under applicable copyright | ||
# laws. You may not combine this software with "viral" open-source | ||
# software in order to form a larger program. | ||
# | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. | ||
# NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT | ||
# NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
# A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY | ||
# CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL | ||
# DAMAGES, FOR ANY REASON WHATSOEVER. | ||
# | ||
# This is part of revision 9107 of the DK-LM3S9B96 Firmware Package. | ||
# | ||
#****************************************************************************** | ||
|
||
# | ||
# Defines the part type that this project uses. | ||
# | ||
PART=LM3S9B96 | ||
|
||
# | ||
# Set the processor variant. | ||
# | ||
VARIANT=cm3 | ||
|
||
# | ||
# The base directory for StellarisWare. | ||
# | ||
ROOT=../../.. | ||
|
||
# | ||
# Include the common make definitions. | ||
# | ||
include ${ROOT}/makedefs | ||
|
||
# | ||
# Where to find source files that do not live in this directory. | ||
# | ||
VPATH=../drivers | ||
|
||
# | ||
# Where to find header files that do not live in the source directory. | ||
# | ||
IPATH=.. | ||
IPATH+=../../.. | ||
|
||
# | ||
# The default rule, which causes the hello example to be built. | ||
# | ||
all: ${COMPILER} | ||
all: ${COMPILER}/hello.axf | ||
|
||
# | ||
# The rule to clean out all the build products. | ||
# | ||
clean: | ||
@rm -rf ${COMPILER} ${wildcard *~} | ||
|
||
# | ||
# The rule to create the target directory. | ||
# | ||
${COMPILER}: | ||
@mkdir -p ${COMPILER} | ||
|
||
# | ||
# Rules for building the hello example. | ||
# | ||
${COMPILER}/hello.axf: ${COMPILER}/hello.o | ||
${COMPILER}/hello.axf: ${COMPILER}/kitronix320x240x16_ssd2119_8bit.o | ||
${COMPILER}/hello.axf: ${COMPILER}/set_pinout.o | ||
${COMPILER}/hello.axf: ${COMPILER}/startup_${COMPILER}.o | ||
${COMPILER}/hello.axf: ${ROOT}/grlib/${COMPILER}-cm3/libgr-cm3.a | ||
${COMPILER}/hello.axf: ${ROOT}/driverlib/${COMPILER}-cm3/libdriver-cm3.a | ||
${COMPILER}/hello.axf: hello.ld | ||
SCATTERgcc_hello=hello.ld | ||
ENTRY_hello=ResetISR | ||
CFLAGSgcc=-DTARGET_IS_TEMPEST_RB1 | ||
|
||
# | ||
# Include the automatically generated dependency files. | ||
# | ||
ifneq (${MAKECMDGOALS},clean) | ||
-include ${wildcard ${COMPILER}/*.d} __dummy__ | ||
endif |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SW_ROOT = ../../../.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<configurations XML_version="1.2" id="configurations_0"> | ||
<configuration XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0"> | ||
<instance XML_version="1.2" desc="Stellaris In-Circuit Debug Interface_0" href="connections/Stellaris_ICDI_Connection.xml" id="Stellaris In-Circuit Debug Interface_0" xml="Stellaris_ICDI_Connection.xml" xmlpath="connections"/> | ||
<connection XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0"> | ||
<instance XML_version="1.2" href="drivers/stellaris_cs_dap.xml" id="drivers" xml="stellaris_cs_dap.xml" xmlpath="drivers"/> | ||
<instance XML_version="1.2" href="drivers/stellaris_cortex_m3.xml" id="drivers" xml="stellaris_cortex_m3.xml" xmlpath="drivers"/> | ||
<platform XML_version="1.2" id="platform_0"> | ||
<instance XML_version="1.2" desc="Stellaris LM3S9B96_0" href="devices/lm3s9b96.xml" id="Stellaris LM3S9B96_0" xml="lm3s9b96.xml" xmlpath="devices"/> | ||
</platform> | ||
</connection> | ||
</configuration> | ||
</configurations> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
<!-- | ||
Configuration file for Code Red project hello | ||
Copyright (c) 2009-2012 Texas Instruments Incorporated. All rights reserved. | ||
Software License Agreement | ||
Texas Instruments (TI) is supplying this software for use solely and | ||
exclusively on TI's microcontroller products. The software is owned by | ||
TI and/or its suppliers, and is protected under applicable copyright | ||
laws. You may not combine this software with "viral" open-source | ||
software in order to form a larger program. | ||
THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. | ||
NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT | ||
NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY | ||
CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL | ||
DAMAGES, FOR ANY REASON WHATSOEVER. | ||
This is part of revision 9107 of the DK-LM3S9B96 Firmware Package. | ||
--> | ||
|
||
<project chip="LM3S9B96" | ||
postBuild="arm-none-eabi-objcopy -O binary ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.bin" | ||
type="LMI Basic C project" | ||
vendor="LMI"> | ||
<import src="."> | ||
<exclude>{(Makefile|Makefile\..*|ccs|codered|ewarm|gcc|rvmdk|sourcerygxx)}</exclude> | ||
<exclude>{startup_(ewarm|gcc|rvmdk|sourcerygxx|ccs).(c|S)}</exclude> | ||
<exclude>{.*\.(ewd|ewp|eww|icf|Opt|sct|sgxx|Uv2|uvopt|uvproj|xml|ld|cmd)}</exclude> | ||
</import> | ||
<import src=".."> | ||
<copy>drivers/kitronix320x240x16_ssd2119_8bit.c</copy> | ||
<copy>drivers/kitronix320x240x16_ssd2119_8bit.h</copy> | ||
<copy>drivers/set_pinout.c</copy> | ||
<copy>drivers/set_pinout.h</copy> | ||
<copy>drivers/camerafpga.h</copy> | ||
</import> | ||
<import src="."> | ||
<copy>hello_codered.ld</copy> | ||
</import> | ||
<requires> | ||
<value>inc</value> | ||
<value>driverlib</value> | ||
<value>grlib</value> | ||
</requires> | ||
<setting id="assembler.def"> | ||
<value>codered</value> | ||
</setting> | ||
<setting id="compiler.def" | ||
buildType="Debug" | ||
mode="replace"> | ||
<value>DEBUG</value> | ||
</setting> | ||
<setting id="compiler.def" | ||
buildType="Release" | ||
mode="replace"> | ||
<value>NDEBUG</value> | ||
</setting> | ||
<setting id="compiler.def"> | ||
<value>__CODE_RED</value> | ||
<value>__NEWLIB__</value> | ||
<value>codered</value> | ||
<value>PART_LM3S9B96</value> | ||
<value>TARGET_IS_TEMPEST_RB1</value> | ||
</setting> | ||
<setting id="compiler.opt" | ||
buildType="Debug"> | ||
<value>-Os</value> | ||
</setting> | ||
<setting id="compiler.opt" | ||
buildType="Release"> | ||
<value>-Os</value> | ||
</setting> | ||
<setting id="compiler.flags" | ||
buildType="Debug"> | ||
<value>-Os</value> | ||
</setting> | ||
<setting id="compiler.flags" | ||
buildType="Release"> | ||
<value>-Os</value> | ||
</setting> | ||
<setting id="linker.script"> | ||
<value>../hello_codered.ld</value> | ||
</setting> | ||
<setting id="linker.libs"> | ||
<value>gr-cm3</value> | ||
<value>driver-cm3</value> | ||
<value>c</value> | ||
<value>gcc</value> | ||
</setting> | ||
<setting id="linker.paths" | ||
buildType="Debug"> | ||
<value>${workspace_loc:/driverlib/Debug}</value> | ||
<value>${workspace_loc:/grlib/Debug}</value> | ||
</setting> | ||
<setting id="linker.paths" | ||
buildType="Release"> | ||
<value>${workspace_loc:/driverlib/Release}</value> | ||
<value>${workspace_loc:/grlib/Release}</value> | ||
</setting> | ||
<setting id="compiler.inc"> | ||
<value>${workspace_loc:/}</value> | ||
<value>..</value> | ||
</setting> | ||
<setting id="assembler.inc"> | ||
<value>${workspace_loc:/}</value> | ||
<value>..</value> | ||
</setting> | ||
</project> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
;****************************************************************************** | ||
; | ||
; hello.sct - Linker configuration file for hello. | ||
; | ||
; Copyright (c) 2009-2012 Texas Instruments Incorporated. All rights reserved. | ||
; Software License Agreement | ||
; | ||
; Texas Instruments (TI) is supplying this software for use solely and | ||
; exclusively on TI's microcontroller products. The software is owned by | ||
; TI and/or its suppliers, and is protected under applicable copyright | ||
; laws. You may not combine this software with "viral" open-source | ||
; software in order to form a larger program. | ||
; | ||
; THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS. | ||
; NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT | ||
; NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
; A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY | ||
; CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL | ||
; DAMAGES, FOR ANY REASON WHATSOEVER. | ||
; | ||
; This is part of revision 9107 of the DK-LM3S9B96 Firmware Package. | ||
; | ||
;****************************************************************************** | ||
|
||
LR_IROM 0x00000000 0x00040000 | ||
{ | ||
; | ||
; Specify the Execution Address of the code and the size. | ||
; | ||
ER_IROM 0x00000000 0x00040000 | ||
{ | ||
*.o (RESET, +First) | ||
* (InRoot$$Sections, +RO) | ||
} | ||
|
||
; | ||
; Specify the Execution Address of the data area. | ||
; | ||
RW_IRAM 0x20000000 0x00018000 | ||
{ | ||
; | ||
; Uncomment the following line in order to use IntRegister(). | ||
; | ||
;* (vtable, +First) | ||
* (+RW, +ZI) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
��������ģ���ˡ������ʦ���������š������Ƶ����ֽ�������Ϸ�� | ||
|
||
ʹ�õ���ģ�鼰����״���� | ||
ģ�鹦�����������߶����߱�ע | ||
|
||
|
||
LCD | ||
RST PB7 ��JP38 | ||
CS ��JP11 ��JP12 �������أ�JP11�ǵ� | ||
D0 PD0 ��JP6 ��JP29,JP36 | ||
D1 PD1 ��JP7 ��JP27,JP37 | ||
D4 PD4 ��JP8 ��JP26 | ||
D5 PD5 ��JP9 ��JP31 | ||
���� ��JP23 | ||
|
||
������ | ||
TOUCH_XP PE6 ��JP57 | ||
TOUCH_YP PE7 ��JP60 | ||
TOUCH_XN PE2 ��JP59 | ||
TOUCH_YN PE3 ��JP58 | ||
|
||
SPI | ||
SD��ƬѡSSIOFSS ��JP5 ��JP4,JP62 | ||
SD���ź�SSIORX ��JP47 | ||
|
||
I2S | ||
I2S_TXSD PE5 ��JP24 ��JP41 | ||
I2S_TXWS PE4 ��JP25 ��JP42 | ||
I2S_TXMCL | ||
K PF1 ��JP30 ��JP44 | ||
I2STXSCLK PB6 ��JP28 ��JP43 | ||
�� JP53 JP55 JP56 | ||
|
||
������ | ||
��JP39 ��JP2 | ||
|
||
ע�⣺1.������Ϊ�����������㴥�أ���ϷʱӦ����ͬʱ����������ж�λ�ý�����λ���е㣬Ӱ���ж��� | ||
2.�����ļ�����Ϊ��wav�ļ��������ܲ��ţ�auת����wav���ܲ��ţ���������һЩת��������goldwave���ԣ� | ||
|
||
ʹ��˵����1.������Ϸ��ѡȡ�����Ѷȶ�Ӧ�е�һ����ÿһ���ѶȾ��ж�Ӧ�ĸ������·�����������������ѡ������ɿ�ʼ��Ϸ�� | ||
2.��Ϸ�У����������䵽��Ļ�·�ָ������ʱ��ͬʱ�������ֽ��ఴ�°������ɻ������ж������ĵ��ж�Ȧ������ǰ�������ж��ȼ��� | ||
����ɫ��ʾperfect����ɫ��ʾgreat����ɫ��ʾmiss�� | ||
3.��Ϸ������ɿ����Լ��������֡� | ||
4.�����������ļ�������������sd���ڡ������ļ�����������Ϊ�Ѷȣ�E��N��H��+�������֡������canon.wav�����Ѱ������ļ�Ӧ����ΪHcanon.txt | ||
|
||
���������ļ��ı�д���� | ||
�����ļ��Ǽ�¼һ�����ֶ�Ӧ�İ����������ļ����簴��������ʱ�䣬���ͼ�λ�á� | ||
�ڽ����ʦ����������Ϸ�У�����ͨ������Ϸ����������һ����ʽ��д���ɣ����������ļ���дҪ�����������ϣ����������ȽϷ�ʱ������Ҫ����Ӧ�� | ||
��Ƶ�������������ֽ���ץ���ȡ� | ||
������װ�������ļ���ʽ���¡� | ||
��һ�У�һ�����֣���¼�ܰ�����n | ||
�ڶ�����n+1�У�ÿ��������������һ������¼�ü�����Ļ�������ֵ�ʱ�䡣�ڶ�������¼���ֵ�λ�ã��ĸ��������������������Ϊ�� | ||
������Ϊ0������Ϊ����������Ϊһ����������¼�䳤�ȡ�ÿ�������ÿո������ | ||
|
||
|
||
|
||
�������ף��������ļ���д������Ҫ��������һ���ķ����ֶΣ�������bpm��������ȷ�����µ�bpm���ҵ����Ľ�ʱ��ֶΣ�Ȼ���ö����۲�Ƶ��ϵİ취�� | ||
����㣬�������Լ�ϲ�÷��ð�����λ�ú����͡��Ƽ�����ΪAdobe Audio, excel����Ȼ�������������ת����������goldwave������Ϊ16bit wav��ʽ�� | ||
����ʱ���ϵ����������4�����ֵ����ף���������һ���е�һ����SD���б��뺬��sound.wav(����������),����������������С� |
Oops, something went wrong.