Skip to content

Commit

Permalink
Builds with interrupt example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kamichal committed Dec 28, 2014
1 parent fa6e58d commit b9592e2
Show file tree
Hide file tree
Showing 29 changed files with 3,207 additions and 2,086 deletions.
15 changes: 15 additions & 0 deletions eZ_include/ka_platform_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* ka_platform_types.h
*
* Created on: Dec 28, 2014
* Author: kamichal
*/

#ifndef KA_PLATFORM_TYPES_H_
#define KA_PLATFORM_TYPES_H_





#endif /* KA_PLATFORM_TYPES_H_ */
26 changes: 22 additions & 4 deletions eZ_include/usbstk5515.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,30 @@ extern "C" {
#endif


#define Uint32 unsigned long
#ifndef Uint32
#define Uint32 unsigned long
#endif

#ifndef Uint16
#define Uint16 unsigned short
#endif

#ifndef Uint8
#define Uint8 unsigned char
#define Int32 int
#define Int16 short
#define Int8 char
#endif

#ifndef Int32
#define Int32 signed int
#endif

#ifndef Int16
#define Int16 signed short
#endif

#ifndef Int8
#define Int8 signed char
#endif


#define SW_BREAKPOINT while(1);
/* ------------------------------------------------------------------------ *
Expand Down
4 changes: 3 additions & 1 deletion kadev_eclipsePlayground/.cproject
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/eZ_include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/kadisp}&quot;"/>
<listOptionValue builtIn="false" value="/km/ti/c55xx_csl/inc"/>
</option>
<option id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.DISPLAY_ERROR_NUMBER.450413411" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.DISPLAY_ERROR_NUMBER" value="true" valueType="boolean"/>
<option id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.DIAG_WARNING.91274271" name="Treat diagnostic &lt;id&gt; as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.DIAG_WARNING" valueType="stringList">
<listOptionValue builtIn="false" value="225"/>
</option>
<option id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.PRINTF_SUPPORT.1751901506" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.PRINTF_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.PRINTF_SUPPORT.full" valueType="enumerated"/>
<option id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.PRINTF_SUPPORT.1751901506" name="Level of printf support required (--printf_support)" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.PRINTF_SUPPORT" value="com.ti.ccstudio.buildDefinitions.C5500_4.4.compilerID.PRINTF_SUPPORT.full" valueType="enumerated"/>
<inputType id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compiler.inputType__C_SRCS.593059226" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compiler.inputType__C_SRCS"/>
<inputType id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compiler.inputType__CPP_SRCS.588638967" name="C++ Sources" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compiler.inputType__CPP_SRCS"/>
<inputType id="com.ti.ccstudio.buildDefinitions.C5500_4.4.compiler.inputType__ASM_SRCS.1509255169" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.compiler.inputType__ASM_SRCS"/>
Expand All @@ -66,6 +67,7 @@
<option id="com.ti.ccstudio.buildDefinitions.C5500_4.4.linkerID.XML_LINK_INFO.748994886" name="Detailed link information data-base into &lt;file&gt; (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.linkerID.XML_LINK_INFO" value="&quot;${ProjName}_linkInfo.xml&quot;" valueType="string"/>
<option id="com.ti.ccstudio.buildDefinitions.C5500_4.4.linkerID.LIBRARY.641281540" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.linkerID.LIBRARY" valueType="libs">
<listOptionValue builtIn="false" value="&quot;libc.a&quot;"/>
<listOptionValue builtIn="false" value="/km/ti/c55xx_csl/build/C55XXCSL_LP.lib"/>
</option>
<inputType id="com.ti.ccstudio.buildDefinitions.C5500_4.4.exeLinker.inputType__CMD_SRCS.1345540917" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.exeLinker.inputType__CMD_SRCS"/>
<inputType id="com.ti.ccstudio.buildDefinitions.C5500_4.4.exeLinker.inputType__CMD2_SRCS.612619582" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.C5500_4.4.exeLinker.inputType__CMD2_SRCS"/>
Expand Down
6 changes: 4 additions & 2 deletions kadev_eclipsePlayground/C5515.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
MEMORY
{
MMR: o = 0x000000 l = 0x0000c0 /* 192B Memory Mapped Registers */
DARAM0: o = 0x0000C0 l = 0x001F40 /* 8kB Dual Access RAM 0 */
VEC: o = 0x0000C0 l = 0x000300 /* on-chip ROM vectors */
DARAM0: o = 0x000400 l = 0x001A00 /* 8kB Dual Access RAM 0 */
DARAM1: o = 0x002000 l = 0x002000 /* 8kB Dual Access RAM 1 */
DARAM2: o = 0x004000 l = 0x002000 /* 8kB Dual Access RAM 2 */
DARAM3: o = 0x006000 l = 0x002000 /* 8kB Dual Access RAM 3 */
Expand Down Expand Up @@ -73,6 +74,7 @@ MEMORY
CS5: o = 0xF00000 l = 0x0E0000 /* 1MB CS5 external memory space */
ROM: o = 0xFE0000 l = 0x01FF00 /* 128kB ROM (MPNMC=0) or CS5 (MPNMC=1) */
VECS: o = 0xFFFF00 l = 0x000100 /* reset vector */

}


Expand All @@ -94,7 +96,7 @@ SECTIONS
.cio > SARAM2 /* C I/O buffers */
.args > SARAM2 /* Arguments to main() */

vectors > VECS /* Interrupt vectors */
vectors > VEC /* Interrupt vectors */

// .ioport > IOPORT PAGE 2 /* Global & static ioport vars */
}
2 changes: 1 addition & 1 deletion kadev_eclipsePlayground/Debug/ccsObjs.opt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"./eZ_include/usbstk5515_led.obj" "./eZ_include/usbstk5515_i2c.obj" "./eZ_include/usbstk5515_gpio.obj" "./eZ_include/usbstk5515.obj" "./kadisp/ssd1780_oled_cntrl.obj" "./kadisp/kadisp.obj" "./kadisp/font_8x6_philippe.obj" "./src/main.obj" "../C5515.cmd" -l"libc.a"
"./eZ_include/usbstk5515_led.obj" "./eZ_include/usbstk5515_i2c.obj" "./eZ_include/usbstk5515_gpio.obj" "./eZ_include/usbstk5515.obj" "./kadisp/ssd1780_oled_cntrl.obj" "./kadisp/kadisp.obj" "./kadisp/font_8x6_philippe.obj" "./src/main.obj" "./kairq.obj" "../C5515.cmd" -l"libc.a" -l/km/ti/c55xx_csl/build/C55XXCSL_LP.lib
8 changes: 4 additions & 4 deletions kadev_eclipsePlayground/Debug/eZ_include/subdir_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@
eZ_include/usbstk5515.obj: /home/kamichal/m_repo/kamichalRepo/kadev/eZ_include/usbstk5515.c $(GEN_OPTS) $(GEN_HDRS)
@echo 'Building file: $<'
@echo 'Invoking: C5500 Compiler'
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --include_path="/km/ti/c55xx_csl/inc" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
@echo 'Finished building: $<'
@echo ' '

eZ_include/usbstk5515_gpio.obj: /home/kamichal/m_repo/kamichalRepo/kadev/eZ_include/usbstk5515_gpio.c $(GEN_OPTS) $(GEN_HDRS)
@echo 'Building file: $<'
@echo 'Invoking: C5500 Compiler'
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515_gpio.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --include_path="/km/ti/c55xx_csl/inc" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515_gpio.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
@echo 'Finished building: $<'
@echo ' '

eZ_include/usbstk5515_i2c.obj: /home/kamichal/m_repo/kamichalRepo/kadev/eZ_include/usbstk5515_i2c.c $(GEN_OPTS) $(GEN_HDRS)
@echo 'Building file: $<'
@echo 'Invoking: C5500 Compiler'
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515_i2c.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --include_path="/km/ti/c55xx_csl/inc" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515_i2c.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
@echo 'Finished building: $<'
@echo ' '

eZ_include/usbstk5515_led.obj: /home/kamichal/m_repo/kamichalRepo/kadev/eZ_include/usbstk5515_led.c $(GEN_OPTS) $(GEN_HDRS)
@echo 'Building file: $<'
@echo 'Invoking: C5500 Compiler'
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515_led.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
"/km/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="/km/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadev_eclipsePlayground/src" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/eZ_include" --include_path="/home/kamichal/m_repo/kamichalRepo/kadev/kadisp" --include_path="/km/ti/c55xx_csl/inc" --define=c5515 --display_error_number --diag_warning=225 --ptrdiff_size=16 --printf_support=full --preproc_with_compile --preproc_dependency="eZ_include/usbstk5515_led.pp" --obj_directory="eZ_include" $(GEN_OPTS__FLAG) "$(shell echo $<)"
@echo 'Finished building: $<'
@echo ' '

Expand Down
Binary file modified kadev_eclipsePlayground/Debug/eZ_include/usbstk5515.obj
Binary file not shown.
Binary file modified kadev_eclipsePlayground/Debug/eZ_include/usbstk5515_gpio.obj
Binary file not shown.
Binary file modified kadev_eclipsePlayground/Debug/eZ_include/usbstk5515_i2c.obj
Binary file not shown.
Binary file modified kadev_eclipsePlayground/Debug/eZ_include/usbstk5515_led.obj
Binary file not shown.
Loading

0 comments on commit b9592e2

Please sign in to comment.