Upload original 计算机组成原理课程实践 学分×2 陈媛媛 course files (part 30)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- Proteus 8 Professional/DATA/VSM Studio/compilers/boostmain.c+17-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-msp430.xml+882-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo.xml+785-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Adc.h+389-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_BootVars.h+42-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Comp.h+88-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_CpuTimers.h+185-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_DefaultISR.h+123-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_DevEmu.h+92-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Device.h+286-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_ECap.h+135-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_EPwm.h+573-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_EPwm_defines.h+216-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Examples.h+164-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_GlobalPrototypes.h+100-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Gpio.h+300-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_I2c.h+197-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_I2c_defines.h+115-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_NmiIntrupt.h+97-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_PieCtrl.h+151-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_PieVect.h+205-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_SWPrioritizedIsrLevels.h
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Sci.h+231-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Spi.h+182-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_SysCtrl.h+428-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_XIntrupt.h+63-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP28x_Project.h+22-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/IQmathLib.h
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/SFO_V6.h+69-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/280200_RAM_lnk.cmd+155-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28020_RAM_lnk.cmd+165-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28021_RAM_lnk.cmd+165-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28022_RAM_lnk.cmd+165-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28023_RAM_lnk.cmd+165-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28026_RAM_lnk.cmd+165-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28027_RAM_lnk.cmd+165-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/DSP2802x_Headers_nonBIOS.cmd+144-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28020.cmd+190-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F280200.cmd+184-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28021.cmd+190-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28022.cmd+190-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28023.cmd+190-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28026.cmd+190-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28027.cmd+189-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_CodeStartBranch.asm+83-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_CpuTimers.c+113-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_DefaultIsr.c+768-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_EPwm.c+243-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_GlobalVariableDefs.c+288-3
- Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_I2C.c+84-3
123version https://git-lfs.github.com/spec/v1oid sha256:e286898b30db63d36ff3a1b511ac4f4c93fa385144d6adcb5045ab4e565b32d0size 2421234567891011121314151617/* Main.c file generated by New Project wizard** Created: %%DATE%%* Processor: %%CONTROLLER%%* Compiler: %%COMPILER%%*/#include <system.h>void main(){// Write your code herewhile( 1 );}
123version https://git-lfs.github.com/spec/v1oid sha256:01c1518bb632888d5537c25455849e9230692e0730740418dad0f3276ca9fafesize 43504123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882<?xml version="1.0" encoding="utf-8" standalone="yes"?><COMPILER NAME="CodeComposer for MSP430" ID="MSP430CC" VERSION="3.2.2" URL="http://www.ti.com/" AVAILABILITY="External" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schema/compiler.xsd"><!-- C Compiler --><TOOL NAME="CC" FILE="cl430.exe"><!-- And C++ Compiler as well --><ALIAS NAME="CPP"/><!--And linker--><ALIAS NAME="LD"/><!--And Assembler --><ALIAS NAME="ASM"/><!-- Options --><!-- Control Options --><OPTION NAME="--compile_only" DESC="Disable linking (overrides -z)" ADVANCED="1"><ALIAS NAME="-c"/></OPTION><OPTION NAME="--help" DESC="Show help screen" ADVANCED="1"><ALIAS NAME="-h"/></OPTION><OPTION NAME="--run_linker" DESC="Perform link using options following" ADVANCED="1"><ALIAS NAME="-z"/></OPTION><OPTION NAME="--skip_assembler" DESC="Compile only; do not assemble" ADVANCED="1"><ALIAS NAME="-n"/></OPTION><!-- Symbolic Debug Options --><OPTION NAME="--symdebug:" DESC="Symbolic Debug Options" PARAM="CHOICE"><PARAM VALUE="skeletal" DESC="Symbolic debug for program analysis" DEFAULT="1"/><PARAM VALUE="dwarf" DESC="Full symbolic debug"/><PARAM VALUE="none" DESC="Suppress all symbolic debug generation"/></OPTION><!-- Language Options --><OPTION NAME="--cpp_default" DESC="Treat C files as C++ files" ADVANCED="1"><ALIAS NAME="-fg"/></OPTION><OPTION NAME="--embedded_cpp" DESC="Embedded C++" ADVANCED="1"><ALIAS NAME="-pe"/></OPTION><OPTION NAME="--exceptions" DESC="Enable C++ exception handling" ADVANCED="1"/><OPTION NAME="--gcc" DESC="Enable support for GCC extensions" ADVANCED="1"/><OPTION NAME="--gen_acp_raw" DESC="Output raw listing to .rl file" ADVANCED="1"><ALIAS NAME="-pl"/></OPTION><OPTION NAME="--gen_acp_xref" DESC="Output xref listing to .crl file" ADVANCED="1"><ALIAS NAME="-px"/></OPTION><OPTION NAME="--keep_unneeded_statics" DESC="Do not delete unreferenced static variables" ADVANCED="1"/><OPTION NAME="--kr_compatible" DESC="K and R compatibility" ADVANCED="1"><ALIAS NAME="-pk"/></OPTION><OPTION NAME="--multibyte_chars" DESC="Multibyte character support" ADVANCED="1"><ALIAS NAME="-pc"/></OPTION><OPTION NAME="--no_inlining" DESC="Ignore inline keyword" ADVANCED="1"><ALIAS NAME="-pi"/></OPTION><OPTION NAME="--no_intrinsics" DESC="Disable intrinsic functions" ADVANCED="1"><ALIAS NAME="-pn"/></OPTION><OPTION NAME="--program_level_compile" DESC="Program mode compilation" ADVANCED="1"><ALIAS NAME="-pm"/></OPTION><OPTION NAME="--relaxed_ansi" DESC="Relaxed parsing (non-strict ANSI)" ADVANCED="1"><ALIAS NAME="-pr"/></OPTION><OPTION NAME="--rtti" DESC="Support C++ run-time type information" ADVANCED="1"><ALIAS NAME="-rtti"/></OPTION><OPTION NAME="--static_template_instantiation" DESC="Do static early template instantiation" ADVANCED="1"/><OPTION NAME="--strict_ansi" DESC="Strict ANSI mode (errors)" ADVANCED="1"><ALIAS NAME="-ps"/></OPTION><!-- Parser Preprocessing Options --><OPTION NAME="--preproc_dependency=" DESC="Generate include file dependency information: filename" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ppd="/></OPTION><OPTION NAME="--preproc_includes=" DESC="Generate first-level include file list: filename" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ppi="/></OPTION><OPTION NAME="--preproc_macros=" DESC="Generate list of pre- and user-defined macros" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ppm="/></OPTION><OPTION NAME="--preproc_only" DESC="Preprocess only" ADVANCED="1"><ALIAS NAME="-ppo"/></OPTION><OPTION NAME="--preproc_with_comment" DESC="Preprocess only; maintain comments" ADVANCED="1"><ALIAS NAME="-ppc"/></OPTION><OPTION NAME="--preproc_with_compile" DESC="Continue compilation after using -pp<X> options." ADVANCED="1"><ALIAS NAME="-ppa"/></OPTION><OPTION NAME="--preproc_with_line" DESC="Preprocess only; maintain line directives" ADVANCED="1"><ALIAS NAME="-ppl"/></OPTION><!-- Predefined Symbols Options--><OPTION NAME="--define=" DESC="Pre-define NAME: D=NAME[=value]" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="-D="/></OPTION><OPTION NAME="--undefine=" DESC="Undefine NAME: -U=NAME" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="-U="/></OPTION><!-- Include Options --><OPTION NAME="--include_path=" DESC="Add dir to #include search path" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="-I="/></OPTION><OPTION NAME="--preinclude=" DESC="Specify a preinclude file" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><!-- Diagnostic Options --><OPTION NAME="--compiler_revision" DESC="Print compiler revision and exit" ADVANCED="1"/><OPTION NAME="--diag_error=" DESC="Treat diagnostic <id> as error" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdse="/></OPTION><OPTION NAME="--diag_remark=" DESC="Treat diagnostic <id> as remark" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdsr="/></OPTION><OPTION NAME="--diag_suppress=" DESC="Suppress diagnostic <id>" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pds="/></OPTION><OPTION NAME="--diag_warning=" DESC="Treat diagnostic <id> as warning" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdsw="/></OPTION><OPTION NAME="--display_error_number" DESC="Emit diagnostic identifier numbers" ADVANCED="1"><ALIAS NAME="-pden"/></OPTION><OPTION NAME="--issue_remarks" DESC="Issue remarks" ADVANCED="1"><ALIAS NAME="-pdr"/></OPTION><OPTION NAME="--no_warnings" DESC="Suppress warnings" ADVANCED="1"><ALIAS NAME="-pdw"/></OPTION><OPTION NAME="--quiet" DESC="Quiet Mode" ADVANCED="1"><ALIAS NAME="-q"/></OPTION><OPTION NAME="--set_error_limit=" DESC="Set error limit to <count>" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdel="/></OPTION><OPTION NAME="--super_quiet" DESC="Super Quiet Mode" ADVANCED="1"><ALIAS NAME="-qq"/></OPTION><OPTION NAME="--tool_version" DESC="Print version numbers for each tool" ADVANCED="1"><ALIAS NAME="-version"/></OPTION><OPTION NAME="--verbose" DESC="Display banner and function progress information" ADVANCED="1"/><OPTION NAME="--verbose_diagnostics" DESC="Verbose diagnostics" ADVANCED="1"><ALIAS NAME="-pdv"/></OPTION><OPTION NAME="--write_diagnostics_file" DESC="Output diagnostic to .err file" ADVANCED="1"><ALIAS NAME="-pdf"/></OPTION><!-- Runtime Model Options --><OPTION TOOL="CC" NAME="--silicon_version=" DESC="Silicon version" PARAM="CHOICE"><ALIAS NAME="-v="/><PARAM VALUE="msp" DEFAULT="1"/><PARAM VALUE="mspx"/></OPTION><OPTION NAME="--large_memory_model" DESC="Use large-data memory model" ADVANCED="1"><ALIAS NAME="-ml"/></OPTION><OPTION NAME="--fp_reassoc=" DESC="Allow reassociation of FP arithmetic" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="off" DEFAULT="1"/><PARAM VALUE="on"/></OPTION><OPTION NAME="--global_register=" DESC="Reserve a register for use by the user" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="r4"/><PARAM VALUE="r5"/></OPTION><OPTION NAME="--plain_char=" DESC="Specify how to treat plain chars" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="unsigned" DEFAULT="1"/><PARAM VALUE="signed"/></OPTION><OPTION NAME="--sat_reassoc=" DESC="Allow reassociation of sat arithmetic" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="off" DEFAULT="1"/><PARAM VALUE="on"/></OPTION><OPTION NAME="--silicon_errata=" DESC="Workaround specified silicon errata" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="CPU15"/><PARAM VALUE="CPU18"/><PARAM VALUE="CPU21"/><PARAM VALUE="CPU22"/><PARAM VALUE="CPU23"/></OPTION><OPTION NAME="--small_enum" DESC="Enums may be char/short, instead of int" ADVANCED="1"><ALIAS NAME="--small-enum"/></OPTION><!-- Optimizations Options --><OPTION NAME="--opt_level" DESC="Optimization level" PARAM="CHOICE"><ALIAS NAME="-O"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2" DEFAULT="1"/><PARAM VALUE="3"/></OPTION><OPTION NAME="--opt_for_speed" DESC="Control speed vs. size tradeoffs (0=size, 5=speed)" PARAM="CHOICE"><ALIAS NAME="-mf"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2"/><PARAM VALUE="3"/><PARAM VALUE="4" DEFAULT="1"/><PARAM VALUE="5"/></OPTION><OPTION NAME="--auto_inline=" DESC="Specify threshold for automatic inlining" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-oi="/></OPTION><OPTION NAME="--call_assumptions" DESC="Specify call assumptions when optimizing" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-op"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2"/><PARAM VALUE="3"/></OPTION><OPTION NAME="--gen_opt_info" DESC="Generate optimizer information file at level" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-on"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2"/></OPTION><OPTION NAME="--optimize_with_debug" DESC="Optimize fully in the presence of debug directives"><ALIAS NAME="-mn"/></OPTION><OPTION NAME="--optimizer_interlist" DESC="Generate optimized source interlisted assembly" ADVANCED="1"><ALIAS NAME="-os"/></OPTION><OPTION NAME="--remove_hooks_when_inlining" DESC="Remove entry/exit hooks from inlined functions" ADVANCED="1"/><OPTION NAME="--single_inline" DESC="Inline functions only called once" ADVANCED="1"/><OPTION NAME="--aliased_variables" DESC="Assume called funcs create hidden aliases (rare)" ADVANCED="1"><ALIAS NAME="-ma"/></OPTION><!-- Entry/Exit Hook Options --><OPTION NAME="--entry_hook=" DESC="Insert this call at entry to each function (Default:__entry_hook)" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--entry_parm=" DESC="Pass caller's name or address to entry hook" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="address"/><PARAM VALUE="name"/><PARAM VALUE="none"/></OPTION><OPTION NAME="--exit_hook=" DESC="Insert this call at exit from each function (Default:__exit_hook)" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--exit_parm=" DESC="Pass caller's name or address to exit hook" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="address"/><PARAM VALUE="name"/><PARAM VALUE="none"/></OPTION><!-- Feedback Options --><OPTION NAME="--analyze=" DESC="Generate analysis info from profile data" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="callgraph"/><PARAM VALUE="codecov"/></OPTION><OPTION NAME="--analyze_only" DESC="Only generate analysis" ADVANCED="1"/><OPTION NAME="--gen_profile_info" DESC="Generate profile feedback data" ADVANCED="1"/><OPTION NAME="--use_profile_info=" DESC=" Use profile feedback file(s)" PARAM="STRING" ADVANCED="1"/><!-- Library Function Assumptions Options --><OPTION NAME="--printf_support=" DESC="Level of printf support required" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="full"/><PARAM VALUE="minimal"/><PARAM VALUE="nofloat"/></OPTION><OPTION NAME="--std_lib_func_defined" DESC="File contains an RTS library function" ADVANCED="1"><ALIAS NAME="-ol1"/></OPTION><OPTION NAME="--std_lib_func_not_defined" DESC="File does not define any RTS library func (def.)" ADVANCED="1"><ALIAS NAME="-ol2"/></OPTION><OPTION NAME="--std_lib_func_redefined" DESC="File redefines an RTS library function" ADVANCED="1"><ALIAS NAME="-ol0"/></OPTION><!-- Assembler Options --><OPTION NAME="--keep_asm" DESC="Keep the generated assembly language (.asm) file" ADVANCED="1"><ALIAS NAME="-k"/></OPTION><OPTION NAME="--asm_listing" DESC="Generate listing file" ADVANCED="1"><ALIAS NAME="-al"/></OPTION><OPTION NAME="--c_src_interlist" DESC="Generate C source interlisted assembly file" ADVANCED="1"><ALIAS NAME="-ss"/></OPTION><OPTION NAME="--src_interlist" DESC="Generate interlisted assembly file" ADVANCED="1"><ALIAS NAME="-s"/></OPTION><OPTION NAME="--absolute_listing" DESC="Generate absolute listing file" ADVANCED="1"><ALIAS NAME="-aa"/></OPTION><OPTION NAME="--asm_define=" DESC="Pre-define assembly symbol NAME: NAME[=value]" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ad="/></OPTION><OPTION NAME="--asm_dependency" DESC="Generate assembly dependency information" ADVANCED="1"><ALIAS NAME="-apd"/></OPTION><OPTION NAME="--asm_includes" DESC="Generate first-level assembly include file list" ADVANCED="1"><ALIAS NAME="-api"/></OPTION><OPTION NAME="--asm_undefine=" DESC="Undefine assembly symbol NAME" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-au="/></OPTION><OPTION NAME="--copy_file=" DESC="Simulate source '.copy filename'" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ahc="/></OPTION><OPTION NAME="--cross_reference" DESC="Generate cross reference file" ADVANCED="1"><ALIAS NAME="-ax"/></OPTION><OPTION NAME="--include_file=" DESC="Simulate source '.include filename'" PARAM="STRING" MULTIPLE="1" ADVANCED="1"><ALIAS NAME="-ahi="/></OPTION><OPTION NAME="--no_const_clink" DESC="Do not generate .clink for .const sections" ADVANCED="1"/><OPTION NAME="--output_all_syms" DESC="Keep local symbols in output file"><ALIAS NAME="-as"/></OPTION><OPTION NAME="--syms_ignore_case" DESC="Symbol names are not case-significant" ADVANCED="1"><ALIAS NAME="-ac"/></OPTION><!-- File Type Specifier Options --><OPTION NAME="--asm_file=" DESC="File is an assembly file (default for .asm)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fa="/></OPTION><OPTION NAME="--c_file=" DESC="File is a C file (default for .c/no ext)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fc="/></OPTION><OPTION NAME="--cpp_file=" DESC="File is a C++ file (default for .C .cpp .cc)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fp="/></OPTION><OPTION NAME="--obj_file=" DESC="File is an object file (default for .obj)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fo="/></OPTION><!-- Directory Specifier Options --><OPTION NAME="--abs_directory=" DESC="Absolute listing directory (default is .obj dir)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fb="/></OPTION><OPTION NAME="--asm_directory=" DESC="Assembly file directory (default is .)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fs="/></OPTION><OPTION NAME="--list_directory=" DESC="Listing/xref file directory (default is .obj dir)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ff="/></OPTION><OPTION NAME="--obj_directory=" DESC="Object file directory (default is .)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fr="/></OPTION><OPTION NAME="--temp_directory=" DESC="Temporary file directory (default is .)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ft="/></OPTION><!-- Default File Extensions Options --><OPTION NAME="--asm_extension=" DESC="Extension for assembly files (default is .asm)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ea="/></OPTION><OPTION NAME="--c_extension=" DESC="Extension for C files (default is .c)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ec="/></OPTION><OPTION NAME="--cpp_extension=" DESC="Extension for C++ files (default is .cpp)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ep="/></OPTION><OPTION NAME="--listing_extension=" DESC="Extension for listing files (default is .lst)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-es="/></OPTION><OPTION NAME="--obj_extension=" DESC="Extension for object files (default is .obj)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-eo="/></OPTION><!-- Command Files Options --><OPTION NAME="--cmd_file=" DESC="Read options from specified file" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-@="/></OPTION><!-- Linking section --><!--The following Linker options can be specified following the -zoption. Linking is only enabled if -z is used and -c is not:--><OPTION NAME="" DESC="Linker script" PARAM="STRING" ID="LKR" ADVANCED="1"/><OPTION NAME="--search_path=" PARAM="STRING" MULTIPLE="1"/><!-- Command File Preprocessing Options --><OPTION NAME="--disable_pp" DESC="Don't use C preprocessor for command files" ADVANCED="1"/><!-- Diagnostics Options --><OPTION NAME="--no_demangle" DESC="Don't demangle symbol names in diagnostics" ADVANCED="1"/><OPTION NAME="--warn_sections" DESC="Warn if an unspecified output section is created" ADVANCED="1"><ALIAS NAME="-w"/></OPTION><!-- File Search Path Options --><OPTION NAME="-l" DESC="Include library file or command file as input" PARAM="STRING" MULTIPLE="1" ADVANCED="1"><ALIAS NAME="--library="/></OPTION><OPTION NAME="-i" DESC="Add <dir> to library search path" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="--search_path="/></OPTION><OPTION NAME="--disable_auto_rts" DESC="Disable automatic RTS selection" ADVANCED="1"/><OPTION NAME="--priority" DESC="Search libraries in priority order" ADVANCED="1"><ALIAS NAME="-priority"/></OPTION><OPTION NAME="--reread_libs" DESC="Reread libraries; resolve backward references" ADVANCED="1"><ALIAS NAME="-x"/></OPTION><!-- Linker Output Options --><OPTION NAME="--output_file=" DESC="Specify output file name" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-o "/></OPTION><OPTION NAME="--map_file=" DESC="Input and output sections listed into <file>" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-m="/></OPTION><OPTION NAME="--absolute_exe" DESC="Produce absolute executable object file (default)" ADVANCED="1"><ALIAS NAME="-a"/></OPTION><OPTION NAME="--generate_dead_funcs_list=" DESC="List removed dead functions into file" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--mapfile_contents=" DESC="Display attribute settings in map file" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--relocatable" DESC="Produce a relocatable output module" ADVANCED="1"><ALIAS NAME="-r"/></OPTION><OPTION NAME="--run_abs" DESC="Produce absolute listing file" ADVANCED="1"><ALIAS NAME="-abs"/></OPTION><OPTION NAME="--xml_link_info=" DESC="Detailed link information data-base into <file>" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-xml_link_info="/></OPTION><!-- Symbol Management Options --><OPTION NAME="--entry_point=" DESC="Specify program entry point for the output module" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-e="/></OPTION><OPTION NAME="--globalize=" DESC="Do not localize symbols matching pattern" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--hide=" DESC="Hide symbols matching pattern" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--localize=" DESC="Make the symbols matching pattern local" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--make_global=" DESC="Don't make global symbol static if -h is specified" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-g="/></OPTION><OPTION NAME="--make_static" DESC="Make all global symbols static" ADVANCED="1"><ALIAS NAME="-h"/></OPTION><OPTION NAME="--no_sym_merge" DESC="No type merging in symbolic debugging information" ADVANCED="1"><ALIAS NAME="-b"/></OPTION><OPTION NAME="--no_symtable" DESC="Strip symbol table and line number entries" ADVANCED="1"><ALIAS NAME="-s"/></OPTION><OPTION NAME="--scan_libraries" DESC="Scan libraries for duplicate symbol definitions" ADVANCED="1"><ALIAS NAME="-scanlibs"/></OPTION><OPTION NAME="--symbol_map=" DESC="Specify a symbol map, mapping refname to defname: refname=defname" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--undef_sym=" DESC=" Add <sym> to symbol table as an unresolved symbol" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-u="/></OPTION><OPTION NAME="--unhide=" DESC="Exclude symbols matching pattern from hinding" PARAM="STRING" ADVANCED="1"/><!-- Runtime Environment Options --><OPTION NAME="--heap_size=" DESC="Heap size for C/C++ dynamic memory allocation" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-heap="/><ALIAS NAME="--heap="/></OPTION><OPTION NAME="--stack_size=" DESC="Set C system stack size" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-stack="/><ALIAS NAME="--stack="/></OPTION><OPTION NAME="--use_hw_mpy=" DESC="Link in hardware version of RTS mpy routine" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="16" DEFAULT="1"/><PARAM VALUE="32"/><PARAM VALUE="F5"/></OPTION><OPTION NAME="--arg_size=" DESC="Set C argc/argv memory size" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-args="/></OPTION><OPTION NAME="--fill_value=" DESC="Default fill value for holes in output sections" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-f="/></OPTION><OPTION NAME="--ram_model" DESC="Link using RAM autoinitialization model" ADVANCED="1"><ALIAS NAME="-cr"/></OPTION><OPTION NAME="--rom_model" DESC="Link using ROM autoinitialization model" ADVANCED="1"><ALIAS NAME="-c"/></OPTION><!-- Miscellaneous Options --><OPTION NAME="--disable_clink" DESC="Disable conditional linking and ignore .clink" ADVANCED="1"><ALIAS NAME="-j"/></OPTION><OPTION NAME="--linker_help" DESC="Display usage information" ADVANCED="1"><ALIAS NAME="-help"/><ALIAS NAME="--help"/></OPTION><OPTION NAME="--preferred_order=" DESC="Add <function> to preferred placement order list" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--strict_compatibility=" DESC="Strict compatibility checking" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="on" DEFAULT="1"/><PARAM VALUE="off"/></OPTION></TOOL><TOOL NAME="BIN2HEX" FILE="hex430.exe"><OPTION NAME="--byte" DESC="Output as bytes rather than target addressing" ADVANCED="1"><ALIAS NAME="-byte"/></OPTION><OPTION NAME="--exclude=" DESC="Exclude section from hex conversion" PARAM="STRING" MULTIPLE="1" ADVANCED="1"><ALIAS NAME="-exclude="/></OPTION><OPTION NAME="--fill=" DESC="Specify fill value" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fill="/></OPTION><OPTION NAME="--image" DESC="Select image mode" ADVANCED="1"><ALIAS NAME="image"/></OPTION><OPTION NAME="--linkerfill" DESC="Include linker fill sections in images" ADVANCED="1"><ALIAS NAME="-linkerfill"/></OPTION><OPTION NAME="--map=" DESC="Specify map file name" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-map="/></OPTION><OPTION NAME="--memwidth=" DESC="Specify memory width" PARAM="STRING"><ALIAS NAME="-memwidth="/></OPTION><OPTION NAME="--olength=" DESC="Number of data items per line of hex output" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-olength="/></OPTION><OPTION NAME="--order=" DESC="Specify data ordering (endianness)" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-order="/><PARAM VALUE="LS" DEFAULT="1"/><PARAM VALUE="MS"/></OPTION><OPTION NAME="--quiet" DESC="Quiet Operation" ADVANCED="1"><ALIAS NAME="-quiet"/><ALIAS NAME="-q"/></OPTION><OPTION NAME="--romwidth=" DESC="Specify rom width" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-romwidth="/></OPTION><OPTION NAME="--zero" DESC="Zero based addressing" ADVANCED="1"><ALIAS NAME="-zero"/><ALIAS NAME="-z"/></OPTION><OPTION NAME="--diag_error=" DESC="Treat diagnostic (id) as error" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--diag_remark=" DESC="Treat diagnostic (id) as remark" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--diag_suppress=" DESC="Suppress diagnostic (id)" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--diag_warning=" DESC="Treat diagnostic (id) as warning" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--display_error_number" DESC="Emit diagnostic identifier numbers" ADVANCED="1"/><OPTION NAME="--emit_warnings_as_errors" DESC="Treat warnings as errors" ADVANCED="1"><ALIAS NAME="-pdew"/></OPTION><OPTION NAME="--issue_remarks" DESC="Issue remarks" ADVANCED="1"/><OPTION NAME="--no_warnings" DESC="Suppress warnings" ADVANCED="1"/><OPTION NAME="--set_error_limit=" DESC="count Set error limit to (count)" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--ascii" DESC="Output ASCII hex format" ADVANCED="1"><ALIAS NAME="-a"/></OPTION><OPTION NAME="--intel" DESC="Output Intel hex format"><ALIAS NAME="-i"/></OPTION><OPTION NAME="--motorola" DESC="[=1,2,3] Output Motorola S hex format" PARAM="STRING" MULTIPLE="1" ADVANCED="1"><ALIAS NAME="-m"/></OPTION><OPTION NAME="--tektronix" DESC="Output Extended Tektronix hex format" ADVANCED="1"><ALIAS NAME="-x"/></OPTION><OPTION NAME="--ti_tagged" DESC="Output TI-Tagged hex format" ADVANCED="1"><ALIAS NAME="-t"/></OPTION><OPTION NAME="--ti_txt" DESC="Output TI-TXT hex format" ADVANCED="1"/><OPTION NAME="--load_image" DESC="Output Load Image Object format" ADVANCED="1"/><OPTION NAME="--section_name_prefix=" DESC="Prefix for load image object sections" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/></TOOL><!-- Available controllers for this compiler --><FAMILY NAME="MSP430"><CONTROLLER NAME="MSP430C1101"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430c1101.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430C1101__"/></CONTROLLER><CONTROLLER NAME="MSP430C1111"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430c1111.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430C1111__"/></CONTROLLER><CONTROLLER NAME="MSP430C1121"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430c1121.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430C1121__"/></CONTROLLER><CONTROLLER NAME="MSP430F1101"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f1101.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F1101__"/></CONTROLLER><CONTROLLER NAME="MSP430F1111"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f1111.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F1111__"/></CONTROLLER><CONTROLLER NAME="MSP430F1121"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f1121.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F1121__"/></CONTROLLER><CONTROLLER NAME="MSP430F2001"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2001.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2001__"/></CONTROLLER><CONTROLLER NAME="MSP430F2011"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2011.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2011__"/></CONTROLLER><CONTROLLER NAME="MSP430F2101"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2101.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2101__"/></CONTROLLER><CONTROLLER NAME="MSP430F2111"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2111.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2111__"/></CONTROLLER><CONTROLLER NAME="MSP430F2121"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2121.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2121__"/></CONTROLLER><CONTROLLER NAME="MSP430F2131"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2131.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2131__"/></CONTROLLER><CONTROLLER NAME="MSP430F2112"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2112.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2112__"/></CONTROLLER><CONTROLLER NAME="MSP430F2122"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2122.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2122__"/></CONTROLLER><CONTROLLER NAME="MSP430F2132"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2132.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2132__"/></CONTROLLER><CONTROLLER NAME="MSP430F2232"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2232.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2232__"/></CONTROLLER><CONTROLLER NAME="MSP430F2252"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2252.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2252__"/></CONTROLLER><CONTROLLER NAME="MSP430F2272"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2272.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2272__"/></CONTROLLER><CONTROLLER NAME="MSP430F233"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f233.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F233__"/></CONTROLLER><CONTROLLER NAME="MSP430F235"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f235.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F235__"/></CONTROLLER><CONTROLLER NAME="MSP430F247"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f247.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F247__"/></CONTROLLER><CONTROLLER NAME="MSP430F248"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f248.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F248__"/></CONTROLLER><CONTROLLER NAME="MSP430F249"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f249.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F249__"/></CONTROLLER><CONTROLLER NAME="MSP430F2330"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2330.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2330__"/></CONTROLLER><CONTROLLER NAME="MSP430F2350"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2350.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2350__"/></CONTROLLER><CONTROLLER NAME="MSP430F2370"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2370.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2370__"/></CONTROLLER><CONTROLLER NAME="MSP430F2410"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2410.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2410__"/></CONTROLLER><CONTROLLER NAME="MSP430F2416"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2416.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2416__"/></CONTROLLER><CONTROLLER NAME="MSP430F2417"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2417.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2417__"/></CONTROLLER><CONTROLLER NAME="MSP430F2418"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2418.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2418__"/></CONTROLLER><CONTROLLER NAME="MSP430F2419"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2419.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2419__"/></CONTROLLER><CONTROLLER NAME="MSP430F2471"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2471.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2471__"/></CONTROLLER><CONTROLLER NAME="MSP430F2481"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2481.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2481__"/></CONTROLLER><CONTROLLER NAME="MSP430F2491"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430f2491.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430F2491__"/></CONTROLLER><CONTROLLER NAME="MSP430G2553"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2553.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2553__"/></CONTROLLER><CONTROLLER NAME="MSP430G2453"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2453.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2453__"/></CONTROLLER><CONTROLLER NAME="MSP430G2353"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2353.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2353__"/></CONTROLLER><CONTROLLER NAME="MSP430G2253"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2253.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2253__"/></CONTROLLER><CONTROLLER NAME="MSP430G2153"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2153.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2153__"/></CONTROLLER><CONTROLLER NAME="MSP430G2213"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2213.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2213__"/></CONTROLLER><CONTROLLER NAME="MSP430G2313"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2313.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2313__"/></CONTROLLER><CONTROLLER NAME="MSP430G2413"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2413.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2413__"/></CONTROLLER><CONTROLLER NAME="MSP430G2513"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2513.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2513__"/></CONTROLLER><CONTROLLER NAME="MSP430G2001"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2001.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2001__"/></CONTROLLER><CONTROLLER NAME="MSP430G2101"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2101.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2101__"/></CONTROLLER><CONTROLLER NAME="MSP430G2201"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2201.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2201__"/></CONTROLLER><CONTROLLER NAME="MSP430G2111"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2111.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2111__"/></CONTROLLER><CONTROLLER NAME="MSP430G2211"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2211.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2211__"/></CONTROLLER><CONTROLLER NAME="MSP430G2755"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2755.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2755__"/></CONTROLLER><CONTROLLER NAME="MSP430G2855"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2855.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2855__"/></CONTROLLER><CONTROLLER NAME="MSP430G2955"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2955.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2955__"/></CONTROLLER><CONTROLLER NAME="MSP430G2233"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2233.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2233__"/></CONTROLLER><CONTROLLER NAME="MSP430G2333"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2333.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2333__"/></CONTROLLER><CONTROLLER NAME="MSP430G2433"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2433.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2433__"/></CONTROLLER><CONTROLLER NAME="MSP430G2533"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2533.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2533__"/></CONTROLLER><CONTROLLER NAME="MSP430G2203"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2203.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2203__"/></CONTROLLER><CONTROLLER NAME="MSP430G2303"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2303.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2303__"/></CONTROLLER><CONTROLLER NAME="MSP430G2402"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2402.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2402__"/></CONTROLLER><CONTROLLER NAME="MSP430G2403"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2403.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2403__"/></CONTROLLER><CONTROLLER NAME="MSP430G2210"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2210.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2210__"/></CONTROLLER><CONTROLLER NAME="MSP430G2444"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2444.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2444__"/></CONTROLLER><CONTROLLER NAME="MSP430G2544"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2544.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2544__"/></CONTROLLER><CONTROLLER NAME="MSP430G2744"><OPTION TOOL="LD" NAME="-l" VALUE="lnk_msp430g2744.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="__MSP430G2744__"/></CONTROLLER></FAMILY><!-- Compiler Detection --><DETECT PATH="c:/ti/ccs%*%/ccs/tools/compiler/ti-cgt-msp430%*%" SUF="bin/cl430.exe" ARG="" STR="MSP430"/><DETECT PATH="c:/ti/ccsv6/tools/compiler" SUF="bin/cl430.exe" ARG="" STR="MSP430" DATE="2009-11-17"/><DETECT PATH="c:/ti/ccsv5/tools/compiler/msp430" SUF="bin/cl430.exe" ARG="" STR="MSP430" DATE="2009-10-22"/><DETECT PATH="%PROGRAMFILES%/Texas Instruments/ccsv4/tools/compiler/msp430" SUF="bin/cl430.exe" ARG="" STR="MSP430" DATE="2009-10-22"/><PATH ADD="%COMPILER_DIR%/bin"/><!-- File Types --><FILE NAME="c" DESC="C Source" CATEGORY="Source" SOURCE="1" ICON="project_c.png"/><FILE NAME="cpp" DESC="C++ Source" CATEGORY="Source" SOURCE="1" ICON="project_c++.png"/><FILE NAME="h" DESC="C Include" CATEGORY="Header" SOURCE="1" ICON="project_header.png"/><FILE NAME="cmd" DESC="Linker Script" CATEGORY="Linker Script" SOURCE="1" ICON="project_other.png"/><!--FILE NAME="asm" DESC="Assembler Source" />--><FILE NAME="obj" DESC="Object" CATEGORY="Intermediate Binary" /><FILE NAME="cof" DESC="COF" CATEGORY="Firmare Binary" FIRMWARE="1"/><!-- Compiler --><PROCESS TOOL="CC" NAME="C Compiler" CMDLINE="$(CC) %OPTIONS% $(CCFLAGS) --output_file=%OUTFILE_QUOTED_DOS% %INFILE_QUOTED_DOS%"><FILE OUTPUT="obj"><FILE INPUT="c"/><FILE INPUT="cpp"/></FILE><OPTION NAME="-c"/><OPTION NAME="--symdebug:" VALUE="dwarf"/><OPTION NAME="--include_path=" VALUE=""%COMPILER_DIR_DOS%\include""/><OPTION NAME="--include_path=" VALUE=""%COMPILER_DIR_DOS%\..\..\..\msp430\include""/><OPTION NAME="--include_path=" VALUE=""%COMPILER_DIR_DOS%\..\..\..\ccs_base\msp430\include""/><OPTION NAME="--fp_reassoc=" VALUE="off"/><OPTION NAME="--sat_reassoc=" VALUE="off"/><OPTION NAME="--keep_unneeded_statics"/><OPTION NAME="--plain_char=" VALUE="unsigned"/><OPTION NAME="--silicon_version=" VALUE="msp"/><MESSAGE VALUE="^"(.+)".*line\D*(\d+):.*(error|warning|message):.+$"><FIELD NAME="FILENAME" POSITION="1"/><FIELD NAME="LINE" POSITION="2" OFFSET="-1"/></MESSAGE></PROCESS><!-- Assembler --><!--PROCESS TOOL="ASM" NAME="Assembler" CMDLINE="$(ASM) %OPTIONS% $(ASMFLAGS) %INFILE%" ><FILE OUTPUT="obj" /><FILE INPUT="asm" /><OPTION NAME="-c" /><OPTION NAME="-x-symdebug:" VALUE="dwarf"/><OPTION NAME="-x-include_path=" VALUE=""%COMPILER_DIR_DOS%\..\include"" /><OPTION NAME="-x-include_path=" VALUE=""%COMPILER_DIR_DOS%\..\..\..\..\msp430\include"" /><OPTION NAME="-x-fp_reassoc=" VALUE="off"/><OPTION NAME="-x-sat_reassoc=" VALUE="off"/><OPTION NAME="-x-keep_unneeded_statics" /><OPTION NAME="-x-plain_char=" VALUE="unsigned"/><OPTION NAME="-x-silicon_version=" VALUE="msp"/><MESSAGE VALUE="^"(.+)".*line\D*(\d+):.*(error|warning|message):.+$"><FIELD NAME="FILENAME" POSITION="1" /><FIELD NAME="LINE" POSITION="2" OFFSET="-1" /></MESSAGE></PROCESS>--><!-- Linker --><PROCESS TOOL="LD" NAME="Linker" CMDLINE="$(LD) --run_linker -z %OPTIONS% $(LDFLAGS) -o %OUTFILE_QUOTED% %INFILES_QUOTED% "><FILE OUTPUT="cof"/><FILE INPUT="obj"/><FILE INPUT="cmd" OPTION="LKR"/><OPTION NAME="--reread_libs"/><OPTION NAME="--rom_model"/><OPTION NAME="--warn_sections"/><OPTION NAME="--stack_size=" VALUE="0x80"/><OPTION NAME="--search_path=" VALUE=""%COMPILER_DIR_DOS%\lib""/><OPTION NAME="--search_path=" VALUE=""%COMPILER_DIR_DOS%\..\..\..\msp430\include""/><OPTION NAME="--search_path=" VALUE=""%COMPILER_DIR_DOS%\..\..\..\ccs_base\msp430\include""/><MESSAGE VALUE="^"(.+)".*line\D*(\d+):.*(error|warning|message):.+$"><FIELD NAME="FILENAME" POSITION="1"/><FIELD NAME="LINE" POSITION="2" OFFSET="-1"/></MESSAGE></PROCESS><!-- Bin2Hex --><PROCESS TOOL="BIN2HEX" NAME="Bin2hex" CMDLINE="$(BIN2HEX) $(BIN2HEXFLAGS) -o %OUTFILE_QUOTED% %INFILE_QUOTED% "><FILE OUTPUT="hex"/><FILE INPUT="cof"/><OPTION NAME="--memwidth=" VALUE="8"/><OPTION NAME="--intel"/></PROCESS><!-- Compilation Targets --><TARGET NAME="Debug"><FILE OUTPUT="cof"/></TARGET><TARGET NAME="Release"><FILE OUTPUT="hex"/><POSTPROCESS CMDLINE="cp "%OUTFILE%" "%SOLUTION_ABS_DIR%/%PROJECT_NAME%.%OUTFILE_TYPE%""/></TARGET><SOURCE NAME="main.c" FROM="ccmsp430main.c" OPEN="1"/></COMPILER>
123version https://git-lfs.github.com/spec/v1oid sha256:22dd2b23683174ead471c521929c2578fec1f64a94da31933492ce99331e8162size 39961123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785<?xml version="1.0" encoding="utf-8" standalone="yes"?><COMPILER NAME="CodeComposer for Piccolo" ID="PICCOLOCC" VERSION="4.2.1" URL="http://www.ti.com/" AVAILABILITY="External" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schema/compiler.xsd"><!-- C Compiler --><TOOL NAME="CC" FILE="cl2000.exe"><!-- And C++ Compiler as well --><ALIAS NAME="CPP"/><!--And linker--><ALIAS NAME="LD"/><!--And Assembler --><ALIAS NAME="ASM"/><!-- Options --><!-- Control Options --><OPTION NAME="--compile_only" DESC="Disable linking (overrides -z)" ADVANCED="1"><ALIAS NAME="-c"/></OPTION><OPTION NAME="--help" DESC="Show help screen" ADVANCED="1"><ALIAS NAME="-h"/></OPTION><OPTION NAME="--run_linker" DESC="[=arguments] Perform link using options following" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-z"/></OPTION><OPTION NAME="--skip_assembler" DESC="Compile only; do not assemble" ADVANCED="1"><ALIAS NAME="-n"/></OPTION><!-- Symbolic Debug Options --><OPTION NAME="--symdebug:" DESC="Symbolic Debug Options" PARAM="CHOICE"><PARAM VALUE="skeletal" DESC="Symbolic debug for program analysis" DEFAULT="1"/><PARAM VALUE="dwarf" DESC="Full symbolic debug"/><PARAM VALUE="none" DESC="Suppress all symbolic debug generation"/></OPTION><!-- Language Options --><OPTION NAME="--cpp_default" DESC="Treat C files as C++ files" ADVANCED="1"><ALIAS NAME="-fg"/></OPTION><OPTION NAME="--embedded_cpp" DESC="Embedded C++" ADVANCED="1"><ALIAS NAME="-pe"/></OPTION><OPTION NAME="--exceptions" DESC="Enable C++ exception handling" ADVANCED="1"/><OPTION NAME="--gcc" DESC="Enable support for GCC extensions" ADVANCED="1"/><OPTION NAME="--gen_acp_raw" DESC="Output raw listing to .rl file" ADVANCED="1"><ALIAS NAME="-pl"/></OPTION><OPTION NAME="--gen_acp_xref" DESC="Output xref listing to .crl file" ADVANCED="1"><ALIAS NAME="-px"/></OPTION><OPTION NAME="--keep_unneeded_statics" DESC="Do not delete unreferenced static variables" ADVANCED="1"/><OPTION NAME="--kr_compatible" DESC="K and R compatibility" ADVANCED="1"><ALIAS NAME="-pk"/></OPTION><OPTION NAME="--multibyte_chars" DESC="Multibyte character support" ADVANCED="1"><ALIAS NAME="-pc"/></OPTION><OPTION NAME="--no_inlining" DESC="Ignore inline keyword" ADVANCED="1"><ALIAS NAME="-pi"/></OPTION><OPTION NAME="--no_intrinsics" DESC="Disable intrinsic functions" ADVANCED="1"><ALIAS NAME="-pn"/></OPTION><OPTION NAME="--program_level_compile" DESC="Program mode compilation" ADVANCED="1"><ALIAS NAME="-pm"/></OPTION><OPTION NAME="--relaxed_ansi" DESC="Relaxed parsing (non-strict ANSI)" ADVANCED="1"><ALIAS NAME="-pr"/></OPTION><OPTION NAME="--rtti" DESC="Support C++ run-time type information" ADVANCED="1"><ALIAS NAME="-rtti"/></OPTION><OPTION NAME="--static_template_instantiation" DESC="Do static early template instantiation" ADVANCED="1"/><OPTION NAME="--strict_ansi" DESC="Strict ANSI mode (errors)" ADVANCED="1"><ALIAS NAME="-ps"/></OPTION><!-- Parser Preprocessing Options --><OPTION NAME="--preproc_dependency=" DESC="Generate include file dependency information: filename" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ppd="/></OPTION><OPTION NAME="--preproc_includes=" DESC="Generate first-level include file list: filename" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ppi="/></OPTION><OPTION NAME="--preproc_macros=" DESC="Generate list of pre- and user-defined macros" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ppm="/></OPTION><OPTION NAME="--preproc_only" DESC="Preprocess only" ADVANCED="1"><ALIAS NAME="-ppo"/></OPTION><OPTION NAME="--preproc_with_comment" DESC="Preprocess only; maintain comments" ADVANCED="1"><ALIAS NAME="-ppc"/></OPTION><OPTION NAME="--preproc_with_compile" DESC="Continue compilation after using -pp<X> options." ADVANCED="1"><ALIAS NAME="-ppa"/></OPTION><OPTION NAME="--preproc_with_line" DESC="Preprocess only; maintain line directives" ADVANCED="1"><ALIAS NAME="-ppl"/></OPTION><!-- Predefined Symbols Options--><OPTION NAME="--define=" DESC="Pre-define NAME: D=NAME[=value]" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="-D="/></OPTION><OPTION NAME="--undefine=" DESC="Undefine NAME: -U=NAME" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="-U="/></OPTION><!-- Include Options --><OPTION NAME="--include_path=" DESC="Add dir to #include search path" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="-I="/></OPTION><OPTION NAME="--preinclude=" DESC="Specify a preinclude file" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><!-- Diagnostic Options --><OPTION NAME="--compiler_revision" DESC="Print compiler revision and exit" ADVANCED="1"/><OPTION NAME="--diag_error=" DESC="Treat diagnostic <id> as error" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdse="/></OPTION><OPTION NAME="--diag_remark=" DESC="Treat diagnostic <id> as remark" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdsr="/></OPTION><OPTION NAME="--diag_suppress=" DESC="Suppress diagnostic <id>" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pds="/></OPTION><OPTION NAME="--diag_warning=" DESC="Treat diagnostic <id> as warning" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdsw="/></OPTION><OPTION NAME="--display_error_number" DESC="Emit diagnostic identifier numbers" ADVANCED="1"><ALIAS NAME="-pden"/></OPTION><OPTION NAME="--issue_remarks" DESC="Issue remarks" ADVANCED="1"><ALIAS NAME="-pdr"/></OPTION><OPTION NAME="--no_warnings" DESC="Suppress warnings" ADVANCED="1"><ALIAS NAME="-pdw"/></OPTION><OPTION NAME="--quiet" DESC="Quiet Mode" ADVANCED="1"><ALIAS NAME="-q"/></OPTION><OPTION NAME="--set_error_limit=" DESC="Set error limit to <count>" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-pdel="/></OPTION><OPTION NAME="--super_quiet" DESC="Super Quiet Mode" ADVANCED="1"><ALIAS NAME="-qq"/></OPTION><OPTION NAME="--tool_version" DESC="Print version numbers for each tool" ADVANCED="1"><ALIAS NAME="-version"/></OPTION><OPTION NAME="--verbose" DESC="Display banner and function progress information" ADVANCED="1"/><OPTION NAME="--verbose_diagnostics" DESC="Verbose diagnostics" ADVANCED="1"><ALIAS NAME="-pdv"/></OPTION><OPTION NAME="--write_diagnostics_file" DESC="Output diagnostic to .err file" ADVANCED="1"><ALIAS NAME="-pdf"/></OPTION><!-- Runtime Model Options --><OPTION NAME="--silicon_version=" DESC="Silicon version" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-v="/><PARAM VALUE="27" DEFAULT="1"/><PARAM VALUE="28"/></OPTION><OPTION NAME="--large_memory_model" DESC="Use large-data memory model" ADVANCED="1"><ALIAS NAME="-ml"/></OPTION><OPTION NAME="--fp_reassoc=" DESC="Allow reassociation of FP arithmetic" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="off" DEFAULT="1"/><PARAM VALUE="on"/></OPTION><OPTION NAME="--sat_reassoc=" DESC="Allow reassociation of sat arithmetic" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="off" DEFAULT="1"/><PARAM VALUE="on"/></OPTION><OPTION NAME="--unified_memory" DESC="Unified memory" ADVANCED="1"><ALIAS NAME="-mt"/></OPTION><OPTION NAME="--asm_code_fill=" DESC="Assembler fill value for code section" PARAM="NUMBER" ADVANCED="1"/><OPTION NAME="--asm_data_fill=" DESC="Assembler fill value for data section" PARAM="NUMBER" ADVANCED="1"/><OPTION NAME="--c2xlp_src_compatible" DESC="C2XLP source compatibility" ADVANCED="1"><ALIAS NAME="-m20"/></OPTION><OPTION NAME="--cla_support" DESC="[=cla0] Specify CLA support (Default:cla0)" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--disable_dp_load_opt" DESC="No DP load optimization" ADVANCED="1"><ALIAS NAME="-md"/></OPTION><OPTION NAME="--float_support=" DESC="Specify floating point support" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="softlib" DEFAULT="1"/><PARAM VALUE="fpu32"/><PARAM VALUE="fpu64"/></OPTION><OPTION NAME="--gen_func_subsections" DESC="Place each function in a separate subsection" ADVANCED="1"><ALIAS NAME="-mo"/></OPTION><OPTION NAME="--no_fast_branch" DESC="Disable C28x fast branch instructions" ADVANCED="1"><ALIAS NAME="-me"/></OPTION><OPTION NAME="--no_rpt" DESC="Don't generate RPT instructions" ADVANCED="1"><ALIAS NAME="-mi"/></OPTION><OPTION NAME="--opt_for_space" DESC="Optimize for code size" ADVANCED="1"><ALIAS NAME="-ms"/></OPTION><OPTION NAME="--gen_func_subsections" DESC="Place each function in a separate subsection" ADVANCED="1"><ALIAS NAME="-mo"/></OPTION><OPTION NAME="--profile:power" DESC="Compile for power profiling" ADVANCED="1"/><OPTION NAME="--protect_volatile" DESC="[=nops] default 2. Pipeline protect volatiles by nops" ADVANCED="1"><ALIAS NAME="-mv"/></OPTION><OPTION NAME="--rpt_threshold=" DESC="0-256. Specify max number of repetitions in a RPT instruction" PARAM="NUMBER" ADVANCED="1"/><!-- Optimizations Options --><OPTION NAME="--opt_level" DESC="Optimization level" PARAM="CHOICE"><ALIAS NAME="-O"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2" DEFAULT="1"/><PARAM VALUE="3"/></OPTION><OPTION NAME="--opt_for_speed" DESC="Control speed vs. size tradeoffs (0=size, 5=speed)" PARAM="CHOICE"><ALIAS NAME="-mf"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2"/><PARAM VALUE="3"/><PARAM VALUE="4" DEFAULT="1"/><PARAM VALUE="5"/></OPTION><OPTION NAME="--auto_inline=" DESC="Specify threshold for automatic inlining" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-oi="/></OPTION><OPTION NAME="--call_assumptions" DESC="Specify call assumptions when optimizing" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-op"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2"/><PARAM VALUE="3"/></OPTION><OPTION NAME="--gen_opt_info" DESC="Generate optimizer information file at level" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-on"/><PARAM VALUE="0"/><PARAM VALUE="1"/><PARAM VALUE="2"/></OPTION><OPTION NAME="--optimize_with_debug" DESC="Optimize fully in the presence of debug directives"><ALIAS NAME="-mn"/></OPTION><OPTION NAME="--optimizer_interlist" DESC="Generate optimized source interlisted assembly" ADVANCED="1"><ALIAS NAME="-os"/></OPTION><OPTION NAME="--remove_hooks_when_inlining" DESC="Remove entry/exit hooks from inlined functions" ADVANCED="1"/><OPTION NAME="--single_inline" DESC="Inline functions only called once" ADVANCED="1"/><OPTION NAME="--aliased_variables" DESC="Assume called funcs create hidden aliases (rare)" ADVANCED="1"><ALIAS NAME="-ma"/></OPTION><!-- Entry/Exit Hook Options --><OPTION NAME="--entry_hook=" DESC="Insert this call at entry to each function (Default:__entry_hook)" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--entry_parm=" DESC="Pass caller's name or address to entry hook" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="address"/><PARAM VALUE="name"/><PARAM VALUE="none"/></OPTION><OPTION NAME="--exit_hook=" DESC="Insert this call at exit from each function (Default:__exit_hook)" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--exit_parm=" DESC="Pass caller's name or address to exit hook" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="address"/><PARAM VALUE="name"/><PARAM VALUE="none"/></OPTION><!-- Feedback Options --><OPTION NAME="--analyze=" DESC="Generate analysis info from profile data" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="callgraph"/><PARAM VALUE="codecov"/></OPTION><OPTION NAME="--analyze_only" DESC="Only generate analysis" ADVANCED="1"/><OPTION NAME="--gen_profile_info" DESC="Generate profile feedback data" ADVANCED="1"/><OPTION NAME="--use_profile_info=" DESC=" Use profile feedback file(s)" PARAM="STRING" ADVANCED="1"/><!-- Library Function Assumptions Options --><OPTION NAME="--printf_support=" DESC="Level of printf support required" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="full"/><PARAM VALUE="minimal"/><PARAM VALUE="nofloat"/></OPTION><OPTION NAME="--std_lib_func_defined" DESC="File contains an RTS library function" ADVANCED="1"><ALIAS NAME="-ol1"/></OPTION><OPTION NAME="--std_lib_func_not_defined" DESC="File does not define any RTS library func (def.)" ADVANCED="1"><ALIAS NAME="-ol2"/></OPTION><OPTION NAME="--std_lib_func_redefined" DESC="File redefines an RTS library function" ADVANCED="1"><ALIAS NAME="-ol0"/></OPTION><!-- Assembler Options --><OPTION NAME="--keep_asm" DESC="Keep the generated assembly language (.asm) file" ADVANCED="1"><ALIAS NAME="-k"/></OPTION><OPTION NAME="--asm_listing" DESC="Generate listing file" ADVANCED="1"><ALIAS NAME="-al"/></OPTION><OPTION NAME="--c_src_interlist" DESC="Generate C source interlisted assembly file" ADVANCED="1"><ALIAS NAME="-ss"/></OPTION><OPTION NAME="--src_interlist" DESC="Generate interlisted assembly file" ADVANCED="1"><ALIAS NAME="-s"/></OPTION><OPTION NAME="--absolute_listing" DESC="Generate absolute listing file" ADVANCED="1"><ALIAS NAME="-aa"/></OPTION><OPTION NAME="--asm_define=" DESC="Pre-define assembly symbol NAME: NAME[=value]" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ad="/></OPTION><OPTION NAME="--asm_dependency" DESC="Generate assembly dependency information" ADVANCED="1"><ALIAS NAME="-apd"/></OPTION><OPTION NAME="--asm_includes" DESC="Generate first-level assembly include file list" ADVANCED="1"><ALIAS NAME="-api"/></OPTION><OPTION NAME="--asm_remarks" DESC="Generate asm extended warnings" ADVANCED="1"><ALIAS NAME="-mw"/></OPTION><OPTION NAME="--asm_undefine=" DESC="Undefine assembly symbol NAME" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-au="/></OPTION><OPTION NAME="--copy_file=" DESC="Simulate source '.copy filename'" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ahc="/></OPTION><OPTION NAME="--cross_reference" DESC="Generate cross reference file" ADVANCED="1"><ALIAS NAME="-ax"/></OPTION><OPTION NAME="--include_file=" DESC="Simulate source '.include filename'" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ahi="/></OPTION><OPTION NAME="--no_const_clink" DESC="Do not generate .clink for .const sections" ADVANCED="1"/><OPTION NAME="--output_all_syms" DESC="Keep local symbols in output file"><ALIAS NAME="-as"/></OPTION><OPTION NAME="--syms_ignore_case" DESC="Symbol names are not case-significant" ADVANCED="1"><ALIAS NAME="-ac"/></OPTION><OPTION NAME="--cdebug_asm_data" DESC="Generate asm debug directive" ADVANCED="1"><ALIAS NAME="-mg"/></OPTION><OPTION NAME="--flash_prefetch_warn" DESC="Assembler warnings for F281X BF flash prefetch issue" ADVANCED="1"/><OPTION NAME="--preproc_asm" DESC="Preprocess assembly source, expand macros." ADVANCED="1"><ALIAS NAME="-mx"/></OPTION><!-- File Type Specifier Options --><OPTION NAME="--asm_file=" DESC="File is an assembly file (default for .asm)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fa="/></OPTION><OPTION NAME="--c_file=" DESC="File is a C file (default for .c/no ext)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fc="/></OPTION><OPTION NAME="--cpp_file=" DESC="File is a C++ file (default for .C .cpp .cc)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fp="/></OPTION><OPTION NAME="--obj_file=" DESC="File is an object file (default for .obj)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fo="/></OPTION><!-- Directory Specifier Options --><OPTION NAME="--abs_directory=" DESC="Absolute listing directory (default is .obj dir)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fb="/></OPTION><OPTION NAME="--asm_directory=" DESC="Assembly file directory (default is .)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fs="/></OPTION><OPTION NAME="--list_directory=" DESC="Listing/xref file directory (default is .obj dir)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ff="/></OPTION><OPTION NAME="--obj_directory=" DESC="Object file directory (default is .)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fr="/></OPTION><OPTION NAME="--temp_directory=" DESC="Temporary file directory (default is .)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ft="/></OPTION><!-- Default File Extensions Options --><OPTION NAME="--asm_extension=" DESC="Extension for assembly files (default is .asm)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ea="/></OPTION><OPTION NAME="--c_extension=" DESC="Extension for C files (default is .c)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ec="/></OPTION><OPTION NAME="--cpp_extension=" DESC="Extension for C++ files (default is .cpp)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-ep="/></OPTION><OPTION NAME="--listing_extension=" DESC="Extension for listing files (default is .lst)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-es="/></OPTION><OPTION NAME="--obj_extension=" DESC="Extension for object files (default is .obj)" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-eo="/></OPTION><!-- Command Files Options --><OPTION NAME="--cmd_file=" DESC="Read options from specified file" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-@="/></OPTION><!-- Linking section --><!--The following Linker options can be specified following the -zoption. Linking is only enabled if -z is used and -c is not:--><OPTION NAME="" DESC="Linker script" PARAM="STRING" ID="LKR" ADVANCED="1"/><!-- Command File Preprocessing Options --><OPTION NAME="--disable_pp" DESC="Don't use C preprocessor for command files" ADVANCED="1"/><OPTION NAME="--undefine=" DESC="[name] Undefine preprocessor macro _name_" PARAM="STRING"/><!-- Diagnostics Options --><OPTION NAME="--no_demangle" DESC="Don't demangle symbol names in diagnostics" ADVANCED="1"/><OPTION NAME="--warn_sections" DESC="Warn if an unspecified output section is created" ADVANCED="1"><ALIAS NAME="-w"/></OPTION><OPTION NAME="--diag_error=" DESC="[id] Treat diagnostic id as error" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--diag_remark=" DESC="[id] Treat diagnostic id as remark" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--diag_suppress=" DESC="[id] Suppress diagnostic id" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--diag_warning=" DESC="[id] Treat diagnostic id as warning" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--display_error_number" DESC="Emit diagnostic identifier numbers" ADVANCED="1"/><OPTION NAME="--issue_remarks" DESC="Issue remarks" ADVANCED="1"/><OPTION NAME="--no_warnings" DESC="Suppress warnings" ADVANCED="1"/><OPTION NAME="--set_error_limit=" DESC="[count] Set error limit to count" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--verbose_diagnostics" DESC="Verbose diagnostics" ADVANCED="1"/><!-- File Search Path Options --><OPTION NAME="-l" DESC="Include library file or command file as input" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="--library="/></OPTION><OPTION NAME="-i" DESC="Add <dir> to library search path" PARAM="STRING" MULTIPLE="1"><ALIAS NAME="--search_path="/></OPTION><OPTION NAME="--disable_auto_rts" DESC="Disable automatic RTS selection" ADVANCED="1"/><OPTION NAME="--priority" DESC="Search libraries in priority order" ADVANCED="1"><ALIAS NAME="-priority"/></OPTION><OPTION NAME="--reread_libs" DESC="Reread libraries; resolve backward references" ADVANCED="1"><ALIAS NAME="-x"/></OPTION><!-- Linker Output Options --><OPTION NAME="--output_file=" DESC="Specify output file name" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-o "/></OPTION><OPTION NAME="--map_file=" DESC="Input and output sections listed into <file>" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-m="/></OPTION><OPTION NAME="--absolute_exe" DESC="Produce absolute executable object file (default)" ADVANCED="1"><ALIAS NAME="-a"/></OPTION><OPTION NAME="--generate_dead_funcs_list=" DESC="[fname] List removed dead functions into file" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--mapfile_contents=" DESC="Display attribute settings in map file" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--relocatable" DESC="Produce a relocatable output module" ADVANCED="1"><ALIAS NAME="-r"/></OPTION><OPTION NAME="--run_abs" DESC="Produce absolute listing file" ADVANCED="1"><ALIAS NAME="-abs"/></OPTION><OPTION NAME="--xml_link_info=" DESC="[fname]Detailed link information data-base into <file>" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-xml_link_info="/></OPTION><!-- Symbol Management Options --><OPTION NAME="--entry_point=" DESC="Specify program entry point for the output module" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-e="/></OPTION><OPTION NAME="--globalize=" DESC="Do not localize symbols matching pattern" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--hide=" DESC="Hide symbols matching pattern" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--localize=" DESC="Make the symbols matching pattern local" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--make_global=" DESC="Don't make global symbol static if -h is specified" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-g="/></OPTION><OPTION NAME="--make_static" DESC="Make all global symbols static" ADVANCED="1"><ALIAS NAME="-h"/></OPTION><OPTION NAME="--no_sym_merge" DESC="No type merging in symbolic debugging information" ADVANCED="1"><ALIAS NAME="-b"/></OPTION><OPTION NAME="--no_symtable" DESC="Strip symbol table and line number entries" ADVANCED="1"><ALIAS NAME="-s"/></OPTION><OPTION NAME="--scan_libraries" DESC="Scan libraries for duplicate symbol definitions" ADVANCED="1"><ALIAS NAME="-scanlibs"/></OPTION><OPTION NAME="--symbol_map=" DESC="Specify a symbol map, mapping refname to defname: refname=defname" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--undef_sym=" DESC=" Add <sym> to symbol table as an unresolved symbol" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-u="/></OPTION><OPTION NAME="--unhide=" DESC="Exclude symbols matching pattern from hinding" PARAM="STRING" ADVANCED="1"/><!-- Runtime Environment Options --><OPTION NAME="--heap_size=" DESC="Heap size for C/C++ dynamic memory allocation" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-heap="/><ALIAS NAME="--heap="/></OPTION><OPTION NAME="--stack_size=" DESC="Set C system stack size" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-stack="/><ALIAS NAME="--stack="/></OPTION><OPTION NAME="--far_heapsize=" DESC="Specify heap size in far (extended) memory" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-farheap="/></OPTION><OPTION NAME="--arg_size=" DESC="Set C argc/argv memory size" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-args="/></OPTION><OPTION NAME="--fill_value=" DESC="Default fill value for holes in output sections" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-f="/></OPTION><OPTION NAME="--ram_model" DESC="Link using RAM autoinitialization model" ADVANCED="1"><ALIAS NAME="-cr"/></OPTION><OPTION NAME="--rom_model" DESC="Link using ROM autoinitialization model" ADVANCED="1"><ALIAS NAME="-c"/></OPTION><!-- Linktime Optimization Options --><OPTION NAME="--no_postlink_across_calls" DESC="Disable post-link optimizations across functions" ADVANCED="1"><ALIAS NAME="-nf"/></OPTION><OPTION NAME="--postlink_exclude" DESC="Exclude files from post-link pass" ADVANCED="1"><ALIAS NAME="-ex"/></OPTION><OPTION NAME="--postlink_opt" DESC="Post-link optimizations (only after -z)" ADVANCED="1"><ALIAS NAME="-plink"/></OPTION><!-- Miscellaneous Options --><OPTION NAME="--disable_clink" DESC="Disable conditional linking and ignore .clink" ADVANCED="1"><ALIAS NAME="-j"/></OPTION><OPTION NAME="--linker_help" DESC="Display usage information" ADVANCED="1"><ALIAS NAME="-help"/><ALIAS NAME="--help"/></OPTION><OPTION NAME="--preferred_order=" DESC="Add <function> to preferred placement order list" PARAM="STRING" ADVANCED="1"/><OPTION NAME="--strict_compatibility=" DESC="Strict compatibility checking" PARAM="CHOICE" ADVANCED="1"><PARAM VALUE="on" DEFAULT="1"/><PARAM VALUE="off"/></OPTION></TOOL><TOOL NAME="BIN2HEX" FILE="hex2000.exe"><OPTION NAME="--byte" DESC="Output as bytes rather than target addressing" ADVANCED="1"><ALIAS NAME="-byte"/></OPTION><OPTION NAME="--entrypoint=" DESC="Specify entrypoint address or symbol name" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-e="/></OPTION><OPTION NAME="--exclude=" DESC="Exclude section from hex conversion" PARAM="STRING" MULTIPLE="1" ADVANCED="1"><ALIAS NAME="-exclude="/></OPTION><OPTION NAME="--fill=" DESC="Specify fill value" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-fill="/></OPTION><OPTION NAME="--image" DESC="Select image mode" ADVANCED="1"><ALIAS NAME="image"/></OPTION><OPTION NAME="--linkerfill" DESC="Include linker fill sections in images" ADVANCED="1"><ALIAS NAME="-linkerfill"/></OPTION><OPTION NAME="--map=" DESC="Specify map file name" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-map="/></OPTION><OPTION NAME="--memwidth=" DESC="Specify memory width" PARAM="STRING"><ALIAS NAME="-memwidth="/></OPTION><OPTION NAME="--olength=" DESC="Number of data items per line of hex output" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-olength="/></OPTION><OPTION NAME="--order=" DESC="Specify data ordering (endianness)" PARAM="CHOICE" ADVANCED="1"><ALIAS NAME="-order="/><PARAM VALUE="LS" DEFAULT="1"/><PARAM VALUE="MS"/></OPTION><OPTION NAME="--quiet" DESC="Quiet Operation" ADVANCED="1"><ALIAS NAME="-quiet"/><ALIAS NAME="-q"/></OPTION><OPTION NAME="--romwidth=" DESC="Specify rom width" PARAM="NUMBER" ADVANCED="1"><ALIAS NAME="-romwidth="/></OPTION><OPTION NAME="--swapbytes" DESC="Swap output bytes for 16byte memwidth" ADVANCED="1"><ALIAS NAME="-sb"/></OPTION><OPTION NAME="--zero" DESC="Zero based addressing" ADVANCED="1"><ALIAS NAME="-zero"/><ALIAS NAME="-z"/></OPTION><OPTION NAME="--diag_error=" DESC="Treat diagnostic (id) as error" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--diag_remark=" DESC="Treat diagnostic (id) as remark" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--diag_suppress=" DESC="Suppress diagnostic (id)" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--diag_warning=" DESC="Treat diagnostic (id) as warning" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--display_error_number" DESC="Emit diagnostic identifier numbers" ADVANCED="1"/><OPTION NAME="--emit_warnings_as_errors" DESC="Treat warnings as errors" ADVANCED="1"><ALIAS NAME="-pdew"/></OPTION><OPTION NAME="--issue_remarks" DESC="Issue remarks" ADVANCED="1"/><OPTION NAME="--no_warnings" DESC="Suppress warnings" ADVANCED="1"/><OPTION NAME="--set_error_limit=" DESC="count Set error limit to (count)" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/><OPTION NAME="--boot" DESC="Select boot mode" ADVANCED="1"><ALIAS NAME="-boot"/></OPTION><OPTION NAME="--bootorg=" DESC="Specify origin address or symbol of boot table ROM" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-bootorg="/></OPTION><OPTION NAME="--divsel=" DESC="Specify the initial value for the DIVSEL register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-divsel="/></OPTION><OPTION NAME="--gpio16" DESC="Specify table source as the GP I/O port, 16-bit mode" ADVANCED="1"><ALIAS NAME="-gpio16"/></OPTION><OPTION NAME="--gpio8" DESC="Specify table source as the GP I/O port, 8-bit mode" ADVANCED="1"><ALIAS NAME="-gpio8"/><ALIAS NAME="-can8"/></OPTION><OPTION NAME="--i2c8" DESC="Specify I2C port as source of boot table loader" ADVANCED="1"><ALIAS NAME="-i2c8"/></OPTION><OPTION NAME="--i2cclkh=" DESC="Specify the initial value for I2CCLKH register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-i2cclkh="/></OPTION><OPTION NAME="--i2cclkl=" DESC="Specify the initial value for the I2CCLKL register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-i2cclkl="/></OPTION><OPTION NAME="--i2cpsc=" DESC="Specify the initial value for I2CPSC register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-i2cpsc="/></OPTION><OPTION NAME="--lospcp=" DESC="Specify the initial value for the LOSPCP register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-lospcp="/></OPTION><OPTION NAME="--pllcr=" DESC="Specify the initial value for the PLLCR register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-pllcr="/></OPTION><OPTION NAME="--sci8" DESC="Specify table source as the SCI-A port, 8-bit mode" ADVANCED="1"><ALIAS NAME="-sci8"/></OPTION><OPTION NAME="--spi8" DESC="Specify table source as the SPI-A port, 8-bit mode" ADVANCED="1"><ALIAS NAME="-spi8"/></OPTION><OPTION NAME="--spibrr=" DESC="Specify the initial value for the SPIBRR register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-spibrr="/></OPTION><OPTION NAME="--xintcnf2=" DESC="Specify the initial value for the XINTCNF2 register" PARAM="STRING" ADVANCED="1"><ALIAS NAME="--xintcnf2="/></OPTION><OPTION NAME="--xintf16" DESC="Specify parallel XINTF stream, 16-bit mode" ADVANCED="1"><ALIAS NAME="-xintf16"/></OPTION><OPTION NAME="--xintf8" DESC="Specify parallel XINTF stream, 8-bit mode" ADVANCED="1"><ALIAS NAME="-xintf8"/></OPTION><OPTION NAME="--xtiming=" DESC="Specify the initial value for the XTIMING" PARAM="STRING" ADVANCED="1"><ALIAS NAME="-xtiming="/></OPTION><OPTION NAME="--ascii" DESC="Output ASCII hex format" ADVANCED="1"><ALIAS NAME="-a"/></OPTION><OPTION NAME="--binary" DESC="Binary output format (for DSKs)" ADVANCED="1"><ALIAS NAME="-b"/></OPTION><OPTION NAME="--intel" DESC="Output Intel hex format"><ALIAS NAME="-i"/></OPTION><OPTION NAME="--motorola" DESC="[=1,2,3] Output Motorola S hex format" PARAM="STRING" MULTIPLE="1" ADVANCED="1"><ALIAS NAME="-m"/></OPTION><OPTION NAME="--tektronix" DESC="Output Extended Tektronix hex format" ADVANCED="1"><ALIAS NAME="-x"/></OPTION><OPTION NAME="--ti_tagged" DESC="Output TI-Tagged hex format" ADVANCED="1"><ALIAS NAME="-t"/></OPTION><OPTION NAME="--ti_txt" DESC="Output TI-TXT hex format" ADVANCED="1"/><OPTION NAME="--load_image" DESC="Output Load Image Object format" ADVANCED="1"/><OPTION NAME="--section_name_prefix=" DESC="Prefix for load image object sections" PARAM="STRING" MULTIPLE="1" ADVANCED="1"/></TOOL><!-- Available controllers for this compiler --><FAMILY NAME="PICCOLO"><TEMPLATE NAME="INCFILE" VALUE="DSP28x_Project.h"/><CONTROLLER NAME="TMS320F28027DA"><SOURCE NAME="F28027.cmd" FROM="cc-piccolo/link/F28027.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28027DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28027PT"><SOURCE NAME="F28027.cmd" FROM="cc-piccolo/link/F28027.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28027PT=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28026DA"><SOURCE NAME="F28026.cmd" FROM="cc-piccolo/link/F28026.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28026DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28026PT"><SOURCE NAME="F28026.cmd" FROM="cc-piccolo/link/F28026.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28026PT=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28023DA"><SOURCE NAME="F28023.cmd" FROM="cc-piccolo/link/F28023.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28023DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28023PT"><SOURCE NAME="F28023.cmd" FROM="cc-piccolo/link/F28023.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28023PT=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28022DA"><SOURCE NAME="F28022.cmd" FROM="cc-piccolo/link/F28022.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28022DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28022PT"><SOURCE NAME="F28022.cmd" FROM="cc-piccolo/link/F28022.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28022PT=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28021DA"><SOURCE NAME="F28021.cmd" FROM="cc-piccolo/link/F28021.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28021DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28021PT"><SOURCE NAME="F28021.cmd" FROM="cc-piccolo/link/F28021.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28021PT=1"/></CONTROLLER><CONTROLLER NAME="TMS320F280200DA"><SOURCE NAME="F280200.cmd" FROM="cc-piccolo/link/F280200.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_280200DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F280200PT"><SOURCE NAME="F280200.cmd" FROM="cc-piccolo/link/F280200.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_280200PT=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28020DA"><SOURCE NAME="F28020.cmd" FROM="cc-piccolo/link/F28020.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28020DA=1"/></CONTROLLER><CONTROLLER NAME="TMS320F28020PT"><SOURCE NAME="F28020.cmd" FROM="cc-piccolo/link/F28020.cmd"/><OPTION TOOL="CC" NAME="--define=" VALUE="DSP28_28020PT=1"/></CONTROLLER></FAMILY><!-- Compiler Detection --><DETECT PATH="c:/ti/ccs%*%/ccs/tools/compiler/ti-cgt-c2000%*%" SUF="bin/cl2000.exe" ARG="" STR="TMS320C2000"/><DETECT PATH="c:/ti/ccsv6/tools/compiler" SUF="bin/cl2000.exe" ARG="" STR="TMS320C2000" DATE="2009-11-17"/><DETECT PATH="c:/ti/ccsv5/tools/compiler/c2000" SUF="bin/cl2000.exe" ARG="" STR="TMS320C2000" DATE="2009-11-17"/><DETECT PATH="%PROGRAMFILES%/Texas Instruments/ccsv4/tools/compiler/c2000" SUF="bin/cl2000.exe" ARG="" STR="TMS320C2000" DATE="2009-11-17"/><PATH ADD="%COMPILER_DIR%/bin"/><!-- File Types --><FILE NAME="c" DESC="C Source" CATEGORY="Source" SOURCE="1" ICON="project_c.png"/><FILE NAME="cpp" DESC="C++ Source" CATEGORY="Source" SOURCE="1" ICON="project_c++.png"/><FILE NAME="asm" DESC="Assembler Source" CATEGORY="Source" SOURCE="1" ICON="project_assembly.png"/><FILE NAME="h" DESC="C Include" CATEGORY="Header" SOURCE="1" ICON="project_header.png"/><FILE NAME="cmd" DESC="Linker Script" CATEGORY="Linker Script" SOURCE="1" ICON="project_other.png"/><!--FILE NAME="asm" DESC="Assembler Source" />--><FILE NAME="obj" DESC="Object" CATEGORY="Firmware Binary" FIRMWARE="1"/><FILE NAME="cof" DESC="COF" CATEGORY="Firmware Binary" FIRMWARE="1"/><!-- Compiler and assembler --><PROCESS TOOL="CC" NAME="C Compiler" CMDLINE="$(CC) %OPTIONS% $(CCFLAGS) %INFILE_QUOTED% --output_file=%OUTFILE_QUOTED%"><FILE OUTPUT="obj"><FILE INPUT="c"/><FILE INPUT="cpp"/><FILE INPUT="asm"/></FILE><OPTION NAME="-c"/><OPTION NAME="-ml"/><OPTION NAME="--define=" VALUE="_DEBUG"/><OPTION NAME="--define=" VALUE="LARGE_MODEL"/><OPTION NAME="--symdebug:" VALUE="dwarf"/><OPTION NAME="--include_path=" VALUE=""%COMPILER_ABS_DIR%/include""/><OPTION NAME="--include_path=" VALUE=""%COMPILER_ABS_DIR%/../../../C2000/include""/><OPTION NAME="--include_path=" VALUE=""%CONFIG_ABS_DIR%/cc-piccolo/inc""/><OPTION NAME="--fp_reassoc=" VALUE="off"/><OPTION NAME="--sat_reassoc=" VALUE="off"/><OPTION NAME="--keep_unneeded_statics"/><OPTION NAME="--silicon_version=" VALUE="28"/><MESSAGE VALUE="^"(.+)".*line\D*(\d+):.*(error|warning|message):.+$"><FIELD NAME="FILENAME" POSITION="1"/><FIELD NAME="LINE" POSITION="2" OFFSET="-1"/></MESSAGE></PROCESS><!-- Linker --><PROCESS TOOL="LD" NAME="Linker" CMDLINE="$(LD) %OPTIONS% $(LDFLAGS) -o %OUTFILE_QUOTED% %INFILES_QUOTED% "><FILE OUTPUT="cof"/><FILE INPUT="obj"/><FILE INPUT="CMD" OPTION="LKR"/><OPTION NAME="-z"/><OPTION NAME="--rom_model"/><OPTION NAME="--reread_libs"/><OPTION NAME="--rom_model"/><OPTION NAME="--warn_sections"/><OPTION NAME="--stack_size=" VALUE="0x300"/><OPTION NAME="-i" VALUE=""%COMPILER_ABS_DIR%/lib""/><OPTION NAME="-i" VALUE=""%CONFIG_ABS_DIR%/cc-piccolo/lib""/><OPTION NAME="" VALUE=""%CONFIG_ABS_DIR%/cc-piccolo/link/DSP2802x_Headers_nonBIOS.cmd""/><MESSAGE VALUE="^"(.+)".*line\D*(\d+):.*(error|warning|message):.+$"><FIELD NAME="FILENAME" POSITION="1"/><FIELD NAME="LINE" POSITION="2" OFFSET="-1"/></MESSAGE></PROCESS><!-- Bin2Hex --><PROCESS TOOL="BIN2HEX" NAME="Bin2hex" CMDLINE="$(BIN2HEX) $(BIN2HEXFLAGS) -o %OUTFILE_QUOTED% %INFILE_QUOTED% "><FILE OUTPUT="hex"/><FILE INPUT="cof"/><OPTION NAME="--memwidth=" VALUE="8"/><OPTION NAME="--intel"/></PROCESS><!-- Compilation Targets --><TARGET NAME="Debug"><FILE OUTPUT="cof"/></TARGET><TARGET NAME="Release"><FILE OUTPUT="hex"/><POSTPROCESS CMDLINE="cp "%OUTFILE%" "%SOLUTION_ABS_DIR%/%PROJECT_NAME%.%OUTFILE_TYPE%""/></TARGET><SOURCE NAME="main.c" FROM="intmain.c" OPEN="1"/></COMPILER>
123version https://git-lfs.github.com/spec/v1oid sha256:00f2b9c90eff1d1352d70ccb0efcc3189109af0aa2bf1ef13e449df5bca949a9size 17270123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389// TI File $Revision: /main/7 $// Checkin $Date: December 21, 2010 13:59:36 $//###########################################################################//// FILE: DSP2802x_Adc.h//// TITLE: DSP2802x Device ADC Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_ADC_H#define DSP2802x_ADC_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// ADC Individual Register Bit Definitions:struct ADCCTL1_BITS { // bits descriptionUint16 TEMPCONV:1; // 0 Temperature sensor connectionUint16 VREFLOCONV:1; // 1 VSSA connectionUint16 INTPULSEPOS:1; // 2 INT pulse generation controlUint16 ADCREFSEL:1; // 3 Internal/external reference selectUint16 rsvd1:1; // 4 reservedUint16 ADCREFPWD:1; // 5 Reference buffers powerdownUint16 ADCBGPWD:1; // 6 ADC bandgap powerdownUint16 ADCPWDN:1; // 7 ADC powerdownUint16 ADCBSYCHN:5; // 12:8 ADC busy on a channelUint16 ADCBSY:1; // 13 ADC busy signalUint16 ADCENABLE:1; // 14 ADC enableUint16 RESET:1; // 15 ADC master reset};union ADCCTL1_REG {Uint16 all;struct ADCCTL1_BITS bit;};// This register is not supported in Rev. 0 silicon.struct ADCCTL2_BITS { // bits descriptionUint16 CLKDIV2EN:1; // 0 ADC input clock /2 enableUint16 ADCNONOVERLAP:1; // 1 ADCNONOVERLAP Control bitUint16 rsvd1:14; // 15:2 reserved};union ADCCTL2_REG {Uint16 all;struct ADCCTL2_BITS bit;};struct ADCINT_BITS { // bits descriptionUint16 ADCINT1:1; // 0 ADC Interrupt Flag 1Uint16 ADCINT2:1; // 1 ADC Interrupt Flag 2Uint16 ADCINT3:1; // 2 ADC Interrupt Flag 3Uint16 ADCINT4:1; // 3 ADC Interrupt Flag 4Uint16 ADCINT5:1; // 4 ADC Interrupt Flag 5Uint16 ADCINT6:1; // 5 ADC Interrupt Flag 6Uint16 ADCINT7:1; // 6 ADC Interrupt Flag 7Uint16 ADCINT8:1; // 7 ADC Interrupt Flag 8Uint16 ADCINT9:1; // 8 ADC Interrupt Flag 9Uint16 rsvd1:7; // 15:9 reserved};union ADCINT_REG {Uint16 all;struct ADCINT_BITS bit;};struct INTSEL1N2_BITS { // bits descriptionUint16 INT1SEL:5; // 4:0 INTx EOC Source SelectUint16 INT1E:1; // 5 INTx Interrupt EnableUint16 INT1CONT:1; // 6 INTx Continuous Mode EnableUint16 rsvd1:1; // 7 reservedUint16 INT2SEL:5; // 12:8 INTy EOC Source SelectUint16 INT2E:1; // 13 INTy Interrupt EnableUint16 INT2CONT:1; // 14 INTy Continuous Mode EnableUint16 rsvd2:1; // 15 reserved};union INTSEL1N2_REG {Uint16 all;struct INTSEL1N2_BITS bit;};struct INTSEL3N4_BITS { // bits descriptionUint16 INT3SEL:5; // 4:0 INTx EOC Source SelectUint16 INT3E:1; // 5 INTx Interrupt EnableUint16 INT3CONT:1; // 6 INTx Continuous Mode EnableUint16 rsvd1:1; // 7 reservedUint16 INT4SEL:5; // 12:8 INTy EOC Source SelectUint16 INT4E:1; // 13 INTy Interrupt EnableUint16 INT4CONT:1; // 14 INTy Continuous Mode EnableUint16 rsvd2:1; // 15 reserved};union INTSEL3N4_REG {Uint16 all;struct INTSEL3N4_BITS bit;};struct INTSEL5N6_BITS { // bits descriptionUint16 INT5SEL:5; // 4:0 INTx EOC Source SelectUint16 INT5E:1; // 5 INTx Interrupt EnableUint16 INT5CONT:1; // 6 INTx Continuous Mode EnableUint16 rsvd1:1; // 7 reservedUint16 INT6SEL:5; // 12:8 INTy EOC Source SelectUint16 INT6E:1; // 13 INTy Interrupt EnableUint16 INT6CONT:1; // 14 INTy Continuous Mode EnableUint16 rsvd2:1; // 15 reserved};union INTSEL5N6_REG {Uint16 all;struct INTSEL5N6_BITS bit;};struct INTSEL7N8_BITS { // bits descriptionUint16 INT7SEL:5; // 4:0 INTx EOC Source SelectUint16 INT7E:1; // 5 INTx Interrupt EnableUint16 INT7CONT:1; // 6 INTx Continuous Mode EnableUint16 rsvd1:1; // 7 reservedUint16 INT8SEL:5; // 12:8 INTy EOC Source SelectUint16 INT8E:1; // 13 INTy Interrupt EnableUint16 INT8CONT:1; // 14 INTy Continuous Mode EnableUint16 rsvd2:1; // 15 reserved};union INTSEL7N8_REG {Uint16 all;struct INTSEL7N8_BITS bit;};struct INTSEL9N10_BITS { // bits descriptionUint16 INT9SEL:5; // 4:0 INTx EOC Source SelectUint16 INT9E:1; // 5 INTx Interrupt EnableUint16 INT9CONT:1; // 6 INTx Continuous Mode EnableUint16 rsvd1:1; // 7 reservedUint16 INT10SEL:5; // 12:8 INTy EOC Source SelectUint16 INT10E:1; // 13 INTy Interrupt EnableUint16 INT10CONT:1; // 14 INTy Continuous Mode EnableUint16 rsvd2:1; // 15 reserved};union INTSEL9N10_REG {Uint16 all;struct INTSEL9N10_BITS bit;};struct SOCPRICTL_BITS { // bits descriptionUint16 SOCPRIORITY:5; // 4:0 Start-of-conversion PriorityUint16 RRPOINTER:6; // 10:5 Round Robin PointerUint16 rsvd1:4; // 14:11 reservedUint16 ONESHOT:1; // 15 One Shot Mode Enabled - bit does not exist in Rev. 0 silicon};union SOCPRICTL_REG {Uint16 all;struct SOCPRICTL_BITS bit;};struct ADCSAMPLEMODE_BITS { // bits descriptionUint16 SIMULEN0:1; // 0 SOC0 Simultaneous Sampling EnableUint16 SIMULEN2:1; // 1 SOC2 Simultaneous Sampling EnableUint16 SIMULEN4:1; // 2 SOC4 Simultaneous Sampling EnableUint16 SIMULEN6:1; // 3 SOC6 Simultaneous Sampling EnableUint16 SIMULEN8:1; // 4 SOC8 Simultaneous Sampling EnableUint16 SIMULEN10:1; // 5 SOC10 Simultaneous Sampling EnableUint16 SIMULEN12:1; // 6 SOC12 Simultaneous Sampling EnableUint16 SIMULEN14:1; // 7 SOC14 Simultaneous Sampling EnableUint16 rsvd1:8; //15:8 reserved};union ADCSAMPLEMODE_REG {Uint16 all;struct ADCSAMPLEMODE_BITS bit;};struct ADCINTSOCSEL1_BITS { // bits descriptionUint16 SOC0:2; // 1:0 ADCINT Start-of-conversion SelectUint16 SOC1:2; // 3:2 ADCINT Start-of-conversion SelectUint16 SOC2:2; // 5:4 ADCINT Start-of-conversion SelectUint16 SOC3:2; // 7:6 ADCINT Start-of-conversion SelectUint16 SOC4:2; // 9:8 ADCINT Start-of-conversion SelectUint16 SOC5:2; // 11:10 ADCINT Start-of-conversion SelectUint16 SOC6:2; // 13:12 ADCINT Start-of-conversion SelectUint16 SOC7:2; // 15:14 ADCINT Start-of-conversion Select};union ADCINTSOCSEL1_REG {Uint16 all;struct ADCINTSOCSEL1_BITS bit;};struct ADCINTSOCSEL2_BITS { // bits descriptionUint16 SOC8:2; // 1:0 ADCINT Start-of-conversion SelectUint16 SOC9:2; // 3:2 ADCINT Start-of-conversion SelectUint16 SOC10:2; // 5:4 ADCINT Start-of-conversion SelectUint16 SOC11:2; // 7:6 ADCINT Start-of-conversion SelectUint16 SOC12:2; // 9:8 ADCINT Start-of-conversion SelectUint16 SOC13:2; // 11:10 ADCINT Start-of-conversion SelectUint16 SOC14:2; // 13:12 ADCINT Start-of-conversion SelectUint16 SOC15:2; // 15:14 ADCINT Start-of-conversion Select};union ADCINTSOCSEL2_REG {Uint16 all;struct ADCINTSOCSEL2_BITS bit;};struct ADCSOC_BITS { // bits descriptionUint16 SOC0:1; // 0 Start-of-conversion for CONV0Uint16 SOC1:1; // 1 Start-of-conversion for CONV1Uint16 SOC2:1; // 2 Start-of-conversion for CONV2Uint16 SOC3:1; // 3 Start-of-conversion for CONV3Uint16 SOC4:1; // 4 Start-of-conversion for CONV4Uint16 SOC5:1; // 5 Start-of-conversion for CONV5Uint16 SOC6:1; // 6 Start-of-conversion for CONV6Uint16 SOC7:1; // 7 Start-of-conversion for CONV7Uint16 SOC8:1; // 8 Start-of-conversion for CONV8Uint16 SOC9:1; // 9 Start-of-conversion for CONV9Uint16 SOC10:1; // 10 Start-of-conversion for CONV10Uint16 SOC11:1; // 11 Start-of-conversion for CONV11Uint16 SOC12:1; // 12 Start-of-conversion for CONV12Uint16 SOC13:1; // 13 Start-of-conversion for CONV13Uint16 SOC14:1; // 14 Start-of-conversion for CONV14Uint16 SOC15:1; // 15 Start-of-conversion for CONV15};union ADCSOC_REG {Uint16 all;struct ADCSOC_BITS bit;};struct ADCSOCxCTL_BITS { // bits descriptionUint16 ACQPS:6; // 5:0 Acquisition Pulse SizeUint16 CHSEL:4; // 9:6 SOCx Channel SelectUint16 rsvd1:1; // 10 reservedUint16 TRIGSEL:5; // 15:11 SOCx Trigger Select};union ADCSOCxCTL_REG {Uint16 all;struct ADCSOCxCTL_BITS bit;};// Rev. 0 silicon - BG_FINE_TRIM = bits 3:0.// BG_COARSE_TRIM = bits : 8:4// Rev. A and beyond silicon = below register definition:struct ADCREFTRIM_BITS{ // bits descriptionUint16 BG_FINE_TRIM:5; // 4:0 Coarse trim for internal BGUint16 BG_COARSE_TRIM:4; // 8:5 Fine trim for internal BGUint16 EXTREF_FINE_TRIM:5; // 13:9 Fine trim for external referenceUint16 rsvd1:2; // 15:14 reserved};union ADCREFTRIM_REG{Uint16 all;struct ADCREFTRIM_BITS bit;};struct ADCOFFTRIM_BITS{ // bits descriptionint16 OFFTRIM:9; // 8:0 Offset TrimUint16 rsvd1:7; // 15:9 reserved};union ADCOFFTRIM_REG{Uint16 all;struct ADCOFFTRIM_BITS bit;};struct COMPHYSTCTL_BITS{ // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 COMP1_HYST_DISABLE:1; // 1 Comparator 1 Hysteresis DisableUint16 rsvd2:4; // 5:2 reservedUint16 COMP2_HYST_DISABLE:1; // 6 Comparator 2 Hysteresis DisableUint16 rsvd3:10; // 15:7 reserved};union COMPHYSTCTL_REG{Uint16 all;struct COMPHYSTCTL_BITS bit;};//---------------------------------------------------------------------------// ADC Register Definitions:struct ADC_REGS {union ADCCTL1_REG ADCCTL1; // ADC Control 1union ADCCTL2_REG ADCCTL2; // ADC Control 2 - not available in Rev. 0 siliconUint16 rsvd1[2]; // reservedunion ADCINT_REG ADCINTFLG; // ADC Interrupt Flagunion ADCINT_REG ADCINTFLGCLR; // ADC Interrupt Flag Clearunion ADCINT_REG ADCINTOVF; // ADC Interrupt Overflowunion ADCINT_REG ADCINTOVFCLR; // ADC Interrupt Overflow Clearunion INTSEL1N2_REG INTSEL1N2; // ADC Interrupt 1 and 2 Selectionunion INTSEL3N4_REG INTSEL3N4; // ADC Interrupt 3 and 4 Selectionunion INTSEL5N6_REG INTSEL5N6; // ADC Interrupt 5 and 6 Selectionunion INTSEL7N8_REG INTSEL7N8; // ADC Interrupt 7 and 8 Selectionunion INTSEL9N10_REG INTSEL9N10; // ADC Interrupt 9 and 10 SelectionUint16 rsvd2[3]; // reservedunion SOCPRICTL_REG SOCPRICTL; // ADC SOC Priority ControlUint16 rsvd3; // reservedunion ADCSAMPLEMODE_REG ADCSAMPLEMODE; // ADC Sampling ModeUint16 rsvd4; // reservedunion ADCINTSOCSEL1_REG ADCINTSOCSEL1; // ADC Interrupt SOC Selection 1union ADCINTSOCSEL2_REG ADCINTSOCSEL2; // ADC Interrupt SOC Selection 2Uint16 rsvd5[2]; // reservedunion ADCSOC_REG ADCSOCFLG1; // ADC SOC Flag 1Uint16 rsvd6; // reservedunion ADCSOC_REG ADCSOCFRC1; // ADC SOC Flag Force 1Uint16 rsvd7; // reservedunion ADCSOC_REG ADCSOCOVF1; // ADC SOC Overflow 1Uint16 rsvd8; // reservedunion ADCSOC_REG ADCSOCOVFCLR1; // ADC SOC Overflow Clear 1Uint16 rsvd9; // reservedunion ADCSOCxCTL_REG ADCSOC0CTL; // ADC SOC0 Controlunion ADCSOCxCTL_REG ADCSOC1CTL; // ADC SOC1 Controlunion ADCSOCxCTL_REG ADCSOC2CTL; // ADC SOC2 Controlunion ADCSOCxCTL_REG ADCSOC3CTL; // ADC SOC3 Controlunion ADCSOCxCTL_REG ADCSOC4CTL; // ADC SOC4 Controlunion ADCSOCxCTL_REG ADCSOC5CTL; // ADC SOC5 Controlunion ADCSOCxCTL_REG ADCSOC6CTL; // ADC SOC6 Controlunion ADCSOCxCTL_REG ADCSOC7CTL; // ADC SOC7 Controlunion ADCSOCxCTL_REG ADCSOC8CTL; // ADC SOC8 Controlunion ADCSOCxCTL_REG ADCSOC9CTL; // ADC SOC9 Controlunion ADCSOCxCTL_REG ADCSOC10CTL; // ADC SOC10 Controlunion ADCSOCxCTL_REG ADCSOC11CTL; // ADC SOC11 Controlunion ADCSOCxCTL_REG ADCSOC12CTL; // ADC SOC12 Controlunion ADCSOCxCTL_REG ADCSOC13CTL; // ADC SOC13 Controlunion ADCSOCxCTL_REG ADCSOC14CTL; // ADC SOC14 Controlunion ADCSOCxCTL_REG ADCSOC15CTL; // ADC SOC15 ControlUint16 rsvd10 [16]; // reservedunion ADCREFTRIM_REG ADCREFTRIM; // Reference Trim Registerunion ADCOFFTRIM_REG ADCOFFTRIM; // Offset Trim RegisterUint16 rsvd11 [10]; // reservedunion COMPHYSTCTL_REG COMPHYSTCTL; // COMP Hysteresis Control RegisterUint16 rsvd12 [3]; // reserved};struct ADC_RESULT_REGS{Uint16 ADCRESULT0; // Conversion Result Buffer 0Uint16 ADCRESULT1; // Conversion Result Buffer 1Uint16 ADCRESULT2; // Conversion Result Buffer 2Uint16 ADCRESULT3; // Conversion Result Buffer 3Uint16 ADCRESULT4; // Conversion Result Buffer 4Uint16 ADCRESULT5; // Conversion Result Buffer 5Uint16 ADCRESULT6; // Conversion Result Buffer 6Uint16 ADCRESULT7; // Conversion Result Buffer 7Uint16 ADCRESULT8; // Conversion Result Buffer 8Uint16 ADCRESULT9; // Conversion Result Buffer 9Uint16 ADCRESULT10; // Conversion Result Buffer 10Uint16 ADCRESULT11; // Conversion Result Buffer 11Uint16 ADCRESULT12; // Conversion Result Buffer 12Uint16 ADCRESULT13; // Conversion Result Buffer 13Uint16 ADCRESULT14; // Conversion Result Buffer 14Uint16 ADCRESULT15; // Conversion Result Buffer 15Uint16 rsvd[16]; // reserved};//---------------------------------------------------------------------------// ADC External References & Function Declarations://extern volatile struct ADC_REGS AdcRegs;extern volatile struct ADC_RESULT_REGS AdcResult;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_ADC_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:6bcc7a0b4fd4cc862dee6c70d9e4de667becf0ba1efc0e863916a2b258f15082size 1188123456789101112131415161718192021222324252627282930313233343536373839404142// TI File $Revision: /main/2 $// Checkin $Date: October 29, 2008 14:53:46 $//###########################################################################//// FILE: DSP2802x_BootVars.h//// TITLE: DSP2802x Boot Variable Definitions.//// NOTES:////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_BOOT_VARS_H#define DSP2802x_BOOT_VARS_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// External Boot ROM variable definitions://extern Uint16 EmuKey;extern Uint16 EmuBMode;extern Uint32 Flash_CPUScaleFactor;extern void (*Flash_CallbackPtr) (void);#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_BOOT_VARS_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:42b9adaea81820c60a2a674ea5974b339869149f0aa02cb4ba53a56f80c16f21size 295112345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788// TI File $Revision: /main/2 $// Checkin $Date: September 19, 2008 14:25:33 $//###########################################################################//// FILE: DSP2802x_Comp.h//// TITLE: DSP2802x Device Comparator Register Definitions////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_COMP_H#define DSP2802x_COMP_H#ifdef __cplusplusextern "C" {#endif//===========================================================================// Comparator Register Bit Definitions//struct COMPCTL_BITS { // bit descriptionUint16 COMPDACEN:1; // 0 Comparator/DAC EnableUint16 COMPSOURCE:1; // 1 Source select for comparator inverting inputUint16 CMPINV:1; // 2 Invert select for ComparatorUint16 QUALSEL:5; // 7:03 Qualification Period for synchronized output of the comparatorUint16 SYNCSEL:1; // 8 Synchronization select for output of the comparatorUint16 rsvd1:7; // 15:09 reserved};union COMPCTL_REG {Uint16 all;struct COMPCTL_BITS bit;};struct COMPSTS_BITS { // bit descriptionUint16 COMPSTS:1; // 0 Logical latched value of the comparatorUint16 rsvd1:15; // 15:01 reserved};union COMPSTS_REG {Uint16 all;struct COMPSTS_BITS bit;};struct DACVAL_BITS { // bit descriptionUint16 DACVAL:10; // 9:00 DAC Value bitUint16 rsvd1:6; // 15:10 reserved};union DACVAL_REG {Uint16 all;struct DACVAL_BITS bit;};//===========================================================================// Comparator Register Definitions//struct COMP_REGS {union COMPCTL_REG COMPCTL;Uint16 rsvd1;union COMPSTS_REG COMPSTS;Uint16 rsvd2[3];union DACVAL_REG DACVAL;Uint16 rsvd4[10];};//===========================================================================// Comparator External References and Function Declarations//extern volatile struct COMP_REGS Comp1Regs;extern volatile struct COMP_REGS Comp2Regs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_COMP_H definition//===========================================================================// End of file//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:2510435b936d6b23e0ff9dce8788864047c54de7c7809fc1ca6829308255289dsize 5711123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:55:30 $//###########################################################################//// FILE: DSP2802x_CpuTimers.h//// TITLE: DSP2802x CPU 32-bit Timers Register Definitions.//// NOTES: CpuTimer2 is reserved for use with DSP BIOS and// other realtime operating systems.//// Do not use these CpuTimer2 in your application if you ever plan// on integrating DSP-BIOS or another realtime OS.//////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_CPU_TIMERS_H#define DSP2802x_CPU_TIMERS_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// CPU Timer Register Bit Definitions:////// TCR: Control register bit definitions:struct TCR_BITS { // bits descriptionUint16 rsvd1:4; // 3:0 reservedUint16 TSS:1; // 4 Timer Start/StopUint16 TRB:1; // 5 Timer reloadUint16 rsvd2:4; // 9:6 reservedUint16 SOFT:1; // 10 Emulation modesUint16 FREE:1; // 11Uint16 rsvd3:2; // 12:13 reservedUint16 TIE:1; // 14 Output enableUint16 TIF:1; // 15 Interrupt flag};union TCR_REG {Uint16 all;struct TCR_BITS bit;};// TPR: Pre-scale low bit definitions:struct TPR_BITS { // bits descriptionUint16 TDDR:8; // 7:0 Divide-down lowUint16 PSC:8; // 15:8 Prescale counter low};union TPR_REG {Uint16 all;struct TPR_BITS bit;};// TPRH: Pre-scale high bit definitions:struct TPRH_BITS { // bits descriptionUint16 TDDRH:8; // 7:0 Divide-down highUint16 PSCH:8; // 15:8 Prescale counter high};union TPRH_REG {Uint16 all;struct TPRH_BITS bit;};// TIM, TIMH: Timer register definitions:struct TIM_REG {Uint16 LSW;Uint16 MSW;};union TIM_GROUP {Uint32 all;struct TIM_REG half;};// PRD, PRDH: Period register definitions:struct PRD_REG {Uint16 LSW;Uint16 MSW;};union PRD_GROUP {Uint32 all;struct PRD_REG half;};//---------------------------------------------------------------------------// CPU Timer Register File://struct CPUTIMER_REGS {union TIM_GROUP TIM; // Timer counter registerunion PRD_GROUP PRD; // Period registerunion TCR_REG TCR; // Timer control registerUint16 rsvd1; // reservedunion TPR_REG TPR; // Timer pre-scale lowunion TPRH_REG TPRH; // Timer pre-scale high};//---------------------------------------------------------------------------// CPU Timer Support Variables://struct CPUTIMER_VARS {volatile struct CPUTIMER_REGS *RegsAddr;Uint32 InterruptCount;float CPUFreqInMHz;float PeriodInUSec;};//---------------------------------------------------------------------------// Function prototypes and external definitions://void InitCpuTimers(void);void ConfigCpuTimer(struct CPUTIMER_VARS *Timer, float Freq, float Period);extern volatile struct CPUTIMER_REGS CpuTimer0Regs;extern struct CPUTIMER_VARS CpuTimer0;// CpuTimer 1 and CpuTimer2 are reserved for DSP BIOS & other RTOS. Comment out CpuTimer1 and CpuTimer2 if using DSP BIOS or other RTOSextern volatile struct CPUTIMER_REGS CpuTimer1Regs;extern volatile struct CPUTIMER_REGS CpuTimer2Regs;extern struct CPUTIMER_VARS CpuTimer1;extern struct CPUTIMER_VARS CpuTimer2;//---------------------------------------------------------------------------// Usefull Timer Operations://// Start Timer:#define StartCpuTimer0() CpuTimer0Regs.TCR.bit.TSS = 0// Stop Timer:#define StopCpuTimer0() CpuTimer0Regs.TCR.bit.TSS = 1// Reload Timer With period Value:#define ReloadCpuTimer0() CpuTimer0Regs.TCR.bit.TRB = 1// Read 32-Bit Timer Value:#define ReadCpuTimer0Counter() CpuTimer0Regs.TIM.all// Read 32-Bit Period Value:#define ReadCpuTimer0Period() CpuTimer0Regs.PRD.all// CpuTimer2 is reserved for DSP BIOS & other RTOS// Do not use this timers if you ever plan on integrating// DSP-BIOS or another realtime OS.//// For this reason, comment out the code to manipulate this timers// if using DSP-BIOS or another realtime OS.// Start Timer:#define StartCpuTimer1() CpuTimer1Regs.TCR.bit.TSS = 0#define StartCpuTimer2() CpuTimer2Regs.TCR.bit.TSS = 0// Stop Timer:#define StopCpuTimer1() CpuTimer1Regs.TCR.bit.TSS = 1#define StopCpuTimer2() CpuTimer2Regs.TCR.bit.TSS = 1// Reload Timer With period Value:#define ReloadCpuTimer1() CpuTimer1Regs.TCR.bit.TRB = 1#define ReloadCpuTimer2() CpuTimer2Regs.TCR.bit.TRB = 1// Read 32-Bit Timer Value:#define ReadCpuTimer1Counter() CpuTimer1Regs.TIM.all#define ReadCpuTimer2Counter() CpuTimer2Regs.TIM.all// Read 32-Bit Period Value:#define ReadCpuTimer1Period() CpuTimer1Regs.PRD.all#define ReadCpuTimer2Period() CpuTimer2Regs.PRD.all#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_CPU_TIMERS_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:11bfee538e703121e0d98eab9b6c33f7ab03bf13e3504c28b433a9a64dd817fdsize 4960123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123// TI File $Revision: /main/3 $// Checkin $Date: July 6, 2009 16:51:36 $//###########################################################################//// FILE: DSP2802x_DefaultIsr.h//// TITLE: DSP2802x Devices Default Interrupt Service Routines Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_DEFAULT_ISR_H#define DSP2802x_DEFAULT_ISR_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// Default Interrupt Service Routine Declarations://// The following function prototypes are for the// default ISR routines used with the default PIE vector table.// This default vector table is found in the DSP2802x_PieVect.h// file.//// For compatibility with header files V1.00 and earlier.#define TINT1_ISR INT13_ISR#define TINT2_ISR INT14_ISR// Non-Peripheral Interrupts:interrupt void INT13_ISR(void); // INT13 or CPU-Timer 1interrupt void INT14_ISR(void); // INT14 or CPU-Timer 2interrupt void DATALOG_ISR(void); // Datalogging interruptinterrupt void RTOSINT_ISR(void); // RTOS interruptinterrupt void EMUINT_ISR(void); // Emulation interruptinterrupt void NMI_ISR(void); // Non-maskable interruptinterrupt void ILLEGAL_ISR(void); // Illegal operation TRAPinterrupt void USER1_ISR(void); // User Defined trap 1interrupt void USER2_ISR(void); // User Defined trap 2interrupt void USER3_ISR(void); // User Defined trap 3interrupt void USER4_ISR(void); // User Defined trap 4interrupt void USER5_ISR(void); // User Defined trap 5interrupt void USER6_ISR(void); // User Defined trap 6interrupt void USER7_ISR(void); // User Defined trap 7interrupt void USER8_ISR(void); // User Defined trap 8interrupt void USER9_ISR(void); // User Defined trap 9interrupt void USER10_ISR(void); // User Defined trap 10interrupt void USER11_ISR(void); // User Defined trap 11interrupt void USER12_ISR(void); // User Defined trap 12// Group 1 PIE Interrupt Service Routines:interrupt void ADCINT1_ISR(void); // ADC INT1 ISR - 1.1 OR 10.1interrupt void ADCINT2_ISR(void); // ADC INT2 ISR - 1.2 OR 10.2interrupt void XINT1_ISR(void); // External interrupt 1interrupt void XINT2_ISR(void); // External interrupt 2interrupt void ADCINT9_ISR(void); // ADC INT9 ISRinterrupt void TINT0_ISR(void); // Timer 0interrupt void WAKEINT_ISR(void); // WD// Group 2 PIE Interrupt Service Routines:interrupt void EPWM1_TZINT_ISR(void); // EPWM-1interrupt void EPWM2_TZINT_ISR(void); // EPWM-2interrupt void EPWM3_TZINT_ISR(void); // EPWM-3interrupt void EPWM4_TZINT_ISR(void); // EPWM-4// Group 3 PIE Interrupt Service Routines:interrupt void EPWM1_INT_ISR(void); // EPWM-1interrupt void EPWM2_INT_ISR(void); // EPWM-2interrupt void EPWM3_INT_ISR(void); // EPWM-3interrupt void EPWM4_INT_ISR(void); // EPWM-4// Group 4 PIE Interrupt Service Routines:interrupt void ECAP1_INT_ISR(void); // ECAP-1// Group 5 PIE Interrupt Service Routines:// Group 6 PIE Interrupt Service Routines:interrupt void SPIRXINTA_ISR(void); // SPI-Ainterrupt void SPITXINTA_ISR(void); // SPI-A// Group 7 PIE Interrupt Service Routines:// Group 8 PIE Interrupt Service Routines:interrupt void I2CINT1A_ISR(void); // I2C-Ainterrupt void I2CINT2A_ISR(void); // I2C-A// Group 9 PIE Interrupt Service Routines:interrupt void SCIRXINTA_ISR(void); // SCI-Ainterrupt void SCITXINTA_ISR(void); // SCI-A// Group 10 PIE Interrupt Service Routines:// ADC INT1 ISR - 1.1 or 10.1// ADC INT2 ISR - 1.2 or 10.2interrupt void ADCINT3_ISR(void); // ADC INT3 ISRinterrupt void ADCINT4_ISR(void); // ADC INT4 ISRinterrupt void ADCINT5_ISR(void); // ADC INT5 ISRinterrupt void ADCINT6_ISR(void); // ADC INT6 ISRinterrupt void ADCINT7_ISR(void); // ADC INT7 ISRinterrupt void ADCINT8_ISR(void); // ADC INT8 ISR// Group 11 PIE Interrupt Service Routines:// Group 12 PIE Interrupt Service Routines:interrupt void XINT3_ISR (void); // External interrupt 3// Catch-all for Reserved Locations For testing purposes:interrupt void PIE_RESERVED(void); // Reserved for testinterrupt void rsvd_ISR(void); // for testinterrupt void INT_NOTUSED_ISR(void); // for unused interrupts#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_DEFAULT_ISR_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:1ca842cc7c107adb8d551591b5551eb112c83fdb2cdaf160770ede5fd36712f9size 27681234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192// TI File $Revision: /main/5 $// Checkin $Date: October 20, 2009 11:04:38 $//###########################################################################//// FILE: DSP2802x_DevEmu.h//// TITLE: DSP2802x Device Emulation Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_DEV_EMU_H#define DSP2802x_DEV_EMU_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// Device Emulation Register Bit Definitions://// Device Configuration Register Bit Definitionsstruct DEVICECNF_BITS { // bits descriptionUint16 rsvd1:3; // 2:0 reservedUint16 VMAPS:1; // 3 VMAP StatusUint16 rsvd2:1; // 4 reservedUint16 XRSn:1; // 5 XRSn Signal StatusUint16 rsvd3:10; // 15:6 reservedUint16 rsvd4:3; // 18:16 reservedUint16 ENPROT:1; // 19 Enable/Disable pipeline protectionUint16 rsvd5:7; // 26:21 reservedUint16 TRSTn:1; // 27 Status of TRSTn signalUint16 rsvd6:4; // 31:28 reserved};union DEVICECNF_REG {Uint32 all;struct DEVICECNF_BITS bit;};// CLASSIDstruct CLASSID_BITS { // bits descriptionUint16 CLASSNO:8; // 7:0 Class NumberUint16 PARTTYPE:8; // 15:8 Part Type};union CLASSID_REG {Uint16 all;struct CLASSID_BITS bit;};struct DEV_EMU_REGS {union DEVICECNF_REG DEVICECNF; // Device Configurationunion CLASSID_REG CLASSID; // Class IDUint16 REVID; // Device ID};// PARTIDstruct PARTID_BITS { // bits descriptionUint16 PARTNO:8; // 7:0 Part NumberUint16 PARTTYPE:8; // 15:8 Part Type};union PARTID_REG {Uint16 all;struct PARTID_BITS bit;};struct PARTID_REGS {union PARTID_REG PARTID; // Part ID};//---------------------------------------------------------------------------// Device Emulation Register References & Function Declarations://extern volatile struct DEV_EMU_REGS DevEmuRegs;extern volatile struct PARTID_REGS PartIdRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_DEV_EMU_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:734d754dd33240e9203d3f2c2db851416b3baed2489bf5348b537ae87a1c3d34size 9558123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286// TI File $Revision: /main/9 $// Checkin $Date: October 6, 2010 14:43:25 $//###########################################################################//// FILE: DSP2802x_Device.h//// TITLE: DSP2802x Device Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_DEVICE_H#define DSP2802x_DEVICE_H#ifdef __cplusplusextern "C" {#endif#define TARGET 1//---------------------------------------------------------------------------// User To Select Target Device:#ifndef DSP28_280200PT#define DSP28_280200PT 0#endif#ifndef DSP28_280200DA#define DSP28_280200DA 0#endif#ifndef DSP28_28020PT#define DSP28_28020PT 0#endif#ifndef DSP28_28020DA#define DSP28_28020DA 0#endif#ifndef DSP28_28021PT#define DSP28_28021PT 0#endif#ifndef DSP28_28021DA#define DSP28_28021DA 0#endif#ifndef DSP28_28022PT#define DSP28_28022PT 0#endif#ifndef DSP28_28022DA#define DSP28_28022DA 0#endif#ifndef DSP28_28023PT#define DSP28_28023PT 0#endif#ifndef DSP28_28023DA#define DSP28_28023DA 0#endif#ifndef DSP28_28026PT#define DSP28_28026PT 0#endif#ifndef DSP28_28026DA#define DSP28_28026DA 0#endif#ifndef DSP28_28027PT#define DSP28_28027PT 0#endif#ifndef DSP28_28027DA#define DSP28_28027DA 0#endif//---------------------------------------------------------------------------// Common CPU Definitions://extern cregister volatile unsigned int IFR;extern cregister volatile unsigned int IER;#define EINT asm(" clrc INTM")#define DINT asm(" setc INTM")#define ERTM asm(" clrc DBGM")#define DRTM asm(" setc DBGM")#define EALLOW asm(" EALLOW")#define EDIS asm(" EDIS")#define ESTOP0 asm(" ESTOP0")#define M_INT1 0x0001#define M_INT2 0x0002#define M_INT3 0x0004#define M_INT4 0x0008#define M_INT5 0x0010#define M_INT6 0x0020#define M_INT7 0x0040#define M_INT8 0x0080#define M_INT9 0x0100#define M_INT10 0x0200#define M_INT11 0x0400#define M_INT12 0x0800#define M_INT13 0x1000#define M_INT14 0x2000#define M_DLOG 0x4000#define M_RTOS 0x8000#define BIT0 0x0001#define BIT1 0x0002#define BIT2 0x0004#define BIT3 0x0008#define BIT4 0x0010#define BIT5 0x0020#define BIT6 0x0040#define BIT7 0x0080#define BIT8 0x0100#define BIT9 0x0200#define BIT10 0x0400#define BIT11 0x0800#define BIT12 0x1000#define BIT13 0x2000#define BIT14 0x4000#define BIT15 0x8000//---------------------------------------------------------------------------// For Portability, User Is Recommended To Use Following Data Type Size// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers://#ifndef DSP28_DATA_TYPES#define DSP28_DATA_TYPEStypedef int int16;typedef long int32;typedef unsigned int Uint16;typedef unsigned long Uint32;typedef float float32;typedef long double float64;#endif//---------------------------------------------------------------------------// Include All Peripheral Header Files://#include "DSP2802x_Adc.h" // ADC Registers#include "DSP2802x_BootVars.h" // Boot ROM Variables#include "DSP2802x_DevEmu.h" // Device Emulation Registers#include "DSP2802x_Comp.h" // Comparator Registers#include "DSP2802x_CpuTimers.h" // 32-bit CPU Timers#include "DSP2802x_ECap.h" // Enhanced Capture#include "DSP2802x_EPwm.h" // Enhanced PWM#include "DSP2802x_Gpio.h" // General Purpose I/O Registers#include "DSP2802x_I2c.h" // I2C Registers#include "DSP2802x_NmiIntrupt.h" // NMI Interrupt Registers#include "DSP2802x_PieCtrl.h" // PIE Control Registers#include "DSP2802x_PieVect.h" // PIE Vector Table#include "DSP2802x_Spi.h" // SPI Registers#include "DSP2802x_Sci.h" // SCI Registers#include "DSP2802x_SysCtrl.h" // System Control/Power Modes#include "DSP2802x_XIntrupt.h" // External Interrupts#if (DSP28_28020PT||DSP28_28021PT||DSP28_28022PT||DSP28_28023PT||DSP28_28026PT||DSP28_28027PT)#define DSP28_COMP1 1#define DSP28_COMP2 1#define DSP28_EPWM1 1#define DSP28_EPWM2 1#define DSP28_EPWM3 1#define DSP28_EPWM4 1#define DSP28_ECAP1 1#define DSP28_SPIA 1#define DSP28_SCIA 1#define DSP28_I2CA 1#endif // end 2802x PT package#if (DSP28_28020DA||DSP28_28021DA||DSP28_28022DA||DSP28_28023DA||DSP28_28026DA||DSP28_28027DA)#define DSP28_COMP1 1#define DSP28_COMP2 0#define DSP28_EPWM1 1#define DSP28_EPWM2 1#define DSP28_EPWM3 1#define DSP28_EPWM4 1#define DSP28_ECAP1 1#define DSP28_SPIA 1#define DSP28_SCIA 1#define DSP28_I2CA 1#endif // end 2802x DA package#if (DSP28_280200PT)#define DSP28_COMP1 1#define DSP28_COMP2 1#define DSP28_EPWM1 1#define DSP28_EPWM2 1#define DSP28_EPWM3 1#define DSP28_EPWM4 1#define DSP28_ECAP1 0#define DSP28_SPIA 1#define DSP28_SCIA 1#define DSP28_I2CA 1#endif // end 280200 PT package#if (DSP28_280200DA)#define DSP28_COMP1 1#define DSP28_COMP2 0#define DSP28_EPWM1 1#define DSP28_EPWM2 1#define DSP28_EPWM3 1#define DSP28_EPWM4 1#define DSP28_ECAP1 0#define DSP28_SPIA 1#define DSP28_SCIA 1#define DSP28_I2CA 1#endif // end 280200 DA package// Timer definitions based on System Clock// 60 MHz devices (28027/28026)#if (DSP28_28026PT||DSP28_28026DA||DSP28_28027PT||DSP28_28027DA)#define mSec0_5 30000 // 0.5 mS#define mSec0_75 45000 // 0.75 mS#define mSec1 60000 // 1.0 mS#define mSec2 120000 // 2.0 mS#define mSec5 300000 // 5.0 mS#define mSec7_5 450000 // 7.5 mS#define mSec10 600000 // 10 mS#define mSec20 1200000 // 20 mS#define mSec50 3000000 // 50 mS#define mSec75 4500000 // 75 mS#define mSec100 6000000 // 100 mS#define mSec200 12000000 // 200 mS#define mSec500 30000000 // 500 mS#define mSec750 45000000 // 750 mS#define mSec1000 60000000 // 1000 mS#define mSec2000 120000000 // 2000 mS#define mSec5000 300000000 // 5000 mS#endif// 50 MHz devices (28023/28022)#if (DSP28_28022PT||DSP28_28022DA||DSP28_28023PT||DSP28_28023DA)#define mSec0_5 25000 // 0.5 mS#define mSec0_75 37500 // 0.75 mS#define mSec1 50000 // 1.0 mS#define mSec2 100000 // 2.0 mS#define mSec5 250000 // 5.0 mS#define mSec7_5 375000 // 7.5 mS#define mSec10 500000 // 10 mS#define mSec20 1000000 // 20 mS#define mSec50 2500000 // 50 mS#define mSec75 3750000 // 75 mS#define mSec100 5000000 // 100 mS#define mSec200 10000000 // 200 mS#define mSec500 25000000 // 500 mS#define mSec750 37500000 // 750 mS#define mSec1000 50000000 // 1000 mS#define mSec2000 100000000 // 2000 mS#define mSec5000 250000000 // 5000 mS#endif//40 MHz devices (28021/28020/280200)#if (DSP28_280200PT||DSP28_280200DA||DSP28_28020PT||DSP28_28020DA||DSP28_28021PT ||DSP28_28021DA)#define mSec0_5 20000 // 0.5 mS#define mSec0_75 30000 // 0.75 mS#define mSec1 40000 // 1.0 mS#define mSec2 80000 // 2.0 mS#define mSec5 200000 // 5.0 mS#define mSec7_5 300000 // 7.5 mS#define mSec10 400000 // 10 mS#define mSec20 800000 // 20 mS#define mSec50 2000000 // 50 mS#define mSec75 3000000 // 75 mS#define mSec100 4000000 // 100 mS#define mSec200 8000000 // 200 mS#define mSec500 20000000 // 500 mS#define mSec750 30000000 // 750 mS#define mSec1000 40000000 // 1000 mS#define mSec2000 80000000 // 2000 mS#define mSec5000 200000000 // 5000 mS#endif#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_DEVICE_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:65cc954c2f7cab157675622df58d2d000961a5312c821edfeb32eaa7bbb3453esize 5700123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:55:40 $//###########################################################################//// FILE: DSP2802x_ECap.h//// TITLE: DSP2802x Enhanced Capture Module Register Bit Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_ECAP_H#define DSP2802x_ECAP_H#ifdef __cplusplusextern "C" {#endif//----------------------------------------------------// Capture control register 1 bit definitions */struct ECCTL1_BITS { // bits descriptionUint16 CAP1POL:1; // 0 Capture Event 1 Polarity selectUint16 CTRRST1:1; // 1 Counter Reset on Capture Event 1Uint16 CAP2POL:1; // 2 Capture Event 2 Polarity selectUint16 CTRRST2:1; // 3 Counter Reset on Capture Event 2Uint16 CAP3POL:1; // 4 Capture Event 3 Polarity selectUint16 CTRRST3:1; // 5 Counter Reset on Capture Event 3Uint16 CAP4POL:1; // 6 Capture Event 4 Polarity selectUint16 CTRRST4:1; // 7 Counter Reset on Capture Event 4Uint16 CAPLDEN:1; // 8 Enable Loading CAP1-4 regs on a Cap EventUint16 PRESCALE:5; // 13:9 Event Filter prescale selectUint16 FREE_SOFT:2; // 15:14 Emulation mode};union ECCTL1_REG {Uint16 all;struct ECCTL1_BITS bit;};// In V1.1 the STOPVALUE bit field was changed to// STOP_WRAP. This correlated to a silicon change from// F2802x Rev 0 to Rev A.//----------------------------------------------------// Capture control register 2 bit definitions */struct ECCTL2_BITS { // bits descriptionUint16 CONT_ONESHT:1; // 0 Continuous or one-shotUint16 STOP_WRAP:2; // 2:1 Stop value for one-shot, Wrap for continuousUint16 REARM:1; // 3 One-shot re-armUint16 TSCTRSTOP:1; // 4 TSCNT counter stopUint16 SYNCI_EN:1; // 5 Counter sync-in selectUint16 SYNCO_SEL:2; // 7:6 Sync-out modeUint16 SWSYNC:1; // 8 SW forced counter syncUint16 CAP_APWM:1; // 9 CAP/APWM operating mode selectUint16 APWMPOL:1; // 10 APWM output polarity selectUint16 rsvd1:5; // 15:11};union ECCTL2_REG {Uint16 all;struct ECCTL2_BITS bit;};//----------------------------------------------------// ECAP interrupt enable register bit definitions */struct ECEINT_BITS { // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 CEVT1:1; // 1 Capture Event 1 Interrupt EnableUint16 CEVT2:1; // 2 Capture Event 2 Interrupt EnableUint16 CEVT3:1; // 3 Capture Event 3 Interrupt EnableUint16 CEVT4:1; // 4 Capture Event 4 Interrupt EnableUint16 CTROVF:1; // 5 Counter Overflow Interrupt EnableUint16 CTR_EQ_PRD:1; // 6 Period Equal Interrupt EnableUint16 CTR_EQ_CMP:1; // 7 Compare Equal Interrupt EnableUint16 rsvd2:8; // 15:8 reserved};union ECEINT_REG {Uint16 all;struct ECEINT_BITS bit;};//----------------------------------------------------// ECAP interrupt flag register bit definitions */struct ECFLG_BITS { // bits descriptionUint16 INT:1; // 0 Global FlagUint16 CEVT1:1; // 1 Capture Event 1 Interrupt FlagUint16 CEVT2:1; // 2 Capture Event 2 Interrupt FlagUint16 CEVT3:1; // 3 Capture Event 3 Interrupt FlagUint16 CEVT4:1; // 4 Capture Event 4 Interrupt FlagUint16 CTROVF:1; // 5 Counter Overflow Interrupt FlagUint16 CTR_EQ_PRD:1; // 6 Period Equal Interrupt FlagUint16 CTR_EQ_CMP:1; // 7 Compare Equal Interrupt FlagUint16 rsvd2:8; // 15:8 reserved};union ECFLG_REG {Uint16 all;struct ECFLG_BITS bit;};//----------------------------------------------------struct ECAP_REGS {Uint32 TSCTR; // Time stamp counterUint32 CTRPHS; // Counter phaseUint32 CAP1; // Capture 1Uint32 CAP2; // Capture 2Uint32 CAP3; // Capture 3Uint32 CAP4; // Capture 4Uint16 rsvd1[8]; // reservedunion ECCTL1_REG ECCTL1; // Capture Control Reg 1union ECCTL2_REG ECCTL2; // Capture Control Reg 2union ECEINT_REG ECEINT; // ECAP interrupt enableunion ECFLG_REG ECFLG; // ECAP interrupt flagsunion ECFLG_REG ECCLR; // ECAP interrupt clearunion ECEINT_REG ECFRC; // ECAP interrupt forceUint16 rsvd2[6]; // reserved};//---------------------------------------------------------------------------// GPI/O External References & Function Declarations://extern volatile struct ECAP_REGS ECap1Regs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_ECAP_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:12a2182931a418573e41f56dafb73c1e53baf663ce894f4f7aaeb335d1fe8f7esize 22637123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573// TI File $Revision: /main/7 $// Checkin $Date: December 21, 2010 13:59:37 $//###########################################################################//// FILE: DSP2802x_EPWM.h//// TITLE: DSP2802x Enhanced PWM Module Register Bit Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_EPWM_H#define DSP2802x_EPWM_H#ifdef __cplusplusextern "C" {#endif//----------------------------------------------------// Time base control register bit definitions */struct TBCTL_BITS { // bits descriptionUint16 CTRMODE:2; // 1:0 Counter ModeUint16 PHSEN:1; // 2 Phase load enableUint16 PRDLD:1; // 3 Active period loadUint16 SYNCOSEL:2; // 5:4 Sync output selectUint16 SWFSYNC:1; // 6 Software force sync pulseUint16 HSPCLKDIV:3; // 9:7 High speed time pre-scaleUint16 CLKDIV:3; // 12:10 Timebase clock pre-scaleUint16 PHSDIR:1; // 13 Phase DirectionUint16 FREE_SOFT:2; // 15:14 Emulation mode};union TBCTL_REG {Uint16 all;struct TBCTL_BITS bit;};//----------------------------------------------------// Time base status register bit definitions */struct TBSTS_BITS { // bits descriptionUint16 CTRDIR:1; // 0 Counter direction statusUint16 SYNCI:1; // 1 External input sync statusUint16 CTRMAX:1; // 2 Counter max latched statusUint16 rsvd1:13; // 15:3 reserved};union TBSTS_REG {Uint16 all;struct TBSTS_BITS bit;};//----------------------------------------------------// Compare control register bit definitions */struct CMPCTL_BITS { // bits descriptionUint16 LOADAMODE:2; // 0:1 Active compare AUint16 LOADBMODE:2; // 3:2 Active compare BUint16 SHDWAMODE:1; // 4 Compare A block operating modeUint16 rsvd1:1; // 5 reservedUint16 SHDWBMODE:1; // 6 Compare B block operating modeUint16 rsvd2:1; // 7 reservedUint16 SHDWAFULL:1; // 8 Compare A Shadow registers full StatusUint16 SHDWBFULL:1; // 9 Compare B Shadow registers full StatusUint16 rsvd3:6; // 15:10 reserved};union CMPCTL_REG {Uint16 all;struct CMPCTL_BITS bit;};//----------------------------------------------------// Action qualifier register bit definitions */struct AQCTL_BITS { // bits descriptionUint16 ZRO:2; // 1:0 Action Counter = ZeroUint16 PRD:2; // 3:2 Action Counter = PeriodUint16 CAU:2; // 5:4 Action Counter = Compare A upUint16 CAD:2; // 7:6 Action Counter = Compare A downUint16 CBU:2; // 9:8 Action Counter = Compare B upUint16 CBD:2; // 11:10 Action Counter = Compare B downUint16 rsvd:4; // 15:12 reserved};union AQCTL_REG {Uint16 all;struct AQCTL_BITS bit;};//----------------------------------------------------// Action qualifier SW force register bit definitions */struct AQSFRC_BITS { // bits descriptionUint16 ACTSFA:2; // 1:0 Action when One-time SW Force A invokedUint16 OTSFA:1; // 2 One-time SW Force A outputUint16 ACTSFB:2; // 4:3 Action when One-time SW Force B invokedUint16 OTSFB:1; // 5 One-time SW Force A outputUint16 RLDCSF:2; // 7:6 Reload from Shadow optionsUint16 rsvd1:8; // 15:8 reserved};union AQSFRC_REG {Uint16 all;struct AQSFRC_BITS bit;};//----------------------------------------------------// Action qualifier continuous SW force register bit definitions */struct AQCSFRC_BITS { // bits descriptionUint16 CSFA:2; // 1:0 Continuous Software Force on output AUint16 CSFB:2; // 3:2 Continuous Software Force on output BUint16 rsvd1:12; // 15:4 reserved};union AQCSFRC_REG {Uint16 all;struct AQCSFRC_BITS bit;};//----------------------------------------------------// Dead-band generator control register bit definitionsstruct DBCTL_BITS { // bits descriptionUint16 OUT_MODE:2; // 1:0 Dead Band Output Mode ControlUint16 POLSEL:2; // 3:2 Polarity Select ControlUint16 IN_MODE:2; // 5:4 Dead Band Input Select Mode ControlUint16 rsvd1:9; // 14:4 reservedUint16 HALFCYCLE:1; // 15 Half Cycle Clocking Enable};union DBCTL_REG {Uint16 all;struct DBCTL_BITS bit;};//----------------------------------------------------// Trip zone select register bit definitionsstruct TZSEL_BITS { // bits descriptionUint16 CBC1:1; // 0 TZ1 CBC selectUint16 CBC2:1; // 1 TZ2 CBC selectUint16 CBC3:1; // 2 TZ3 CBC selectUint16 CBC4:1; // 3 TZ4 CBC selectUint16 CBC5:1; // 4 TZ5 CBC selectUint16 CBC6:1; // 5 TZ6 CBC selectUint16 DCAEVT2:1; // 6 DCAEVT2Uint16 DCBEVT2:1; // 7 DCBEVT2Uint16 OSHT1:1; // 8 One-shot TZ1 selectUint16 OSHT2:1; // 9 One-shot TZ2 selectUint16 OSHT3:1; // 10 One-shot TZ3 selectUint16 OSHT4:1; // 11 One-shot TZ4 selectUint16 OSHT5:1; // 12 One-shot TZ5 selectUint16 OSHT6:1; // 13 One-shot TZ6 selectUint16 DCAEVT1:1; // 14 DCAEVT1Uint16 DCBEVT1:1; // 15 DCBEVT1};union TZSEL_REG {Uint16 all;struct TZSEL_BITS bit;};//----------------------------------------------------// Trip zone digital compare event select registerstruct TZDCSEL_BITS { // bits descriptionUint16 DCAEVT1:3; // 2:0 Digital Compare Output A Event 1Uint16 DCAEVT2:3; // 5:3 Digital Compare Output A Event 2Uint16 DCBEVT1:3; // 8:6 Digital Compare Output B Event 1Uint16 DCBEVT2:3; // 11:9 Digital Compare Output B Event 2Uint16 rsvd1:4; // 15:12 reserved};union TZDCSEL_REG {Uint16 all;struct TZDCSEL_BITS bit;};//----------------------------------------------------// Trip zone control register bit definitions */struct TZCTL_BITS { // bits descriptionUint16 TZA:2; // 1:0 TZ1 to TZ6 Trip Action On EPWMxAUint16 TZB:2; // 3:2 TZ1 to TZ6 Trip Action On EPWMxBUint16 DCAEVT1:2; // 5:4 EPWMxA action on DCAEVT1Uint16 DCAEVT2:2; // 7:6 EPWMxA action on DCAEVT2Uint16 DCBEVT1:2; // 9:8 EPWMxB action on DCBEVT1Uint16 DCBEVT2:2; // 11:10 EPWMxB action on DCBEVT2Uint16 rsvd:4; // 15:12 reserved};union TZCTL_REG {Uint16 all;struct TZCTL_BITS bit;};//----------------------------------------------------// Trip zone control register bit definitions */struct TZEINT_BITS { // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 CBC:1; // 1 Trip Zones Cycle By Cycle Int EnableUint16 OST:1; // 2 Trip Zones One Shot Int EnableUint16 DCAEVT1:1; // 3 Force DCAEVT1 eventUint16 DCAEVT2:1; // 4 Force DCAEVT2 eventUint16 DCBEVT1:1; // 5 Force DCBEVT1 eventUint16 DCBEVT2:1; // 6 Force DCBEVT2 eventUint16 rsvd2:9; // 15:7 reserved};union TZEINT_REG {Uint16 all;struct TZEINT_BITS bit;};//----------------------------------------------------// Trip zone flag register bit definitions */struct TZFLG_BITS { // bits descriptionUint16 INT:1; // 0 Global statusUint16 CBC:1; // 1 Trip Zones Cycle By Cycle IntUint16 OST:1; // 2 Trip Zones One Shot IntUint16 DCAEVT1:1; // 3 Force DCAEVT1 eventUint16 DCAEVT2:1; // 4 Force DCAEVT2 eventUint16 DCBEVT1:1; // 5 Force DCBEVT1 eventUint16 DCBEVT2:1; // 6 Force DCBEVT2 eventUint16 rsvd2:9; // 15:7 reserved};union TZFLG_REG {Uint16 all;struct TZFLG_BITS bit;};//----------------------------------------------------// Trip zone flag clear register bit definitions */struct TZCLR_BITS { // bits descriptionUint16 INT:1; // 0 Global statusUint16 CBC:1; // 1 Trip Zones Cycle By Cycle IntUint16 OST:1; // 2 Trip Zones One Shot IntUint16 DCAEVT1:1; // 3 Force DCAEVT1 eventUint16 DCAEVT2:1; // 4 Force DCAEVT2 eventUint16 DCBEVT1:1; // 5 Force DCBEVT1 eventUint16 DCBEVT2:1; // 6 Force DCBEVT2 eventUint16 rsvd2:9; // 15:7 reserved};union TZCLR_REG {Uint16 all;struct TZCLR_BITS bit;};//----------------------------------------------------// Trip zone flag force register bit definitions */struct TZFRC_BITS { // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 CBC:1; // 1 Trip Zones Cycle By Cycle IntUint16 OST:1; // 2 Trip Zones One Shot IntUint16 DCAEVT1:1; // 3 Force DCAEVT1 eventUint16 DCAEVT2:1; // 4 Force DCAEVT2 eventUint16 DCBEVT1:1; // 5 Force DCBEVT1 eventUint16 DCBEVT2:1; // 6 Force DCBEVT2 eventUint16 rsvd2:9; // 15:7 reserved};union TZFRC_REG {Uint16 all;struct TZFRC_BITS bit;};//----------------------------------------------------// Event trigger select register bit definitions */struct ETSEL_BITS { // bits descriptionUint16 INTSEL:3; // 2:0 EPWMxINTn SelectUint16 INTEN:1; // 3 EPWMxINTn EnableUint16 rsvd1:4; // 7:4 reservedUint16 SOCASEL:3; // 10:8 Start of conversion A SelectUint16 SOCAEN:1; // 11 Start of conversion A EnableUint16 SOCBSEL:3; // 14:12 Start of conversion B SelectUint16 SOCBEN:1; // 15 Start of conversion B Enable};union ETSEL_REG {Uint16 all;struct ETSEL_BITS bit;};//----------------------------------------------------// Event trigger pre-scale register bit definitions */struct ETPS_BITS { // bits descriptionUint16 INTPRD:2; // 1:0 EPWMxINTn Period SelectUint16 INTCNT:2; // 3:2 EPWMxINTn Counter RegisterUint16 rsvd1:4; // 7:4 reservedUint16 SOCAPRD:2; // 9:8 EPWMxSOCA Period SelectUint16 SOCACNT:2; // 11:10 EPWMxSOCA Counter RegisterUint16 SOCBPRD:2; // 13:12 EPWMxSOCB Period SelectUint16 SOCBCNT:2; // 15:14 EPWMxSOCB Counter Register};union ETPS_REG {Uint16 all;struct ETPS_BITS bit;};//----------------------------------------------------// Event trigger Flag register bit definitions */struct ETFLG_BITS { // bits descriptionUint16 INT:1; // 0 EPWMxINTn FlagUint16 rsvd1:1; // 1 reservedUint16 SOCA:1; // 2 EPWMxSOCA FlagUint16 SOCB:1; // 3 EPWMxSOCB FlagUint16 rsvd2:12; // 15:4 reserved};union ETFLG_REG {Uint16 all;struct ETFLG_BITS bit;};//----------------------------------------------------// Event trigger Clear register bit definitions */struct ETCLR_BITS { // bits descriptionUint16 INT:1; // 0 EPWMxINTn ClearUint16 rsvd1:1; // 1 reservedUint16 SOCA:1; // 2 EPWMxSOCA ClearUint16 SOCB:1; // 3 EPWMxSOCB ClearUint16 rsvd2:12; // 15:4 reserved};union ETCLR_REG {Uint16 all;struct ETCLR_BITS bit;};//----------------------------------------------------// Event trigger Force register bit definitions */struct ETFRC_BITS { // bits descriptionUint16 INT:1; // 0 EPWMxINTn ForceUint16 rsvd1:1; // 1 reservedUint16 SOCA:1; // 2 EPWMxSOCA ForceUint16 SOCB:1; // 3 EPWMxSOCB ForceUint16 rsvd2:12; // 15:4 reserved};union ETFRC_REG {Uint16 all;struct ETFRC_BITS bit;};//----------------------------------------------------// PWM chopper control register bit definitions */struct PCCTL_BITS { // bits descriptionUint16 CHPEN:1; // 0 PWM chopping enableUint16 OSHTWTH:4; // 4:1 One-shot pulse widthUint16 CHPFREQ:3; // 7:5 Chopping clock frequencyUint16 CHPDUTY:3; // 10:8 Chopping clock Duty cycleUint16 rsvd1:5; // 15:11 reserved};union PCCTL_REG {Uint16 all;struct PCCTL_BITS bit;};//----------------------------------------------------// Enhanced Trip register bit definitions */struct DCTRIPSEL_BITS { // bits descriptionUint16 DCAHCOMPSEL:4; // 3:0 Digital Compare A High, COMP Input SelectUint16 DCALCOMPSEL:4; // 7:4 Digital Compare A Low, COMP Input SelectUint16 DCBHCOMPSEL:4; // 11:8 Digital Compare B High, COMP Input SelectUint16 DCBLCOMPSEL:4; // 15:12 Digital Compare B Low, COMP Input Select};union DCTRIPSEL_REG {Uint16 all;struct DCTRIPSEL_BITS bit;};struct DCCTL_BITS { // bits descriptionUint16 EVT1SRCSEL:1; // 0 DCBEVT1 Source Signal SelectUint16 EVT1FRCSYNCSEL:1; // 1 DCBEVT1 Force Cynchronization Signal SelectUint16 EVT1SOCE:1; // 2 DCEVT1 SOC, Enable/DisableUint16 EVT1SYNCE:1; // 3 DCEVT1 Sync, Enable/DisableUint16 rsvd1:4; // 7:4 reservedUint16 EVT2SRCSEL:1; // 8 DCEVT2 Source Signal SelectUint16 EVT2FRCSYNCSEL:1; // 9 DCEVT2 Force Synchronization Signal SelectUint16 rsvd2:6; // 15:10 reserved};union DCCTL_REG {Uint16 all;struct DCCTL_BITS bit;};struct DCCAPCTL_BITS { // bits descriptionUint16 CAPE:1; // 0 Counter Capture Enable/DisableUint16 SHDWMODE:1; // 1 Counter Capture ModeUint16 rsvd:14; // 15:2 reserved};union DCCAPCTL_REG {Uint16 all;struct DCCAPCTL_BITS bit;};struct DCFCTL_BITS { // bits descriptionUint16 SRCSEL:2; // 1:0 Filter Block Signal Source SelectUint16 BLANKE:1; // 2 Blanking Enable/DisableUint16 BLANKINV:1; // 3 Blanking Window InversionUint16 PULSESEL:2; // 5:4 Pulse Select for Blanking & Capture AlignmentUint16 rsvd:10; // 15:6 reserved};union DCFCTL_REG {Uint16 all;struct DCFCTL_BITS bit;};//----------------------------------------------------// High resolution period control register bit definitions */struct HRPCTL_BITS { // bits descriptionUint16 HRPE:1; // 0 High resolution period enableUint16 rsvd1:1; // 1 reservedUint16 TBPHSHRLOADE:1; // 2 TBPHSHR Load Enable BitUint16 rsvd2:13; // 15:3 reserved};union HRPCTL_REG {Uint16 all;struct HRPCTL_BITS bit;};//----------------------------------------------------// High Resolution Register bit definitions */struct HRCNFG_BITS { // bits descriptionUint16 EDGMODE:2; // 1:0 Edge Mode select BitsUint16 CTLMODE:1; // 2 Control mode Select BitUint16 HRLOAD:2; // 4:3 Shadow mode Select BitUint16 SELOUTB:1; // 5 EPWMB Output Select BitUint16 AUTOCONV:1; // 6 Autoconversion BitUint16 SWAPAB:1; // 7 Swap EPWMA & EPWMB Outputs BitUint16 rsvd1:8; // 15:8 reserved};union HRCNFG_REG {Uint16 all;struct HRCNFG_BITS bit;};struct HRPWR_BITS { // bits descriptionUint16 rsvd1:6; // 5:0 reservedUint16 MEPOFF:4; // 9:6 MEP Calibration Off BitsUint16 rsvd2:6; // 15:10 reserved};union HRPWR_REG {Uint16 all;struct HRPWR_BITS bit;};struct TBPHS_HRPWM_REG { // bits descriptionUint16 TBPHSHR; // 15:0 Extension register for HRPWM Phase (8 bits)Uint16 TBPHS; // 31:16 Phase offset register};union TBPHS_HRPWM_GROUP {Uint32 all;struct TBPHS_HRPWM_REG half;};struct CMPA_HRPWM_REG { // bits descriptionUint16 CMPAHR; // 15:0 Extension register for HRPWM compare (8 bits)Uint16 CMPA; // 31:16 Compare A reg};union CMPA_HRPWM_GROUP {Uint32 all;struct CMPA_HRPWM_REG half;};struct TBPRD_HRPWM_REG { // bits descriptionUint16 TBPRDHR; // 15:0 Extension register for HRPWM Period (8 bits)Uint16 TBPRD; // 31:16 Timebase Period Register};union TBPRD_HRPWM_GROUP {Uint32 all;struct TBPRD_HRPWM_REG half;};struct EPWM_REGS {union TBCTL_REG TBCTL; // Time Base Control Registerunion TBSTS_REG TBSTS; // Time Base Status Registerunion TBPHS_HRPWM_GROUP TBPHS; // Union of TBPHS:TBPHSHRUint16 TBCTR; // Time Base CounterUint16 TBPRD; // Time Base Period register setUint16 TBPRDHR; // Time Base Period High Res Registerunion CMPCTL_REG CMPCTL; // Compare controlunion CMPA_HRPWM_GROUP CMPA; // Union of CMPA:CMPAHRUint16 CMPB; // Compare B regunion AQCTL_REG AQCTLA; // Action qual output Aunion AQCTL_REG AQCTLB; // Action qual output Bunion AQSFRC_REG AQSFRC; // Action qual SW forceunion AQCSFRC_REG AQCSFRC; // Action qualifier continuous SW forceunion DBCTL_REG DBCTL; // Dead-band controlUint16 DBRED; // Dead-band rising edge delayUint16 DBFED; // Dead-band falling edge delayunion TZSEL_REG TZSEL; // Trip zone selectunion TZDCSEL_REG TZDCSEL; // Trip zone digital comparator selectunion TZCTL_REG TZCTL; // Trip zone controlunion TZEINT_REG TZEINT; // Trip zone interrupt enableunion TZFLG_REG TZFLG; // Trip zone interrupt flagsunion TZCLR_REG TZCLR; // Trip zone clearunion TZFRC_REG TZFRC; // Trip zone force interruptunion ETSEL_REG ETSEL; // Event trigger selectionunion ETPS_REG ETPS; // Event trigger pre-scalerunion ETFLG_REG ETFLG; // Event trigger flagsunion ETCLR_REG ETCLR; // Event trigger clearunion ETFRC_REG ETFRC; // Event trigger forceunion PCCTL_REG PCCTL; // PWM chopper controlUint16 rsvd3;union HRCNFG_REG HRCNFG; // HRPWM Config Regunion HRPWR_REG HRPWR; // HRPWM Power RegisterUint16 rsvd4[4];Uint16 HRMSTEP; // HRPWM MEP Step RegisterUint16 rsvd5;union HRPCTL_REG HRPCTL; // High Resolution Period ControlUint16 rsvd6;union TBPRD_HRPWM_GROUP TBPRDM; // Union of TBPRD:TBPRDHR mirror registersunion CMPA_HRPWM_GROUP CMPAM; // Union of CMPA:CMPAHR mirror registersUint16 rsvd7[2];union DCTRIPSEL_REG DCTRIPSEL; // Digital Compare Trip Selectunion DCCTL_REG DCACTL; // Digital Compare A Controlunion DCCTL_REG DCBCTL; // Digital Compare B Controlunion DCFCTL_REG DCFCTL; // Digital Compare Filter Controlunion DCCAPCTL_REG DCCAPCTL; // Digital Compare Capture ControlUint16 DCFOFFSET; // Digital Compare Filter OffsetUint16 DCFOFFSETCNT;// Digital Compare Filter Offset CounterUint16 DCFWINDOW; // Digital Compare Filter WindowUint16 DCFWINDOWCNT;// Digital Compare Filter Window CounterUint16 DCCAP; // Digital Compare Filter Counter CaptureUint16 rsvd8[6];};//---------------------------------------------------------------------------// External References & Function Declarations://extern volatile struct EPWM_REGS EPwm1Regs;extern volatile struct EPWM_REGS EPwm2Regs;extern volatile struct EPWM_REGS EPwm3Regs;extern volatile struct EPWM_REGS EPwm4Regs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_EPWM_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:75e947fc506dc926f5f308dc9a2f7d835da44b95b59ef82dd4e7f29a5094b446size 5468123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216// TI File $Revision: /main/3 $// Checkin $Date: October 6, 2010 14:42:10 $//###########################################################################//// FILE: DSP2802x_EPwm_defines.h//// TITLE: #defines used in EPwm examples////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_EPWM_DEFINES_H#define DSP2802x_EPWM_DEFINES_H#ifdef __cplusplusextern "C" {#endif// TBCTL (Time-Base Control)//==========================// CTRMODE bits#define TB_COUNT_UP 0x0#define TB_COUNT_DOWN 0x1#define TB_COUNT_UPDOWN 0x2#define TB_FREEZE 0x3// PHSEN bit#define TB_DISABLE 0x0#define TB_ENABLE 0x1// PRDLD bit#define TB_SHADOW 0x0#define TB_IMMEDIATE 0x1// SYNCOSEL bits#define TB_SYNC_IN 0x0#define TB_CTR_ZERO 0x1#define TB_CTR_CMPB 0x2#define TB_SYNC_DISABLE 0x3// HSPCLKDIV and CLKDIV bits#define TB_DIV1 0x0#define TB_DIV2 0x1#define TB_DIV4 0x2// PHSDIR bit#define TB_DOWN 0x0#define TB_UP 0x1// CMPCTL (Compare Control)//==========================// LOADAMODE and LOADBMODE bits#define CC_CTR_ZERO 0x0#define CC_CTR_PRD 0x1#define CC_CTR_ZERO_PRD 0x2#define CC_LD_DISABLE 0x3// SHDWAMODE and SHDWBMODE bits#define CC_SHADOW 0x0#define CC_IMMEDIATE 0x1// AQCTLA and AQCTLB (Action Qualifier Control)//=============================================// ZRO, PRD, CAU, CAD, CBU, CBD bits#define AQ_NO_ACTION 0x0#define AQ_CLEAR 0x1#define AQ_SET 0x2#define AQ_TOGGLE 0x3// DBCTL (Dead-Band Control)//==========================// OUT MODE bits#define DB_DISABLE 0x0#define DBB_ENABLE 0x1#define DBA_ENABLE 0x2#define DB_FULL_ENABLE 0x3// POLSEL bits#define DB_ACTV_HI 0x0#define DB_ACTV_LOC 0x1#define DB_ACTV_HIC 0x2#define DB_ACTV_LO 0x3// IN MODE#define DBA_ALL 0x0#define DBB_RED_DBA_FED 0x1#define DBA_RED_DBB_FED 0x2#define DBB_ALL 0x3// CHPCTL (chopper control)//==========================// CHPEN bit#define CHP_DISABLE 0x0#define CHP_ENABLE 0x1// CHPFREQ bits#define CHP_DIV1 0x0#define CHP_DIV2 0x1#define CHP_DIV3 0x2#define CHP_DIV4 0x3#define CHP_DIV5 0x4#define CHP_DIV6 0x5#define CHP_DIV7 0x6#define CHP_DIV8 0x7// CHPDUTY bits#define CHP1_8TH 0x0#define CHP2_8TH 0x1#define CHP3_8TH 0x2#define CHP4_8TH 0x3#define CHP5_8TH 0x4#define CHP6_8TH 0x5#define CHP7_8TH 0x6// TZSEL (Trip Zone Select)//==========================// CBCn and OSHTn bits#define TZ_DISABLE 0x0#define TZ_ENABLE 0x1// TZCTL (Trip Zone Control)//==========================// TZA and TZB bits#define TZ_HIZ 0x0#define TZ_FORCE_HI 0x1#define TZ_FORCE_LO 0x2#define TZ_NO_CHANGE 0x3// TZDCSEL (Trip Zone Digital Compare)//==========================// DCAEVT1, DCAEVT2, DCBEVT1, DCBEVT2 bits#define TZ_EVT_DISABLE 0x0#define TZ_DCAH_LOW 0x1#define TZ_DCAH_HI 0x2#define TZ_DCAL_LOW 0x3#define TZ_DCAL_HI 0x4#define TZ_DCAL_HI_DCAH_LOW 0x5#define TZ_DCBH_LOW 0x1#define TZ_DCBH_HI 0x2#define TZ_DCBL_LOW 0x3#define TZ_DCBL_HI 0x4#define TZ_DCBL_HI_DCBH_LOW 0x5// ETSEL (Event Trigger Select)//=============================#define ET_DCAEVT1SOC 0x0#define ET_CTR_ZERO 0x1#define ET_CTR_PRD 0x2#define ET_CTR_PRDZERO 0x3#define ET_CTRU_CMPA 0x4#define ET_CTRD_CMPA 0x5#define ET_CTRU_CMPB 0x6#define ET_CTRD_CMPB 0x7// ETPS (Event Trigger Pre-scale)//===============================// INTPRD, SOCAPRD, SOCBPRD bits#define ET_DISABLE 0x0#define ET_1ST 0x1#define ET_2ND 0x2#define ET_3RD 0x3//--------------------------------// HRPWM (High Resolution PWM)//================================// HRCNFG#define HR_DISABLE 0x0#define HR_REP 0x1#define HR_FEP 0x2#define HR_BEP 0x3#define HR_CMP 0x0#define HR_PHS 0x1#define HR_CTR_ZERO 0x0#define HR_CTR_PRD 0x1#define HR_CTR_ZERO_PRD 0x2#define HR_NORM_B 0x0#define HR_INVERT_B 0x1//--------------------------------// DC (Digital Compare)//================================// DCTRIPSEL#define DC_TZ1 0x0#define DC_TZ2 0x1#define DC_TZ3 0x2#define DC_COMP1OUT 0x8#define DC_COMP2OUT 0x9#define DC_COMP3OUT 0xA// DCFCTL#define DC_SRC_DCAEVT1 0x0#define DC_SRC_DCAEVT2 0x1#define DC_SRC_DCBEVT1 0x2#define DC_SRC_DCBEVT2 0x3#define DC_PULSESEL_PRD 0x0#define DC_PULSESEL_ZERO 0x1#define DC_BLANK_DISABLE 0x0#define DC_BLANK_ENABLE 0x1#define DC_BLANK_NOTINV 0x0#define DC_BLANK_INV 0x1//DCACTL/DCBCTL#define DC_EVT1 0x0#define DC_EVT2 0x0#define DC_EVT_FLT 0x1#define DC_EVT_SYNC 0x0#define DC_EVT_ASYNC 0x1#define DC_SOC_DISABLE 0x0#define DC_SOC_ENABLE 0x1#ifdef __cplusplus}#endif /* extern "C" */#endif // - end of DSP2802x_EPWM_DEFINES_H//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:90439cf6b98dcb96d9c0df7677795a3338bd71f926f304a8391d3b05503b5f58size 6676123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164// TI File $Revision: /main/10 $// Checkin $Date: October 16, 2009 15:43:24 $//###########################################################################//// FILE: DSP2802x_Examples.h//// TITLE: DSP2802x Device Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_EXAMPLES_H#define DSP2802x_EXAMPLES_H#ifdef __cplusplusextern "C" {#endif/*-----------------------------------------------------------------------------Specify the PLL control register (PLLCR) and divide select (DIVSEL) value.-----------------------------------------------------------------------------*///#define DSP28_DIVSEL 0 // Enable /4 for SYSCLKOUT//#define DSP28_DIVSEL 1 // Disable /4 for SYSCKOUT#define DSP28_DIVSEL 2 // Enable /2 for SYSCLKOUT//#define DSP28_DIVSEL 3 // Enable /1 for SYSCLKOUT#define DSP28_PLLCR 12 // Uncomment for 60 MHz devices [60 MHz = (10MHz * 12)/2]//#define DSP28_PLLCR 11//#define DSP28_PLLCR 10 // Uncomment for 50 Mhz devices [50 Mhz = (10MHz * 10)/2]//#define DSP28_PLLCR 9//#define DSP28_PLLCR 8 // Uncomment for 40 MHz devices [40 MHz = (10MHz * 8)/2]//#define DSP28_PLLCR 7//#define DSP28_PLLCR 6//#define DSP28_PLLCR 5//#define DSP28_PLLCR 4//#define DSP28_PLLCR 3//#define DSP28_PLLCR 2//#define DSP28_PLLCR 1//#define DSP28_PLLCR 0 // PLL is bypassed in this mode//----------------------------------------------------------------------------/*-----------------------------------------------------------------------------Specify the clock rate of the CPU (SYSCLKOUT) in nS.Take into account the input clock frequency and the PLL multiplierselected in step 1.Use one of the values provided, or define your own.The trailing L is required tells the compiler to treatthe number as a 64-bit value.Only one statement should be uncommented.Example 1: 40 MHz devices:CLKIN is a 10 MHz crystal or internal 10 MHz oscillatorIn step 1 the user specified PLLCR = 0x8 for a40 MHz CPU clock (SYSCLKOUT = 40 MHz).In this case, the CPU_RATE will be 25.000LUncomment the line: #define CPU_RATE 25.000LExample 1: 50 MHz devices:CLKIN is a 10 MHz crystal or internal 10 MHz oscillatorIn step 1 the user specified PLLCR = 0xA for a50 MHz CPU clock (SYSCLKOUT = 50 MHz).In this case, the CPU_RATE will be 20.000LUncomment the line: #define CPU_RATE 20.000LExample 2: 60 MHz devices:CLKIN is a 10 MHz crystal or internal 10 MHz oscillatorIn step 1 the user specified PLLCR = 0xC for a60 MHz CPU clock (SYSCLKOUT = 60 MHz).In this case, the CPU_RATE will be 16.667LUncomment the line: #define CPU_RATE 16.667L-----------------------------------------------------------------------------*/#define CPU_RATE 16.667L // for a 60MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 20.000L // for a 50MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 25.000L // for a 40MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 33.333L // for a 30MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 41.667L // for a 24MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 50.000L // for a 20MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 66.667L // for a 15MHz CPU clock speed (SYSCLKOUT)//#define CPU_RATE 100.000L // for a 10MHz CPU clock speed (SYSCLKOUT)//----------------------------------------------------------------------------/*-----------------------------------------------------------------------------Target device (in DSP2802x_Device.h) determines CPU frequency(for examples) - either 60 MHz (for 28026 and 28027), 50 MHz(for 28023 and 28023, or 40 MHz (for 28021, 28020, and 280200).User does not have to change anything here.-----------------------------------------------------------------------------*/#if (DSP28_28026PT||DSP28_28026DA||DSP28_28027PT||DSP28_28027DA) // 28026||28027 devices only#define CPU_FRQ_60MHZ 1 // 60 Mhz CPU Freq (10 MHz input clock)#define CPU_FRQ_50MHZ 0#define CPU_FRQ_40MHZ 0#elif (DSP28_28023PT||DSP28_28023DA||DSP28_28022PT||DSP28_28022DA) // 28023||28023 devices#define CPU_FRQ_60MHZ 0#define CPU_FRQ_50MHZ 1 // 50 MHz CPU Freq (10 MHz input clock)#define CPU_FRQ_40MHZ 0#else // 28021||28020||280200 devices#define CPU_FRQ_60MHZ 0#define CPU_FRQ_50MHZ 0#define CPU_FRQ_40MHZ 1 // 40 MHz CPU Freq (10 MHz input clock)#endif// The following pointer to a function call calibrates the ADC and internal oscillators#define Device_cal (void (*)(void))0x3D7C80//---------------------------------------------------------------------------// Include Example Header Files://#include "DSP2802x_GlobalPrototypes.h" // Prototypes for global functions within the// .c files.#include "DSP2802x_EPwm_defines.h" // Macros used for PWM examples.#include "DSP2802x_I2C_defines.h" // Macros used for I2C examples.#define PARTNO_28027PT 0xCF#define PARTNO_28027DA 0xCE#define PARTNO_28026PT 0xC7#define PARTNO_28026DA 0xC6#define PARTNO_28023PT 0xCD#define PARTNO_28023DA 0xCC#define PARTNO_28022PT 0xC5#define PARTNO_28022DA 0xC4#define PARTNO_28021PT 0xCB#define PARTNO_28021DA 0xCA#define PARTNO_28020PT 0xC3#define PARTNO_28020DA 0xC2#define PARTNO_280200PT 0xC1#define PARTNO_280200DA 0xC0// Include files not used with DSP/BIOS#ifndef DSP28_BIOS#include "DSP2802x_DefaultISR.h"#endif// DO NOT MODIFY THIS LINE.#define DELAY_US(A) DSP28x_usDelay(((((long double) A * 1000.0L) / (long double)CPU_RATE) - 9.0L) / 5.0L)#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_EXAMPLES_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:10adb4e4fd9d4b08e5851bde29a668199362fa8beb95ca6b82ffc865a6d9c2cesize 3484123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100// TI File $Revision: /main/4 $// Checkin $Date: December 16, 2009 16:54:39 $//###########################################################################//// FILE: DSP2802x_GlobalPrototypes.h//// TITLE: Global prototypes for DSP2802x Examples////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_GLOBALPROTOTYPES_H#define DSP2802x_GLOBALPROTOTYPES_H#ifdef __cplusplusextern "C" {#endif/*---- shared global function prototypes -----------------------------------*/extern void InitAdc(void);extern void InitAdcAio(void);extern void AdcOffsetSelfCal(void);extern void AdcChanSelect(Uint16 ch_no);extern Uint16 AdcConversion (void);extern void InitPeripherals(void);extern void InitECap(void);extern void InitECapGpio(void);extern void InitECap1Gpio(void);extern void InitEPwm(void);extern void InitEPwmGpio(void);extern void InitEPwm1Gpio(void);extern void InitEPwm2Gpio(void);extern void InitEPwm3Gpio(void);#if DSP28_EPWM4extern void InitEPwm4Gpio(void);#endif // endif DSP28_EPWM4extern void InitCompGpio(void);extern void InitComp1Gpio(void);#if DSP28_COMP2extern void InitComp2Gpio(void);#endif // endif DSP28_COMP2extern void InitGpio(void);extern void InitI2CGpio(void);extern void InitPieCtrl(void);extern void InitPieVectTable(void);extern void InitSci(void);extern void InitSciGpio(void);extern void InitSciaGpio(void);extern void InitSpi(void);extern void InitSpiGpio(void);extern void InitSpiaGpio(void);extern void InitSysCtrl(void);extern void InitTzGpio(void);extern void InitXIntrupt(void);extern void InitPll(Uint16 pllcr, Uint16 clkindiv);extern void InitPeripheralClocks(void);extern void EnableInterrupts(void);extern void DSP28x_usDelay(Uint32 Count);#define KickDog ServiceDog // For compatiblity with previous versionsextern void ServiceDog(void);extern void DisableDog(void);extern Uint16 CsmUnlock(void);extern void IntOsc1Sel (void);extern void IntOsc2Sel (void);extern void ExtClkSel (void);extern int16 GetTemperatureC(int16 sensorSample); // returns temp in deg. Cextern int16 GetTemperatureK(int16 sensorSample); // returns temp in deg. Kextern void Osc1Comp(int16 sensorSample);extern void Osc2Comp(int16 sensorSample);// DSP28_DBGIER.asmextern void SetDBGIER(Uint16 dbgier);// CAUTION// This function MUST be executed out of RAM. Executing it// out of OTP/Flash will yield unpredictable resultsextern void InitFlash(void);void MemCopy(Uint16 *SourceAddr, Uint16* SourceEndAddr, Uint16* DestAddr);//---------------------------------------------------------------------------// External symbols created by the linker cmd file// DSP28 examples will use these to relocate code from one LOAD location// in Flash to a different RUN location in internal RAMextern Uint16 RamfuncsLoadStart;extern Uint16 RamfuncsLoadEnd;extern Uint16 RamfuncsRunStart;#ifdef __cplusplus}#endif /* extern "C" */#endif // - end of DSP2802x_GLOBALPROTOTYPES_H//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:86644c40d66fca71f711b2b064700883d2b5053deabff6966a061cc1dd78ca24size 12058123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300// TI File $Revision: /main/5 $// Checkin $Date: July 6, 2009 15:27:56 $//###########################################################################//// FILE: DSP2802x_Gpio.h//// TITLE: DSP2802x General Purpose I/O Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_GPIO_H#define DSP2802x_GPIO_H#ifdef __cplusplusextern "C" {#endif//----------------------------------------------------// GPIO A control register bit definitions */struct GPACTRL_BITS { // bits descriptionUint16 QUALPRD0:8; // 7:0 Qual periodUint16 QUALPRD1:8; // 15:8 Qual periodUint16 QUALPRD2:8; // 23:16 Qual periodUint16 QUALPRD3:8; // 31:24 Qual period};union GPACTRL_REG {Uint32 all;struct GPACTRL_BITS bit;};//----------------------------------------------------// GPIO B control register bit definitions */struct GPBCTRL_BITS { // bits descriptionUint16 QUALPRD0:8; // 7:0 Qual periodUint16 rsvd1:8; // 15:8 reservedUint16 rsvd2:16; // 31:16 reserved};union GPBCTRL_REG {Uint32 all;struct GPBCTRL_BITS bit;};//----------------------------------------------------// GPIO Qual/MUX select register bit definitions */struct GPA1_BITS { // bits descriptionUint16 GPIO0:2; // 1:0 GPIO0Uint16 GPIO1:2; // 3:2 GPIO1Uint16 GPIO2:2; // 5:4 GPIO2Uint16 GPIO3:2; // 7:6 GPIO3Uint16 GPIO4:2; // 9:8 GPIO4Uint16 GPIO5:2; // 11:10 GPIO5Uint16 GPIO6:2; // 13:12 GPIO6Uint16 GPIO7:2; // 15:14 GPIO7Uint16 GPIO8:2; // 17:16 GPIO8Uint16 GPIO9:2; // 19:18 GPIO9Uint16 GPIO10:2; // 21:20 GPIO10Uint16 GPIO11:2; // 23:22 GPIO11Uint16 GPIO12:2; // 25:24 GPIO12Uint16 GPIO13:2; // 27:26 GPIO13Uint16 GPIO14:2; // 29:28 GPIO14Uint16 GPIO15:2; // 31:30 GPIO15};struct GPA2_BITS { // bits descriptionUint16 GPIO16:2; // 1:0 GPIO16Uint16 GPIO17:2; // 3:2 GPIO17Uint16 GPIO18:2; // 5:4 GPIO18Uint16 GPIO19:2; // 7:6 GPIO19Uint16 GPIO20:2; // 9:8 GPIO20Uint16 GPIO21:2; // 11:10 GPIO21Uint16 GPIO22:2; // 13:12 GPIO22Uint16 GPIO23:2; // 15:14 GPIO23Uint16 GPIO24:2; // 17:16 GPIO24Uint16 GPIO25:2; // 19:18 GPIO25Uint16 GPIO26:2; // 21:20 GPIO26Uint16 GPIO27:2; // 23:22 GPIO27Uint16 GPIO28:2; // 25:24 GPIO28Uint16 GPIO29:2; // 27:26 GPIO29Uint16 GPIO30:2; // 29:28 GPIO30Uint16 GPIO31:2; // 31:30 GPIO31};struct GPB1_BITS { // bits descriptionUint16 GPIO32:2; // 1:0 GPIO32Uint16 GPIO33:2; // 3:2 GPIO33Uint16 GPIO34:2; // 5:4 GPIO34Uint16 GPIO35:2; // 7:6 GPIO35Uint16 GPIO36:2; // 9:8 GPIO36Uint16 GPIO37:2; // 11:10 GPIO37Uint16 GPIO38:2; // 13:12 GPIO38Uint16 rsvd1:2; // 15:14 reservedUint16 rsvd2:16; // 31:16 reserved};struct AIO_BITS { // bits descriptionUint16 rsvd1:2; // 1:0 GPIO0Uint16 rsvd2:2; // 3:2 GPIO1Uint16 AIO2:2; // 5:4 GPIO2Uint16 rsvd3:2; // 7:6 GPIO3Uint16 AIO4:2; // 9:8 GPIO4Uint16 rsvd4:2; // 11:10 GPIO5Uint16 AIO6:2; // 13:12 GPIO6Uint16 rsvd5:2; // 15:14 GPIO7Uint16 rsvd6:2; // 17:16 GPIO8Uint16 rsvd7:2; // 19:18 GPIO9Uint16 AIO10:2; // 21:20 GPIO10Uint16 rsvd8:2; // 23:22 GPIO11Uint16 AIO12:2; // 25:24 GPIO12Uint16 rsvd9:2; // 27:26 GPIO13Uint16 AIO14:2; // 29:28 GPIO14Uint16 rsvd10:2; // 31:30 GPIO15};union GPA1_REG {Uint32 all;struct GPA1_BITS bit;};union GPA2_REG {Uint32 all;struct GPA2_BITS bit;};union GPB1_REG {Uint32 all;struct GPB1_BITS bit;};union AIO_REG {Uint32 all;struct AIO_BITS bit;};//----------------------------------------------------// GPIO DIR/TOGGLE/SET/CLEAR register bit definitions */struct GPADAT_BITS { // bits descriptionUint16 GPIO0:1; // 0 GPIO0Uint16 GPIO1:1; // 1 GPIO1Uint16 GPIO2:1; // 2 GPIO2Uint16 GPIO3:1; // 3 GPIO3Uint16 GPIO4:1; // 4 GPIO4Uint16 GPIO5:1; // 5 GPIO5Uint16 GPIO6:1; // 6 GPIO6Uint16 GPIO7:1; // 7 GPIO7Uint16 GPIO8:1; // 8 GPIO8Uint16 GPIO9:1; // 9 GPIO9Uint16 GPIO10:1; // 10 GPIO10Uint16 GPIO11:1; // 11 GPIO11Uint16 GPIO12:1; // 12 GPIO12Uint16 GPIO13:1; // 13 GPIO13Uint16 GPIO14:1; // 14 GPIO14Uint16 GPIO15:1; // 15 GPIO15Uint16 GPIO16:1; // 16 GPIO16Uint16 GPIO17:1; // 17 GPIO17Uint16 GPIO18:1; // 18 GPIO18Uint16 GPIO19:1; // 19 GPIO19Uint16 GPIO20:1; // 20 GPIO20Uint16 GPIO21:1; // 21 GPIO21Uint16 GPIO22:1; // 22 GPIO22Uint16 GPIO23:1; // 23 GPIO23Uint16 GPIO24:1; // 24 GPIO24Uint16 GPIO25:1; // 25 GPIO25Uint16 GPIO26:1; // 26 GPIO26Uint16 GPIO27:1; // 27 GPIO27Uint16 GPIO28:1; // 28 GPIO28Uint16 GPIO29:1; // 29 GPIO29Uint16 GPIO30:1; // 30 GPIO30Uint16 GPIO31:1; // 31 GPIO31};struct GPBDAT_BITS { // bits descriptionUint16 GPIO32:1; // 0 GPIO32Uint16 GPIO33:1; // 1 GPIO33Uint16 GPIO34:1; // 2 GPIO34Uint16 GPIO35:1; // 3 GPIO35Uint16 GPIO36:1; // 4 GPIO36Uint16 GPIO37:1; // 5 GPIO37Uint16 GPIO38:1; // 6 GPIO38Uint16 rsvd1:9; // 15:7 reservedUint16 rsvd2:16; // 31:16 reserved};struct AIODAT_BITS { // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 rsvd2:1; // 1 reservedUint16 AIO2:1; // 2 AIO2Uint16 rsvd3:1; // 3 reservedUint16 AIO4:1; // 4 AIO4Uint16 rsvd4:1; // 5 reservedUint16 AIO6:1; // 6 AIO6Uint16 rsvd5:1; // 7 reservedUint16 rsvd6:1; // 8 reservedUint16 rsvd7:1; // 9 reservedUint16 AIO10:1; // 10 AIO10Uint16 rsvd8:1; // 11 reservedUint16 AIO12:1; // 12 AIO12Uint16 rsvd9:1; // 13 reservedUint16 AIO14:1; // 14 AIO14Uint16 rsvd10:1; // 15 reserved};union GPADAT_REG {Uint32 all;struct GPADAT_BITS bit;};union GPBDAT_REG {Uint32 all;struct GPBDAT_BITS bit;};union AIODAT_REG {Uint16 all;struct AIODAT_BITS bit;};//----------------------------------------------------------------// GPIO XINT1/XINT2/XNMI/XCLKIN select register bit definitions */struct GPIOXINT_BITS { // bits descriptionUint16 GPIOSEL:5; // 4:0 Select GPIO interrupt input sourceUint16 rsvd1:11; // 15:5 reserved};union GPIOXINT_REG {Uint16 all;struct GPIOXINT_BITS bit;};struct GPIO_CTRL_REGS {union GPACTRL_REG GPACTRL; // GPIO A Control Register (GPIO0 to 31)union GPA1_REG GPAQSEL1; // GPIO A Qualifier Select 1 Register (GPIO0 to 15)union GPA2_REG GPAQSEL2; // GPIO A Qualifier Select 2 Register (GPIO16 to 31)union GPA1_REG GPAMUX1; // GPIO A Mux 1 Register (GPIO0 to 15)union GPA2_REG GPAMUX2; // GPIO A Mux 2 Register (GPIO16 to 31)union GPADAT_REG GPADIR; // GPIO A Direction Register (GPIO0 to 31)union GPADAT_REG GPAPUD; // GPIO A Pull Up Disable Register (GPIO0 to 31)Uint32 rsvd1; // reservedunion GPBCTRL_REG GPBCTRL; // GPIO B Control Register (GPIO32 to 38)union GPB1_REG GPBQSEL1; // GPIO B Qualifier Select 1 Register (GPIO32 to 38)Uint32 rsvd2; // reservedunion GPB1_REG GPBMUX1; // GPIO B Mux 1 Register (GPIO32 to 38)Uint32 rsvd3; // reservedunion GPBDAT_REG GPBDIR; // GPIO B Direction Register (GPIO32 to 38)union GPBDAT_REG GPBPUD; // GPIO B Pull Up Disable Register (GPIO32 to 38)Uint16 rsvd4[24]; // reservedunion AIO_REG AIOMUX1; // Analog IO Mux 1 Register (AIO0 to 15)Uint32 rsvd5; // reservedunion AIODAT_REG AIODIR; // Analog IO Direction Register (AIO0 to 15)Uint16 rsvd6[5]; // reserved};struct GPIO_DATA_REGS {union GPADAT_REG GPADAT; // GPIO Data Register (GPIO0 to 31)union GPADAT_REG GPASET; // GPIO Data Set Register (GPIO0 to 31)union GPADAT_REG GPACLEAR; // GPIO Data Clear Register (GPIO0 to 31)union GPADAT_REG GPATOGGLE; // GPIO Data Toggle Register (GPIO0 to 31)union GPBDAT_REG GPBDAT; // GPIO Data Register (GPIO32 to 38)union GPBDAT_REG GPBSET; // GPIO Data Set Register (GPIO32 to 38)union GPBDAT_REG GPBCLEAR; // GPIO Data Clear Register (GPIO32 to 38)union GPBDAT_REG GPBTOGGLE; // GPIO Data Toggle Register (GPIO32 to 38)Uint16 rsvd1[8]; // reservedunion AIODAT_REG AIODAT; // Analog IO Data Register (AIO0-15)Uint16 rsvd2;union AIODAT_REG AIOSET; // Analog IO Data Set Register (AIO0-15)Uint16 rsvd3;union AIODAT_REG AIOCLEAR; // Analog IO Data Clear Register (AIO0-15)Uint16 rsvd4;union AIODAT_REG AIOTOGGLE; // Analog IO Data Toggle Register (AIO0-15)Uint16 rsvd5;};struct GPIO_INT_REGS {union GPIOXINT_REG GPIOXINT1SEL; // XINT1 GPIO Input Selectionunion GPIOXINT_REG GPIOXINT2SEL; // XINT2 GPIO Input Selectionunion GPIOXINT_REG GPIOXINT3SEL; // XINT3 GPIO Input SelectionUint16 rsvd1[5];union GPADAT_REG GPIOLPMSEL; // Low power modes GPIO input select};//---------------------------------------------------------------------------// GPI/O External References & Function Declarations://extern volatile struct GPIO_CTRL_REGS GpioCtrlRegs;extern volatile struct GPIO_DATA_REGS GpioDataRegs;extern volatile struct GPIO_INT_REGS GpioIntRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_GPIO_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:6455c4deb21eb6093f6ff56bbc1aa285d772bb9c557a0b4ba820d3b861f3a527size 7449123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197// TI File $Revision: /main/3 $// Checkin $Date: October 6, 2010 15:08:36 $//###########################################################################//// FILE: DSP2802x_I2c.h//// TITLE: DSP2802x Inter-Integrated Circuit (I2C) Module// Register Bit Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_I2C_H#define DSP2802x_I2C_H#ifdef __cplusplusextern "C" {#endif//----------------------------------------------------// I2C interrupt vector register bit definitions */struct I2CISRC_BITS { // bits descriptionUint16 INTCODE:3; // 2:0 Interrupt codeUint16 rsvd1:13; // 15:3 reserved};union I2CISRC_REG {Uint16 all;struct I2CISRC_BITS bit;};//----------------------------------------------------// I2C interrupt mask register bit definitions */struct I2CIER_BITS { // bits descriptionUint16 ARBL:1; // 0 Arbitration lost interruptUint16 NACK:1; // 1 No ack interruptUint16 ARDY:1; // 2 Register access ready interruptUint16 RRDY:1; // 3 Recieve data ready interruptUint16 XRDY:1; // 4 Transmit data ready interruptUint16 SCD:1; // 5 Stop condition detectionUint16 AAS:1; // 6 Address as slaveUint16 rsvd:9; // 15:7 reserved};union I2CIER_REG {Uint16 all;struct I2CIER_BITS bit;};//----------------------------------------------------// I2C status register bit definitions */struct I2CSTR_BITS { // bits descriptionUint16 ARBL:1; // 0 Arbitration lost interruptUint16 NACK:1; // 1 No ack interruptUint16 ARDY:1; // 2 Register access ready interruptUint16 RRDY:1; // 3 Recieve data ready interruptUint16 XRDY:1; // 4 Transmit data ready interruptUint16 SCD:1; // 5 Stop condition detectionUint16 rsvd1:2; // 7:6 reservedUint16 AD0:1; // 8 Address ZeroUint16 AAS:1; // 9 Address as slaveUint16 XSMT:1; // 10 XMIT shift emptyUint16 RSFULL:1; // 11 Recieve shift fullUint16 BB:1; // 12 Bus busyUint16 NACKSNT:1; // 13 A no ack sentUint16 SDIR:1; // 14 Slave directionUint16 rsvd2:1; // 15 reserved};union I2CSTR_REG {Uint16 all;struct I2CSTR_BITS bit;};//----------------------------------------------------// I2C mode control register bit definitions */struct I2CMDR_BITS { // bits descriptionUint16 BC:3; // 2:0 Bit countUint16 FDF:1; // 3 Free data formatUint16 STB:1; // 4 Start byteUint16 IRS:1; // 5 I2C Reset notUint16 DLB:1; // 6 Digital loopbackUint16 RM:1; // 7 Repeat modeUint16 XA:1; // 8 Expand addressUint16 TRX:1; // 9 Transmitter/recieverUint16 MST:1; // 10 Master/slaveUint16 STP:1; // 11 Stop conditionUint16 rsvd1:1; // 12 reservedUint16 STT:1; // 13 Start conditionUint16 FREE:1; // 14 Emulation modeUint16 NACKMOD:1; // 15 No Ack mode};union I2CMDR_REG {Uint16 all;struct I2CMDR_BITS bit;};//----------------------------------------------------// I2C extended mode control register bit definitions */struct I2CEMDR_BITS { // bits descriptionUint16 BCM:1; // 0 Bit countUint16 rsvd1:15; // 15:1 reserved};union I2CEMDR_REG {Uint16 all;struct I2CEMDR_BITS bit;};//----------------------------------------------------// I2C pre-scaler register bit definitions */struct I2CPSC_BITS { // bits descriptionUint16 IPSC:8; // 7:0 pre-scalerUint16 rsvd1:8; // 15:8 reserved};union I2CPSC_REG {Uint16 all;struct I2CPSC_BITS bit;};//----------------------------------------------------// TX FIFO control register bit definitions */struct I2CFFTX_BITS { // bits descriptionUint16 TXFFIL:5; // 4:0 FIFO interrupt levelUint16 TXFFIENA:1; // 5 FIFO interrupt enable/disableUint16 TXFFINTCLR:1; // 6 FIFO clearUint16 TXFFINT:1; // 7 FIFO interrupt flagUint16 TXFFST:5; // 12:8 FIFO level statusUint16 TXFFRST:1; // 13 FIFO resetUint16 I2CFFEN:1; // 14 enable/disable TX & RX FIFOsUint16 rsvd1:1; // 15 reserved};union I2CFFTX_REG {Uint16 all;struct I2CFFTX_BITS bit;};//----------------------------------------------------// RX FIFO control register bit definitions */struct I2CFFRX_BITS { // bits descriptionUint16 RXFFIL:5; // 4:0 FIFO interrupt levelUint16 RXFFIENA:1; // 5 FIFO interrupt enable/disableUint16 RXFFINTCLR:1; // 6 FIFO clearUint16 RXFFINT:1; // 7 FIFO interrupt flagUint16 RXFFST:5; // 12:8 FIFO levelUint16 RXFFRST:1; // 13 FIFO resetUint16 rsvd1:2; // 15:14 reserved};union I2CFFRX_REG {Uint16 all;struct I2CFFRX_BITS bit;};//----------------------------------------------------struct I2C_REGS {Uint16 I2COAR; // Own address registerunion I2CIER_REG I2CIER; // Interrupt enableunion I2CSTR_REG I2CSTR; // Interrupt statusUint16 I2CCLKL; // Clock divider lowUint16 I2CCLKH; // Clock divider highUint16 I2CCNT; // Data countUint16 I2CDRR; // Data recieveUint16 I2CSAR; // Slave addressUint16 I2CDXR; // Data transmitunion I2CMDR_REG I2CMDR; // Modeunion I2CISRC_REG I2CISRC; // Interrupt sourceunion I2CEMDR_REG I2CEMDR; // Extended modeunion I2CPSC_REG I2CPSC; // Pre-scalerUint16 rsvd2[19]; // reservedunion I2CFFTX_REG I2CFFTX; // Transmit FIFOunion I2CFFRX_REG I2CFFRX; // Recieve FIFO};//---------------------------------------------------------------------------// External References & Function Declarations://extern volatile struct I2C_REGS I2caRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_I2C_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:40c8459d843b1ca093781e6d03f743b17e114119493768d9d0bf103ec6eb5e0dsize 4091123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115// TI File $Revision: /main/2 $// Checkin $Date: September 18, 2008 17:00:35 $//###########################################################################//// FILE: DSP2802x_I2cExample.h//// TITLE: 2802x I2C Example Code Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_I2C_DEFINES_H#define DSP2802x_I2C_DEFINES_H//--------------------------------------------// Defines//--------------------------------------------// Error Messages#define I2C_ERROR 0xFFFF#define I2C_ARB_LOST_ERROR 0x0001#define I2C_NACK_ERROR 0x0002#define I2C_BUS_BUSY_ERROR 0x1000#define I2C_STP_NOT_READY_ERROR 0x5555#define I2C_NO_FLAGS 0xAAAA#define I2C_SUCCESS 0x0000// Clear Status Flags#define I2C_CLR_AL_BIT 0x0001#define I2C_CLR_NACK_BIT 0x0002#define I2C_CLR_ARDY_BIT 0x0004#define I2C_CLR_RRDY_BIT 0x0008#define I2C_CLR_SCD_BIT 0x0020// Interrupt Source Messages#define I2C_NO_ISRC 0x0000#define I2C_ARB_ISRC 0x0001#define I2C_NACK_ISRC 0x0002#define I2C_ARDY_ISRC 0x0003#define I2C_RX_ISRC 0x0004#define I2C_TX_ISRC 0x0005#define I2C_SCD_ISRC 0x0006#define I2C_AAS_ISRC 0x0007// I2CMSG structure defines#define I2C_NO_STOP 0#define I2C_YES_STOP 1#define I2C_RECEIVE 0#define I2C_TRANSMIT 1#define I2C_MAX_BUFFER_SIZE 4// I2C Slave State defines#define I2C_NOTSLAVE 0#define I2C_ADDR_AS_SLAVE 1#define I2C_ST_MSG_READY 2// I2C Slave Receiver messages defines#define I2C_SND_MSG1 1#define I2C_SND_MSG2 2// I2C State defines#define I2C_IDLE 0#define I2C_SLAVE_RECEIVER 1#define I2C_SLAVE_TRANSMITTER 2#define I2C_MASTER_RECEIVER 3#define I2C_MASTER_TRANSMITTER 4// I2C Message Commands for I2CMSG struct#define I2C_MSGSTAT_INACTIVE 0x0000#define I2C_MSGSTAT_SEND_WITHSTOP 0x0010#define I2C_MSGSTAT_WRITE_BUSY 0x0011#define I2C_MSGSTAT_SEND_NOSTOP 0x0020#define I2C_MSGSTAT_SEND_NOSTOP_BUSY 0x0021#define I2C_MSGSTAT_RESTART 0x0022#define I2C_MSGSTAT_READ_BUSY 0x0023// Generic defines#define I2C_TRUE 1#define I2C_FALSE 0#define I2C_YES 1#define I2C_NO 0#define I2C_DUMMY_BYTE 0//--------------------------------------------// Structures//--------------------------------------------// I2C Message Structurestruct I2CMSG {Uint16 MsgStatus; // Word stating what state msg is in:// I2C_MSGCMD_INACTIVE = do not send msg// I2C_MSGCMD_BUSY = msg start has been sent,// awaiting stop// I2C_MSGCMD_SEND_WITHSTOP = command to send// master trans msg complete with a stop bit// I2C_MSGCMD_SEND_NOSTOP = command to send// master trans msg without the stop bit// I2C_MSGCMD_RESTART = command to send a restart// as a master receiver with a stop bitUint16 SlaveAddress; // I2C address of slave msg is intended forUint16 NumOfBytes; // Num of valid bytes in (or to be put in MsgBuffer)Uint16 MemoryHighAddr; // EEPROM address of data associated with msg (high byte)Uint16 MemoryLowAddr; // EEPROM address of data associated with msg (low byte)Uint16 MsgBuffer[I2C_MAX_BUFFER_SIZE]; // Array holding msg data - max that// MAX_BUFFER_SIZE can be is 4 due to// the FIFO's};#endif // end of DSP2802x_I2C_DEFINES_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:43cfd8c72a69e0cae39bc32b6a74571520c479609aba78260217319806037a31size 317912345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:55:50 $//###########################################################################//// FILE: DSP2802x_NmiIntrupt.h//// TITLE: DSP2802x Device NMI Interrupt Register Definitions////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_NMIINTRUPT_H#define DSP2802x_NMIINTRUPT_H#ifdef __cplusplusextern "C" {#endif//===========================================================================// NMI Interrupt Register Bit Definitions//struct NMICFG_BITS { // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 CLOCKFAIL:1; // 1 Fail Interrupt Enable BitsUint16 rsvd2:14; // 15:02 reserved};union NMICFG_REG {Uint16 all;struct NMICFG_BITS bit;};struct NMIFLG_BITS { // bits descriptionUint16 NMIINT:1; // 0 NMI Interrupt FlagUint16 CLOCKFAIL:1; // 1 Clock Fail Interrupt FlagsUint16 rsvd1:14; // 15:02 reserved};union NMIFLG_REG {Uint16 all;struct NMIFLG_BITS bit;};struct NMIFLGCLR_BITS { // bits descriptionUint16 NMIINT:1; // 0 NMIINT Flag Clear BitUint16 CLOCKFAIL:1; // 1 CLOCKFAIL Flag Clear BitUint16 rsvd1:14; // 15:02 reserved};union NMIFLGCLR_REG {Uint16 all;struct NMIFLGCLR_BITS bit;};struct NMIFLGFRC_BITS { // bits descriptionUint16 rsvd1:1; // 0 reservedUint16 CLOCKFAIL:1; // 1 CLOCKFAIL Flag Force BitUint16 rsvd2:14; // 15:02 reserved};union NMIFLGFRC_REG {Uint16 all;struct NMIFLGFRC_BITS bit;};//===========================================================================// NMI Interrupt Register Definitions//struct NMIINTRUPT_REGS {union NMICFG_REG NMICFG;union NMIFLG_REG NMIFLG;union NMIFLGCLR_REG NMIFLGCLR;union NMIFLGFRC_REG NMIFLGFRC;Uint16 NMIWDCNT;Uint16 NMIWDPRD;Uint16 rsvd1[10];};//===========================================================================// NMI Interrupt External References and Function Declarations//extern volatile struct NMIINTRUPT_REGS NmiIntruptRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_NMIINTRUPT_H definition//===========================================================================// End of file//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:6e4259fd5dd427dac269a7abaf44206126e0d47ed0a7348e9639578958132421size 5913123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:55:53 $//###########################################################################//// FILE: DSP2802x_PieCtrl.h//// TITLE: DSP2802x Device PIE Control Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_PIE_CTRL_H#define DSP2802x_PIE_CTRL_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// PIE Control Register Bit Definitions://// PIECTRL: Register bit definitions:struct PIECTRL_BITS { // bits descriptionUint16 ENPIE:1; // 0 Enable PIE blockUint16 PIEVECT:15; // 15:1 Fetched vector address};union PIECTRL_REG {Uint16 all;struct PIECTRL_BITS bit;};// PIEIER: Register bit definitions:struct PIEIER_BITS { // bits descriptionUint16 INTx1:1; // 0 INTx.1Uint16 INTx2:1; // 1 INTx.2Uint16 INTx3:1; // 2 INTx.3Uint16 INTx4:1; // 3 INTx.4Uint16 INTx5:1; // 4 INTx.5Uint16 INTx6:1; // 5 INTx.6Uint16 INTx7:1; // 6 INTx.7Uint16 INTx8:1; // 7 INTx.8Uint16 rsvd:8; // 15:8 reserved};union PIEIER_REG {Uint16 all;struct PIEIER_BITS bit;};// PIEIFR: Register bit definitions:struct PIEIFR_BITS { // bits descriptionUint16 INTx1:1; // 0 INTx.1Uint16 INTx2:1; // 1 INTx.2Uint16 INTx3:1; // 2 INTx.3Uint16 INTx4:1; // 3 INTx.4Uint16 INTx5:1; // 4 INTx.5Uint16 INTx6:1; // 5 INTx.6Uint16 INTx7:1; // 6 INTx.7Uint16 INTx8:1; // 7 INTx.8Uint16 rsvd:8; // 15:8 reserved};union PIEIFR_REG {Uint16 all;struct PIEIFR_BITS bit;};// PIEACK: Register bit definitions:struct PIEACK_BITS { // bits descriptionUint16 ACK1:1; // 0 Acknowledge PIE interrupt group 1Uint16 ACK2:1; // 1 Acknowledge PIE interrupt group 2Uint16 ACK3:1; // 2 Acknowledge PIE interrupt group 3Uint16 ACK4:1; // 3 Acknowledge PIE interrupt group 4Uint16 ACK5:1; // 4 Acknowledge PIE interrupt group 5Uint16 ACK6:1; // 5 Acknowledge PIE interrupt group 6Uint16 ACK7:1; // 6 Acknowledge PIE interrupt group 7Uint16 ACK8:1; // 7 Acknowledge PIE interrupt group 8Uint16 ACK9:1; // 8 Acknowledge PIE interrupt group 9Uint16 ACK10:1; // 9 Acknowledge PIE interrupt group 10Uint16 ACK11:1; // 10 Acknowledge PIE interrupt group 11Uint16 ACK12:1; // 11 Acknowledge PIE interrupt group 12Uint16 rsvd:4; // 15:12 reserved};union PIEACK_REG {Uint16 all;struct PIEACK_BITS bit;};//---------------------------------------------------------------------------// PIE Control Register File://struct PIE_CTRL_REGS {union PIECTRL_REG PIECTRL; // PIE control registerunion PIEACK_REG PIEACK; // PIE acknowledgeunion PIEIER_REG PIEIER1; // PIE INT1 IER registerunion PIEIFR_REG PIEIFR1; // PIE INT1 IFR registerunion PIEIER_REG PIEIER2; // PIE INT2 IER registerunion PIEIFR_REG PIEIFR2; // PIE INT2 IFR registerunion PIEIER_REG PIEIER3; // PIE INT3 IER registerunion PIEIFR_REG PIEIFR3; // PIE INT3 IFR registerunion PIEIER_REG PIEIER4; // PIE INT4 IER registerunion PIEIFR_REG PIEIFR4; // PIE INT4 IFR registerunion PIEIER_REG PIEIER5; // PIE INT5 IER registerunion PIEIFR_REG PIEIFR5; // PIE INT5 IFR registerunion PIEIER_REG PIEIER6; // PIE INT6 IER registerunion PIEIFR_REG PIEIFR6; // PIE INT6 IFR registerunion PIEIER_REG PIEIER7; // PIE INT7 IER registerunion PIEIFR_REG PIEIFR7; // PIE INT7 IFR registerunion PIEIER_REG PIEIER8; // PIE INT8 IER registerunion PIEIFR_REG PIEIFR8; // PIE INT8 IFR registerunion PIEIER_REG PIEIER9; // PIE INT9 IER registerunion PIEIFR_REG PIEIFR9; // PIE INT9 IFR registerunion PIEIER_REG PIEIER10; // PIE INT10 IER registerunion PIEIFR_REG PIEIFR10; // PIE INT10 IFR registerunion PIEIER_REG PIEIER11; // PIE INT11 IER registerunion PIEIFR_REG PIEIFR11; // PIE INT11 IFR registerunion PIEIER_REG PIEIER12; // PIE INT12 IER registerunion PIEIFR_REG PIEIFR12; // PIE INT12 IFR register};#define PIEACK_GROUP1 0x0001#define PIEACK_GROUP2 0x0002#define PIEACK_GROUP3 0x0004#define PIEACK_GROUP4 0x0008#define PIEACK_GROUP5 0x0010#define PIEACK_GROUP6 0x0020#define PIEACK_GROUP7 0x0040#define PIEACK_GROUP8 0x0080#define PIEACK_GROUP9 0x0100#define PIEACK_GROUP10 0x0200#define PIEACK_GROUP11 0x0400#define PIEACK_GROUP12 0x0800//---------------------------------------------------------------------------// PIE Control Registers External References & Function Declarations://extern volatile struct PIE_CTRL_REGS PieCtrlRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_PIE_CTRL_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:502c28074d1a4582ae512dd48b1c8bff1dbf3854b1062291af9e6d950d3478d1size 6298123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205// TI File $Revision: /main/2 $// Checkin $Date: November 7, 2008 16:01:35 $//###########################################################################//// FILE: DSP2802x_PieVect.h//// TITLE: DSP2802x Devices PIE Vector Table Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_PIE_VECT_H#define DSP2802x_PIE_VECT_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// PIE Interrupt Vector Table Definition://// Create a user type called PINT (pointer to interrupt):typedef interrupt void(*PINT)(void);// Define Vector Table:struct PIE_VECT_TABLE {// Reset is never fetched from this table.// It will always be fetched from 0x3FFFC0 in// boot ROMPINT PIE1_RESERVED;PINT PIE2_RESERVED;PINT PIE3_RESERVED;PINT PIE4_RESERVED;PINT PIE5_RESERVED;PINT PIE6_RESERVED;PINT PIE7_RESERVED;PINT PIE8_RESERVED;PINT PIE9_RESERVED;PINT PIE10_RESERVED;PINT PIE11_RESERVED;PINT PIE12_RESERVED;PINT PIE13_RESERVED;// Non-Peripheral Interrupts:PINT TINT1; // CPU-Timer1PINT TINT2; // CPU-Timer2PINT DATALOG; // Datalogging interruptPINT RTOSINT; // RTOS interruptPINT EMUINT; // Emulation interruptPINT NMI; // Non-maskable interruptPINT ILLEGAL; // Illegal operation TRAPPINT USER1; // User Defined trap 1PINT USER2; // User Defined trap 2PINT USER3; // User Defined trap 3PINT USER4; // User Defined trap 4PINT USER5; // User Defined trap 5PINT USER6; // User Defined trap 6PINT USER7; // User Defined trap 7PINT USER8; // User Defined trap 8PINT USER9; // User Defined trap 9PINT USER10; // User Defined trap 10PINT USER11; // User Defined trap 11PINT USER12; // User Defined trap 12// Group 1 PIE Peripheral Vectors:PINT ADCINT1; // ADC - if Group 10 ADCINT1 is enabled, this must be rsvd1_1PINT ADCINT2; // ADC - if Group 10 ADCINT2 is enabled, this must be rsvd1_2PINT rsvd1_3;PINT XINT1;PINT XINT2;PINT ADCINT9; // ADCPINT TINT0; // Timer 0PINT WAKEINT; // WD// Group 2 PIE Peripheral Vectors:PINT EPWM1_TZINT; // EPWM-1PINT EPWM2_TZINT; // EPWM-2PINT EPWM3_TZINT; // EPWM-3PINT EPWM4_TZINT; // EPWM-4PINT rsvd2_5;PINT rsvd2_6;PINT rsvd2_7;PINT rsvd2_8;// Group 3 PIE Peripheral Vectors:PINT EPWM1_INT; // EPWM-1PINT EPWM2_INT; // EPWM-2PINT EPWM3_INT; // EPWM-3PINT EPWM4_INT; // EPWM-4PINT rsvd3_5;PINT rsvd3_6;PINT rsvd3_7;PINT rsvd3_8;// Group 4 PIE Peripheral Vectors:PINT ECAP1_INT; // ECAP-1PINT rsvd4_2;PINT rsvd4_3;PINT rsvd4_4;PINT rsvd4_5;PINT rsvd4_6;PINT rsvd4_7;PINT rsvd4_8;// Group 5 PIE Peripheral Vectors:PINT rsvd5_1;PINT rsvd5_2;PINT rsvd5_3;PINT rsvd5_4;PINT rsvd5_5;PINT rsvd5_6;PINT rsvd5_7;PINT rsvd5_8;// Group 6 PIE Peripheral Vectors:PINT SPIRXINTA; // SPI-APINT SPITXINTA; // SPI-APINT rsvd6_3;PINT rsvd6_4;PINT rsvd6_5;PINT rsvd6_6;PINT rsvd6_7;PINT rsvd6_8;// Group 7 PIE Peripheral Vectors:PINT rsvd7_1;PINT rsvd7_2;PINT rsvd7_3;PINT rsvd7_4;PINT rsvd7_5;PINT rsvd7_6;PINT rsvd7_7;PINT rsvd7_8;// Group 8 PIE Peripheral Vectors:PINT I2CINT1A; // I2C-APINT I2CINT2A; // I2C-APINT rsvd8_3;PINT rsvd8_4;PINT rsvd8_5;PINT rsvd8_6;PINT rsvd8_7;PINT rsvd8_8;// Group 9 PIE Peripheral Vectors:PINT SCIRXINTA; // SCI-APINT SCITXINTA; // SCI-APINT rsvd9_3;PINT rsvd9_4;PINT rsvd9_5;PINT rsvd9_6;PINT rsvd9_7;PINT rsvd9_8;// Group 10 PIE Peripheral Vectors:PINT rsvd10_1; // Can be ADCINT1, but must make ADCINT1 in Group 1 space "reserved".PINT rsvd10_2; // Can be ADCINT2, but must make ADCINT2 in Group 1 space "reserved".PINT ADCINT3; // ADCPINT ADCINT4; // ADCPINT ADCINT5; // ADCPINT ADCINT6; // ADCPINT ADCINT7; // ADCPINT ADCINT8; // ADC// Group 11 PIE Peripheral Vectors:PINT rsvd11_1;PINT rsvd11_2;PINT rsvd11_3;PINT rsvd11_4;PINT rsvd11_5;PINT rsvd11_6;PINT rsvd11_7;PINT rsvd11_8;// Group 12 PIE Peripheral Vectors:PINT XINT3;PINT rsvd12_2;PINT rsvd12_3;PINT rsvd12_4;PINT rsvd12_5;PINT rsvd12_6;PINT rsvd12_7;PINT rsvd12_8;};//---------------------------------------------------------------------------// PIE Interrupt Vector Table External References & Function Declarations://extern struct PIE_VECT_TABLE PieVectTable;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_PIE_VECT_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:c8718e38be30ae723ec0368c9721596f3481f3c7f37a9771bc49629260c9c826size 7887123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:55:59 $//###########################################################################//// FILE: DSP2802x_Sci.h//// TITLE: DSP2802x Device SCI Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_SCI_H#define DSP2802x_SCI_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// SCI Individual Register Bit Definitions//----------------------------------------------------------// SCICCR communication control register bit definitions://struct SCICCR_BITS { // bit descriptionUint16 SCICHAR:3; // 2:0 Character length controlUint16 ADDRIDLE_MODE:1; // 3 ADDR/IDLE Mode controlUint16 LOOPBKENA:1; // 4 Loop Back enableUint16 PARITYENA:1; // 5 Parity enableUint16 PARITY:1; // 6 Even or Odd ParityUint16 STOPBITS:1; // 7 Number of Stop BitsUint16 rsvd1:8; // 15:8 reserved};union SCICCR_REG {Uint16 all;struct SCICCR_BITS bit;};//-------------------------------------------// SCICTL1 control register 1 bit definitions://struct SCICTL1_BITS { // bit descriptionUint16 RXENA:1; // 0 SCI receiver enableUint16 TXENA:1; // 1 SCI transmitter enableUint16 SLEEP:1; // 2 SCI sleepUint16 TXWAKE:1; // 3 Transmitter wakeup methodUint16 rsvd:1; // 4 reservedUint16 SWRESET:1; // 5 Software resetUint16 RXERRINTENA:1; // 6 Recieve interrupt enableUint16 rsvd1:9; // 15:7 reserved};union SCICTL1_REG {Uint16 all;struct SCICTL1_BITS bit;};//---------------------------------------------// SCICTL2 control register 2 bit definitions://struct SCICTL2_BITS { // bit descriptionUint16 TXINTENA:1; // 0 Transmit interrupt enableUint16 RXBKINTENA:1; // 1 Receiver-buffer break enableUint16 rsvd:4; // 5:2 reservedUint16 TXEMPTY:1; // 6 Transmitter empty flagUint16 TXRDY:1; // 7 Transmitter ready flagUint16 rsvd1:8; // 15:8 reserved};union SCICTL2_REG {Uint16 all;struct SCICTL2_BITS bit;};//---------------------------------------------------// SCIRXST Receiver status register bit definitions://struct SCIRXST_BITS { // bit descriptionUint16 rsvd:1; // 0 reservedUint16 RXWAKE:1; // 1 Receiver wakeup detect flagUint16 PE:1; // 2 Parity error flagUint16 OE:1; // 3 Overrun error flagUint16 FE:1; // 4 Framing error flagUint16 BRKDT:1; // 5 Break-detect flagUint16 RXRDY:1; // 6 Receiver ready flagUint16 RXERROR:1; // 7 Receiver error flag};union SCIRXST_REG {Uint16 all;struct SCIRXST_BITS bit;};//----------------------------------------------------// SCIRXBUF Receiver Data Buffer with FIFO bit definitions://struct SCIRXBUF_BITS { // bits descriptionUint16 RXDT:8; // 7:0 Receive wordUint16 rsvd:6; // 13:8 reservedUint16 SCIFFPE:1; // 14 SCI PE error in FIFO modeUint16 SCIFFFE:1; // 15 SCI FE error in FIFO mode};union SCIRXBUF_REG {Uint16 all;struct SCIRXBUF_BITS bit;};//--------------------------------------------------// SCIPRI Priority control register bit definitions:////struct SCIPRI_BITS { // bit descriptionUint16 rsvd:3; // 2:0 reservedUint16 FREE:1; // 3 Free emulation suspend modeUint16 SOFT:1; // 4 Soft emulation suspend modeUint16 rsvd1:3; // 7:5 reserved};union SCIPRI_REG {Uint16 all;struct SCIPRI_BITS bit;};//-------------------------------------------------// SCI FIFO Transmit register bit definitions:////struct SCIFFTX_BITS { // bit descriptionUint16 TXFFIL:5; // 4:0 Interrupt levelUint16 TXFFIENA:1; // 5 Interrupt enableUint16 TXFFINTCLR:1; // 6 Clear INT flagUint16 TXFFINT:1; // 7 INT flagUint16 TXFFST:5; // 12:8 FIFO statusUint16 TXFIFOXRESET:1; // 13 FIFO resetUint16 SCIFFENA:1; // 14 Enhancement enableUint16 SCIRST:1; // 15 SCI reset rx/tx channels};union SCIFFTX_REG {Uint16 all;struct SCIFFTX_BITS bit;};//------------------------------------------------// SCI FIFO recieve register bit definitions:////struct SCIFFRX_BITS { // bits descriptionUint16 RXFFIL:5; // 4:0 Interrupt levelUint16 RXFFIENA:1; // 5 Interrupt enableUint16 RXFFINTCLR:1; // 6 Clear INT flagUint16 RXFFINT:1; // 7 INT flagUint16 RXFFST:5; // 12:8 FIFO statusUint16 RXFIFORESET:1; // 13 FIFO resetUint16 RXFFOVRCLR:1; // 14 Clear overflowUint16 RXFFOVF:1; // 15 FIFO overflow};union SCIFFRX_REG {Uint16 all;struct SCIFFRX_BITS bit;};// SCI FIFO control register bit definitions:struct SCIFFCT_BITS { // bits descriptionUint16 FFTXDLY:8; // 7:0 FIFO transmit delayUint16 rsvd:5; // 12:8 reservedUint16 CDC:1; // 13 Auto baud mode enableUint16 ABDCLR:1; // 14 Auto baud clearUint16 ABD:1; // 15 Auto baud detect};union SCIFFCT_REG {Uint16 all;struct SCIFFCT_BITS bit;};//---------------------------------------------------------------------------// SCI Register File://struct SCI_REGS {union SCICCR_REG SCICCR; // Communications control registerunion SCICTL1_REG SCICTL1; // Control register 1Uint16 SCIHBAUD; // Baud rate (high) registerUint16 SCILBAUD; // Baud rate (low) registerunion SCICTL2_REG SCICTL2; // Control register 2union SCIRXST_REG SCIRXST; // Recieve status registerUint16 SCIRXEMU; // Recieve emulation buffer registerunion SCIRXBUF_REG SCIRXBUF; // Recieve data bufferUint16 rsvd1; // reservedUint16 SCITXBUF; // Transmit data bufferunion SCIFFTX_REG SCIFFTX; // FIFO transmit registerunion SCIFFRX_REG SCIFFRX; // FIFO recieve registerunion SCIFFCT_REG SCIFFCT; // FIFO control registerUint16 rsvd2; // reservedUint16 rsvd3; // reservedunion SCIPRI_REG SCIPRI; // FIFO Priority control};//---------------------------------------------------------------------------// SCI External References & Function Declarations://extern volatile struct SCI_REGS SciaRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_SCI_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:721686ea3cb14c162d8c694d9780499b2c03eb1ef2c11227bc9644e0ba7add44size 6212123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:56:02 $//###########################################################################//// FILE: DSP2802x_Spi.h//// TITLE: DSP2802x Device SPI Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_SPI_H#define DSP2802x_SPI_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// SPI Individual Register Bit Definitions://// SPI FIFO Transmit register bit definitions:struct SPIFFTX_BITS { // bit descriptionUint16 TXFFIL:5; // 4:0 Interrupt levelUint16 TXFFIENA:1; // 5 Interrupt enableUint16 TXFFINTCLR:1; // 6 Clear INT flagUint16 TXFFINT:1; // 7 INT flagUint16 TXFFST:5; // 12:8 FIFO statusUint16 TXFIFO:1; // 13 FIFO resetUint16 SPIFFENA:1; // 14 Enhancement enableUint16 SPIRST:1; // 15 Reset SPI};union SPIFFTX_REG {Uint16 all;struct SPIFFTX_BITS bit;};//--------------------------------------------// SPI FIFO recieve register bit definitions:////struct SPIFFRX_BITS { // bits descriptionUint16 RXFFIL:5; // 4:0 Interrupt levelUint16 RXFFIENA:1; // 5 Interrupt enableUint16 RXFFINTCLR:1; // 6 Clear INT flagUint16 RXFFINT:1; // 7 INT flagUint16 RXFFST:5; // 12:8 FIFO statusUint16 RXFIFORESET:1; // 13 FIFO resetUint16 RXFFOVFCLR:1; // 14 Clear overflowUint16 RXFFOVF:1; // 15 FIFO overflow};union SPIFFRX_REG {Uint16 all;struct SPIFFRX_BITS bit;};//--------------------------------------------// SPI FIFO control register bit definitions:////struct SPIFFCT_BITS { // bits descriptionUint16 TXDLY:8; // 7:0 FIFO transmit delayUint16 rsvd:8; // 15:8 reserved};union SPIFFCT_REG {Uint16 all;struct SPIFFCT_BITS bit;};//---------------------------------------------// SPI configuration register bit definitions:////struct SPICCR_BITS { // bits descriptionUint16 SPICHAR:4; // 3:0 Character length controlUint16 SPILBK:1; // 4 Loop-back enable/disableUint16 rsvd1:1; // 5 reservedUint16 CLKPOLARITY:1; // 6 Clock polarityUint16 SPISWRESET:1; // 7 SPI SW ResetUint16 rsvd2:8; // 15:8 reserved};union SPICCR_REG {Uint16 all;struct SPICCR_BITS bit;};//-------------------------------------------------// SPI operation control register bit definitions:////struct SPICTL_BITS { // bits descriptionUint16 SPIINTENA:1; // 0 Interrupt enableUint16 TALK:1; // 1 Master/Slave transmit enableUint16 MASTER_SLAVE:1; // 2 Network control modeUint16 CLK_PHASE:1; // 3 Clock phase selectUint16 OVERRUNINTENA:1; // 4 Overrun interrupt enableUint16 rsvd:11; // 15:5 reserved};union SPICTL_REG {Uint16 all;struct SPICTL_BITS bit;};//--------------------------------------// SPI status register bit definitions:////struct SPISTS_BITS { // bits descriptionUint16 rsvd1:5; // 4:0 reservedUint16 BUFFULL_FLAG:1; // 5 SPI transmit buffer full flagUint16 INT_FLAG:1; // 6 SPI interrupt flagUint16 OVERRUN_FLAG:1; // 7 SPI reciever overrun flagUint16 rsvd2:8; // 15:8 reserved};union SPISTS_REG {Uint16 all;struct SPISTS_BITS bit;};//------------------------------------------------// SPI priority control register bit definitions:////struct SPIPRI_BITS { // bits descriptionUint16 TRIWIRE:1; // 0 3-wire mode select bitUint16 rsvd1:3; // 3:1 reservedUint16 FREE:1; // 4 Free emulation mode controlUint16 SOFT:1; // 5 Soft emulation mode controlUint16 PRIORITY:1; // 6 Interrupt priority selectUint16 rsvd2:9; // 15:7 reserved};union SPIPRI_REG {Uint16 all;struct SPIPRI_BITS bit;};//---------------------------------------------------------------------------// SPI Register File://struct SPI_REGS {union SPICCR_REG SPICCR; // Configuration registerunion SPICTL_REG SPICTL; // Operation control registerunion SPISTS_REG SPISTS; // Status registerUint16 rsvd1; // reservedUint16 SPIBRR; // Baud RateUint16 rsvd2; // reservedUint16 SPIRXEMU; // Emulation bufferUint16 SPIRXBUF; // Serial input bufferUint16 SPITXBUF; // Serial output bufferUint16 SPIDAT; // Serial dataunion SPIFFTX_REG SPIFFTX; // FIFO transmit registerunion SPIFFRX_REG SPIFFRX; // FIFO recieve registerunion SPIFFCT_REG SPIFFCT; // FIFO control registerUint16 rsvd3[2]; // reservedunion SPIPRI_REG SPIPRI; // FIFO Priority control};//---------------------------------------------------------------------------// SPI External References & Function Declarations://extern volatile struct SPI_REGS SpiaRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_SPI_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:d719560d8f14e0789f1bce2b5eff3145aade670363253c88cd84719bb8554ec1size 15789123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428// TI File $Revision: /main/6 $// Checkin $Date: October 16, 2009 15:43:41 $//###########################################################################//// FILE: DSP2802x_SysCtrl.h//// TITLE: DSP2802x Device System Control Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_SYS_CTRL_H#define DSP2802x_SYS_CTRL_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------// System Control Individual Register Bit Definitions://// XCLKOUT Controlstruct XCLK_BITS { // bits descriptionUint16 XCLKOUTDIV:2; // 1:0 XCLKOUT Divide RatioUint16 rsvd1:3; // 4:2 reservedUint16 rsvd2:1; // 5 reservedUint16 XCLKINSEL:1; // 6 XCLKIN Source Select bitUint16 rsvd3:9; // 15:7 reserved};union XCLK_REG {Uint16 all;struct XCLK_BITS bit;};// PLL Status Registerstruct PLLSTS_BITS { // bits descriptionUint16 PLLLOCKS:1; // 0 PLL lock statusUint16 rsvd1:1; // 1 reservedUint16 PLLOFF:1; // 2 PLL off bitUint16 MCLKSTS:1; // 3 Missing clock status bitUint16 MCLKCLR:1; // 4 Missing clock clear bitUint16 OSCOFF:1; // 5 Oscillator clock offUint16 MCLKOFF:1; // 6 Missing clock detectUint16 DIVSEL:2; // 8:7 Divide select (/4 default)Uint16 rsvd2:6; // 14:9 reservedUint16 NORMRDYE:1; // 15 VREG NORMRDY enable bit};union PLLSTS_REG {Uint16 all;struct PLLSTS_BITS bit;};// Clock Control Registerstruct CLKCTL_BITS { // bits descriptionUint16 OSCCLKSRCSEL:1; // 0 Oscillator clock source select bitUint16 OSCCLKSRC2SEL:1; // 1 Oscillator 2 clock source select bitUint16 WDCLKSRCSEL:1; // 2 Watchdog clock source select bitUint16 TMR2CLKSRCSEL:2; // 4:3 CPU timer 2 clock source select bitUint16 TMR2CLKPRESCALE:3; // 7:5 CPU timer 2 clock pre-scale valueUint16 INTOSC1OFF:1; // 8 Internal oscillator off bitUint16 INTOSC1HALTI:1; // 9 Internal oscillator 1 halt mode ignore bitUint16 INTOSC2OFF:1; // 10 Internal oscillator 2 off bitUint16 INTOSC2HALTI:1; // 11 Internal oscillator 2 halt mode ignore bitUint16 WDHALTI:1; // 12 Watchdog halt mode ignore bitUint16 XCLKINOFF:1; // 13 XCLKIN off bitUint16 XTALOSCOFF:1; // 14 Crystal (External) oscillator off bitUint16 NMIRESETSEL:1; // 15 NMI reset select bit};union CLKCTL_REG {Uint16 all;struct CLKCTL_BITS bit;};// Internal Oscillator 1 Trimstruct INTOSC1TRIM_BITS { // bits descriptionUint16 COARSETRIM:8; // 7:0 8-bit coarse trim valueUint16 rsvd1:1; // 8 reservedUint16 FINETRIM:6; // 9:14 6-bit fine trim valueUint16 rsvd2:1; // 15 reserved};union INTOSC1TRIM_REG {Uint16 all;struct INTOSC1TRIM_BITS bit;};// Internal Oscillator 2 Trimstruct INTOSC2TRIM_BITS { // bits descriptionUint16 COARSETRIM:8; // 7:0 8-bit coarse trim valueUint16 rsvd1:1; // 8 reservedUint16 FINETRIM:6; // 9:14 6-bit fine trim valueUint16 rsvd2:1; // 15 reserved};union INTOSC2TRIM_REG {Uint16 all;struct INTOSC2TRIM_BITS bit;};// Low speed peripheral clock register bit definitions:struct LOSPCP_BITS { // bits descriptionUint16 LSPCLK:3; // 2:0 Rate relative to SYSCLKOUTUint16 rsvd1:13; // 15:3 reserved};union LOSPCP_REG {Uint16 all;struct LOSPCP_BITS bit;};// Peripheral clock control register 0 bit definitions:struct PCLKCR0_BITS { // bits descriptionUint16 HRPWMENCLK:1; // 0 Enable low speed clk to HRPWMUint16 rsvd1:1; // 1 reservedUint16 TBCLKSYNC:1; // 2 ETWPM Module TBCLK enable/syncUint16 ADCENCLK:1; // 3 Enable high speed clk to ADCUint16 I2CAENCLK:1; // 4 Enable SYSCLKOUT to I2C-AUint16 rsvd2:3; // 7:5 reservedUint16 SPIAENCLK:1; // 8 Enable low speed clk to SPI-AUint16 rsvd3:1; // 9 reservedUint16 SCIAENCLK:1; // 10 Enable low speed clk to SCI-AUint16 rsvd4:5; // 15:11 reserved};union PCLKCR0_REG {Uint16 all;struct PCLKCR0_BITS bit;};// Peripheral clock control register 1 bit definitions:struct PCLKCR1_BITS { // bits descriptionUint16 EPWM1ENCLK:1; // 0 Enable SYSCLKOUT to EPWM1Uint16 EPWM2ENCLK:1; // 1 Enable SYSCLKOUT to EPWM2Uint16 EPWM3ENCLK:1; // 2 Enable SYSCLKOUT to EPWM3Uint16 EPWM4ENCLK:1; // 3 Enable SYSCLKOUT to EPWM4Uint16 rsvd1:4; // 7:4 reservedUint16 ECAP1ENCLK:1; // 8 Enable SYSCLKOUT to ECAP1Uint16 rsvd2:7; // 15:9 reserved};union PCLKCR1_REG {Uint16 all;struct PCLKCR1_BITS bit;};// Peripheral clock control register 3 bit definitions:struct PCLKCR3_BITS { // bits descriptionUint16 COMP1ENCLK:1; // 0 Enable SYSCLKOUT to COMP1Uint16 COMP2ENCLK:1; // 1 Enable SYSCLKOUT to COMP2Uint16 rsvd1:1; // 2 reservedUint16 rsvd2:5; // 7:3 reservedUint16 CPUTIMER0ENCLK:1; // 8 Enable SYSCLKOUT to CPUTIMER0Uint16 CPUTIMER1ENCLK:1; // 9 Enable SYSCLKOUT to CPUTIMER1Uint16 CPUTIMER2ENCLK:1; // 10 Enable SYSCLKOUT to CPUTIMER2Uint16 rsvd3:2; // 12:11 reservedUint16 GPIOINENCLK:1; // 13 Enable SYSCLKOUT to GPIOUint16 rsvd4:2; // 15:14};union PCLKCR3_REG {Uint16 all;struct PCLKCR3_BITS bit;};// PLL control register bit definitions:struct PLLCR_BITS { // bits descriptionUint16 DIV:4; // 3:0 Set clock ratio for the PLLUint16 rsvd1:12; // 15:4 reserved};union PLLCR_REG {Uint16 all;struct PLLCR_BITS bit;};// Low Power Mode 0 control register bit definitions:struct LPMCR0_BITS { // bits descriptionUint16 LPM:2; // 1:0 Set the low power modeUint16 QUALSTDBY:6; // 7:2 QualificationUint16 rsvd1:7; // 14:8 reservedUint16 WDINTE:1; // 15 Enables WD to wake the device from STANDBY};union LPMCR0_REG {Uint16 all;struct LPMCR0_BITS bit;};//---------------------------------------------------------------------------// System Control Register File://struct SYS_CTRL_REGS {union XCLK_REG XCLK; // 0: XCLKOUT Controlunion PLLSTS_REG PLLSTS; // 1: PLL Status Registerunion CLKCTL_REG CLKCTL; // 2: Clock Control RegisterUint16 PLLLOCKPRD; // 3: PLL Lock Period Registerunion INTOSC1TRIM_REG INTOSC1TRIM; // 4: Internal Oscillator 1 TrimUint16 rsvd1; // 5: reservedunion INTOSC2TRIM_REG INTOSC2TRIM; // 6: Internal Oscillator 2 TrimUint16 rsvd2[4]; // 7-10union LOSPCP_REG LOSPCP; // 11: Low-speed peripheral clock pre-scalerunion PCLKCR0_REG PCLKCR0; // 12: Peripheral clock control registerunion PCLKCR1_REG PCLKCR1; // 13: Peripheral clock control registerunion LPMCR0_REG LPMCR0; // 14: Low-power mode control register 0Uint16 rsvd3; // 15: reservedunion PCLKCR3_REG PCLKCR3; // 16: Peripheral clock registerunion PLLCR_REG PLLCR; // 17: PLL control register// No bit definitions are defined for SCSR because// a read-modify-write instruction can clear the WDOVERRIDE bitUint16 SCSR; // 18: System control and status registerUint16 WDCNTR; // 19: WD counter registerUint16 rsvd4; // 20Uint16 WDKEY; // 21: WD reset key registerUint16 rsvd5[3]; // 22-24// No bit definitions are defined for WDCR because// the proper value must be written to the WDCHK field// whenever writing to this register.Uint16 WDCR; // 25: WD timer control registerUint16 rsvd6[5]; // 26-28};//---------------------------------------------------------------------------// System Power Control Registers://// BOR configuration register bit definitions:struct BORCFG_BITS { // bits descriptionUint16 BORENZ:1; // 0 BOR enable active low bitUint16 rsvd1:15; // 15:1 reserved};union BORCFG_REG {Uint16 all;struct BORCFG_BITS bit;};struct SYS_PWR_CTRL_REGS {union BORCFG_REG BORCFG; // 0: BOR Configuration RegisterUint16 rsvd1[2]; // 1-2};/* --------------------------------------------------- *//* CSM Registers *//* *//* ----------------------------------------------------*//* CSM Status & Control register bit definitions */struct CSMSCR_BITS { // bit descriptionUint16 SECURE:1; // 0 Secure flagUint16 rsvd1:14; // 14-1 reservedUint16 FORCESEC:1; // 15 Force Secure control bit};/* Allow access to the bit fields or entire register */union CSMSCR_REG {Uint16 all;struct CSMSCR_BITS bit;};/* CSM Register File */struct CSM_REGS {Uint16 KEY0; // KEY reg bits 15-0Uint16 KEY1; // KEY reg bits 31-16Uint16 KEY2; // KEY reg bits 47-32Uint16 KEY3; // KEY reg bits 63-48Uint16 KEY4; // KEY reg bits 79-64Uint16 KEY5; // KEY reg bits 95-80Uint16 KEY6; // KEY reg bits 111-96Uint16 KEY7; // KEY reg bits 127-112Uint16 rsvd1; // reservedUint16 rsvd2; // reservedUint16 rsvd3; // reservedUint16 rsvd4; // reservedUint16 rsvd5; // reservedUint16 rsvd6; // reservedUint16 rsvd7; // reservedunion CSMSCR_REG CSMSCR; // CSM Status & Control register};/* Password locations */struct CSM_PWL {Uint16 PSWD0; // PSWD bits 15-0Uint16 PSWD1; // PSWD bits 31-16Uint16 PSWD2; // PSWD bits 47-32Uint16 PSWD3; // PSWD bits 63-48Uint16 PSWD4; // PSWD bits 79-64Uint16 PSWD5; // PSWD bits 95-80Uint16 PSWD6; // PSWD bits 111-96Uint16 PSWD7; // PSWD bits 127-112};/* Flash Registers */#define FLASH_SLEEP 0x0000;#define FLASH_STANDBY 0x0001;#define FLASH_ACTIVE 0x0003;/* Flash Option Register bit definitions */struct FOPT_BITS { // bit descriptionUint16 ENPIPE:1; // 0 Enable Pipeline ModeUint16 rsvd:15; // 1-15 reserved};/* Allow access to the bit fields or entire register */union FOPT_REG {Uint16 all;struct FOPT_BITS bit;};/* Flash Power Modes Register bit definitions */struct FPWR_BITS { // bit descriptionUint16 PWR:2; // 0-1 Power Mode bitsUint16 rsvd:14; // 2-15 reserved};/* Allow access to the bit fields or entire register */union FPWR_REG {Uint16 all;struct FPWR_BITS bit;};/* Flash Status Register bit definitions */struct FSTATUS_BITS { // bit descriptionUint16 PWRS:2; // 0-1 Power Mode Status bitsUint16 STDBYWAITS:1; // 2 Bank/Pump Sleep to Standby Wait Counter Status bitsUint16 ACTIVEWAITS:1; // 3 Bank/Pump Standby to Active Wait Counter Status bitsUint16 rsvd1:4; // 4-7 reservedUint16 V3STAT:1; // 8 VDD3V Status Latch bitUint16 rsvd2:7; // 9-15 reserved};/* Allow access to the bit fields or entire register */union FSTATUS_REG {Uint16 all;struct FSTATUS_BITS bit;};/* Flash Sleep to Standby Wait Counter Register bit definitions */struct FSTDBYWAIT_BITS { // bit descriptionUint16 STDBYWAIT:9; // 0-8 Bank/Pump Sleep to Standby Wait Count bitsUint16 rsvd:7; // 9-15 reserved};/* Allow access to the bit fields or entire register */union FSTDBYWAIT_REG {Uint16 all;struct FSTDBYWAIT_BITS bit;};/* Flash Standby to Active Wait Counter Register bit definitions */struct FACTIVEWAIT_BITS { // bit descriptionUint16 ACTIVEWAIT:9; // 0-8 Bank/Pump Standby to Active Wait Count bitsUint16 rsvd:7; // 9-15 reserved};/* Allow access to the bit fields or entire register */union FACTIVEWAIT_REG {Uint16 all;struct FACTIVEWAIT_BITS bit;};/* Bank Read Access Wait State Register bit definitions */struct FBANKWAIT_BITS { // bit descriptionUint16 RANDWAIT:4; // 0-3 Flash Random Read Wait State bitsUint16 rsvd1:4; // 4-7 reservedUint16 PAGEWAIT:4; // 8-11 Flash Paged Read Wait State bitsUint16 rsvd2:4; // 12-15 reserved};/* Allow access to the bit fields or entire register */union FBANKWAIT_REG {Uint16 all;struct FBANKWAIT_BITS bit;};/* OTP Read Access Wait State Register bit definitions */struct FOTPWAIT_BITS { // bit descriptionUint16 OTPWAIT:5; // 0-4 OTP Read Wait State bitsUint16 rsvd:11; // 5-15 reserved};/* Allow access to the bit fields or entire register */union FOTPWAIT_REG {Uint16 all;struct FOTPWAIT_BITS bit;};struct FLASH_REGS {union FOPT_REG FOPT; // Option RegisterUint16 rsvd1; // reservedunion FPWR_REG FPWR; // Power Modes Registerunion FSTATUS_REG FSTATUS; // Status Registerunion FSTDBYWAIT_REG FSTDBYWAIT; // Pump/Bank Sleep to Standby Wait State Registerunion FACTIVEWAIT_REG FACTIVEWAIT; // Pump/Bank Standby to Active Wait State Registerunion FBANKWAIT_REG FBANKWAIT; // Bank Read Access Wait State Registerunion FOTPWAIT_REG FOTPWAIT; // OTP Read Access Wait State Register};//---------------------------------------------------------------------------// System Control External References & Function Declarations://extern volatile struct SYS_CTRL_REGS SysCtrlRegs;extern volatile struct SYS_PWR_CTRL_REGS SysPwrCtrlRegs;extern volatile struct CSM_REGS CsmRegs;extern volatile struct CSM_PWL CsmPwl;extern volatile struct FLASH_REGS FlashRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_SYS_CTRL_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:e0b30feb495bd92c9ef498b54abfb62d74fb05c9a93766906fc86c065eeb7978size 1917123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263// TI File $Revision: /main/2 $// Checkin $Date: September 25, 2008 14:57:54 $//###########################################################################//// FILE: DSP2802x_XIntrupt.h//// TITLE: DSP2802x Device External Interrupt Register Definitions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP2802x_XINTRUPT_H#define DSP2802x_XINTRUPT_H#ifdef __cplusplusextern "C" {#endif//---------------------------------------------------------------------------struct XINTCR_BITS {Uint16 ENABLE:1; // 0 enable/disableUint16 rsvd1:1; // 1 reservedUint16 POLARITY:2; // 3:2 pos/neg, both triggeredUint16 rsvd2:12; //15:4 reserved};union XINTCR_REG {Uint16 all;struct XINTCR_BITS bit;};//---------------------------------------------------------------------------// External Interrupt Register File://struct XINTRUPT_REGS {union XINTCR_REG XINT1CR;union XINTCR_REG XINT2CR;union XINTCR_REG XINT3CR;Uint16 rsvd1[5];Uint16 XINT1CTR;Uint16 XINT2CTR;Uint16 XINT3CTR;Uint16 rsvd[5];};//---------------------------------------------------------------------------// External Interrupt References & Function Declarations://extern volatile struct XINTRUPT_REGS XIntruptRegs;#ifdef __cplusplus}#endif /* extern "C" */#endif // end of DSP2802x_XINTF_H definition//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:478cbe69d5a40f1f9d5f2ed3203ea2d1e6d5051eb387f0f674697167f9f65367size 78212345678910111213141516171819202122// TI File $Revision: /main/1 $// Checkin $Date: August 14, 2008 16:57:50 $//###########################################################################//// FILE: DSP28x_Project.h//// TITLE: DSP28x Project Headerfile and Examples Include File////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################ifndef DSP28x_PROJECT_H#define DSP28x_PROJECT_H#include "DSP2802x_Device.h" // DSP2802x Headerfile Include File#include "DSP2802x_Examples.h" // DSP2802x Examples Include File#endif // end of DSP28x_PROJECT_H definition
123version https://git-lfs.github.com/spec/v1oid sha256:6617bd0a56eab48cedc12265667887bbde653cbfd3d78621ada29b464556f5d1size 3010123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869//###########################################################################//// FILE: SFO_V6.H//// TITLE: Scale Factor Optimizer Library V6 Interface Header//////###########################################################################//// Ver | dd mmm yyyy | Who | Description of changes// =====|=============|======|===============================================// 0.03| 11 Aug 2008 | TI | New version (V6) with calibration logic separate// | from each ePWM channel.// 0.04| 03 Aug 2009 | TI | Minor update to set MEP_ScaleFactor limit to 255// | instead of 254.// | Now updates HRMSTEP register for// | auto-conversion only of MEP_ScaleFactor is <= 255////###########################################################################//============================================================================// Description: This header provides the function call interface// for the scale factor optimizer//============================================================================//============================================================================// Multiple include Guard//============================================================================#ifndef _SFO_V6_H#define _SFO_V6_H//============================================================================// C++ namespace//============================================================================#ifdef __cplusplusextern "C" {#endif//============================================================================// USER MUST UPDATE THIS CONSTANT FOR NUMBER OF HRPWM CHANNELS USED//============================================================================#define PWM_CH 5 // Equal # of HRPWM channels PLUS 1// i.e. PWM_CH is 9 for 8 channels, 7 for 6 channels, etc.//============================================================================// Function prototypes for MEP SFO//============================================================================int SFO(void); // SFO V6 Calibration Function//============================================================================// Useful Defines when Using SFO Functions//============================================================================#define SFO_INCOMPLETE 0#define SFO_COMPLETE 1#define SFO_ERROR 2//============================================================================// Multiple include Guard//============================================================================#endif // End: Multiple include Guard//============================================================================// C++ namespace//============================================================================#ifdef __cplusplus}#endif /* extern "C" */
123version https://git-lfs.github.com/spec/v1oid sha256:a96ed8bc8e9c0b2548d0d4b44d47d9305f2f573b4bbb97c502882fc38e36473fsize 5998123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155/*// TI File $Revision: /main/2 $// Checkin $Date: December 17, 2009 14:20:33 $//###########################################################################//// FILE: 280200_RAM_lnk.cmd//// TITLE: Linker Command File For 280200 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 280200 device.// This does not include flash or OTP.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F280200 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000200RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008200, length = 0x000200}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:d301a47c86d44261c22afeb646f717a5c9ec4b3fd90bbf492043eba01bd2817asize 6410123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165/*// TI File $Revision: /main/2 $// Checkin $Date: July 6, 2009 17:18:24 $//###########################################################################//// FILE: 28020_RAM_lnk.cmd//// TITLE: Linker Command File For 28020 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 28020 device.// This does not include flash or OTP.//// Keep in mind that L0 is protected by the code// security module.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F28020 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory blocks is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* For this example, L0 is split between PAGE 0 and PAGE 1 *//* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000200RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :/* For this example, L0 is split between PAGE 0 and PAGE 1 */BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008200, length = 0x000200}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:99ca05a7528d6180e64ae81d442f4672129eb5b25a636bb367211da8746268d5size 6410123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165/*// TI File $Revision: /main/2 $// Checkin $Date: July 6, 2009 17:18:30 $//###########################################################################//// FILE: 28021_RAM_lnk.cmd//// TITLE: Linker Command File For 28021 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 28021 device.// This does not include flash or OTP.//// Keep in mind that L0 is protected by the code// security module.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F28021 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory blocks is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* For this example, L0 is split between PAGE 0 and PAGE 1 *//* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000600RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :/* For this example, L0 is split between PAGE 0 and PAGE 1 */BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008600, length = 0x000600}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:ac8d3bb3f4f74187858c364232c27f3987bfb6e72d1952edea8aea57e4579d13size 6410123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165/*// TI File $Revision: /main/5 $// Checkin $Date: July 6, 2009 17:18:33 $//###########################################################################//// FILE: 28022_RAM_lnk.cmd//// TITLE: Linker Command File For 28022 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 28022 device.// This does not include flash or OTP.//// Keep in mind that L0 is protected by the code// security module.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F28022 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory blocks is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* For this example, L0 is split between PAGE 0 and PAGE 1 *//* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000900RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :/* For this example, L0 is split between PAGE 0 and PAGE 1 */BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008900, length = 0x000700}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:f93fea2277823b2c1c605bdb32004f8e6f48d85e01d0feb843f120fcc81bb3bdsize 6410123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165/*// TI File $Revision: /main/5 $// Checkin $Date: July 6, 2009 17:18:37 $//###########################################################################//// FILE: 28023_RAM_lnk.cmd//// TITLE: Linker Command File For 28023 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 28023 device.// This does not include flash or OTP.//// Keep in mind that L0 is protected by the code// security module.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F28023 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory blocks is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* For this example, L0 is split between PAGE 0 and PAGE 1 *//* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000900RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :/* For this example, L0 is split between PAGE 0 and PAGE 1 */BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008900, length = 0x000700}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:7b712cf0074c46a31fbe6d5cea017fa55114c45f44ad33daaeb4b34c0fdb7f9asize 6410123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165/*// TI File $Revision: /main/5 $// Checkin $Date: July 6, 2009 17:18:40 $//###########################################################################//// FILE: 28026_RAM_lnk.cmd//// TITLE: Linker Command File For 28026 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 28026 device.// This does not include flash or OTP.//// Keep in mind that L0 is protected by the code// security module.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F28026 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory blocks is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* For this example, L0 is split between PAGE 0 and PAGE 1 *//* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000900RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :/* For this example, L0 is split between PAGE 0 and PAGE 1 */BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008900, length = 0x000700}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:45cbd50210320f4331c2def3296e289e3fb619599dbcaa414341b14840228022size 6410123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165/*// TI File $Revision: /main/5 $// Checkin $Date: July 6, 2009 17:18:44 $//###########################################################################//// FILE: 28027_RAM_lnk.cmd//// TITLE: Linker Command File For 28027 examples that run out of RAM//// This ONLY includes all SARAM blocks on the 28027 device.// This does not include flash or OTP.//// Keep in mind that L0 is protected by the code// security module.//// What this means is in most cases you will want to move to// another memory map file which has more memory defined.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802x_headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the DSP2802xPAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F28027 are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory blocks is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks can be combinedif required to create a larger memory block.*/MEMORY{PAGE 0 :/* For this example, L0 is split between PAGE 0 and PAGE 1 *//* BEGIN is used for the "boot to SARAM" bootloader mode */BEGIN : origin = 0x000000, length = 0x000002RAMM0 : origin = 0x000050, length = 0x0003B0PRAML0 : origin = 0x008000, length = 0x000900RESET : origin = 0x3FFFC0, length = 0x000002IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */BOOTROM : origin = 0x3FF27C, length = 0x000D44PAGE 1 :/* For this example, L0 is split between PAGE 0 and PAGE 1 */BOOT_RSVD : origin = 0x000002, length = 0x00004E /* Part of M0, BOOT rom will use this for stack */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008900, length = 0x000700}SECTIONS{/* Setup for "boot to SARAM" mode:The codestart section (found in DSP28_CodeStartBranch.asm)re-directs execution to the start of user code. */codestart : > BEGIN, PAGE = 0ramfuncs : > RAMM0 PAGE = 0.text : > PRAML0, PAGE = 0.cinit : > RAMM0, PAGE = 0.pinit : > RAMM0, PAGE = 0.switch : > RAMM0, PAGE = 0.reset : > RESET, PAGE = 0, TYPE = DSECT /* not used, */.stack : > RAMM1, PAGE = 1.ebss : > DRAML0, PAGE = 1.econst : > DRAML0, PAGE = 1.esysmem : > RAMM1, PAGE = 1IQmath : > PRAML0, PAGE = 0IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*/}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:1b8ff869dce4812618f02f0518d695f2d65b311fa3b1326edece561647021721size 6030123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144/*// TI File $Revision: /main/6 $// Checkin $Date: October 16, 2009 15:43:38 $//###########################################################################//// FILE: DSP2802x_Headers_nonBIOS.cmd//// TITLE: DSP2802x Peripheral registers linker command file//// DESCRIPTION://// This file is for use in Non-BIOS applications.//// Linker command file to place the peripheral structures// used within the DSP2802x headerfiles into the correct memory// mapped locations.//// This version of the file includes the PieVectorTable structure.// For BIOS applications, please use the DSP2802x_Headers_BIOS.cmd file// which does not include the PieVectorTable structure.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*/MEMORY{PAGE 0: /* Program Memory */PAGE 1: /* Data Memory */DEV_EMU : origin = 0x000880, length = 0x000105 /* device emulation registers */SYS_PWR_CTL : origin = 0x000985, length = 0x000003 /* System power control registers */FLASH_REGS : origin = 0x000A80, length = 0x000060 /* FLASH registers */CSM : origin = 0x000AE0, length = 0x000010 /* code security module registers */ADC_RESULT : origin = 0x000B00, length = 0x000020 /* ADC Results register */CPU_TIMER0 : origin = 0x000C00, length = 0x000008 /* CPU Timer0 registers */CPU_TIMER1 : origin = 0x000C08, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/CPU_TIMER2 : origin = 0x000C10, length = 0x000008 /* CPU Timer0 registers (CPU Timer1 & Timer2 reserved TI use)*/PIE_CTRL : origin = 0x000CE0, length = 0x000020 /* PIE control registers */PIE_VECT : origin = 0x000D00, length = 0x000100 /* PIE Vector Table */COMP1 : origin = 0x006400, length = 0x000020 /* Comparator 1 registers */COMP2 : origin = 0x006420, length = 0x000020 /* Comparator 2 registers */EPWM1 : origin = 0x006800, length = 0x000040 /* Enhanced PWM 1 registers */EPWM2 : origin = 0x006840, length = 0x000040 /* Enhanced PWM 2 registers */EPWM3 : origin = 0x006880, length = 0x000040 /* Enhanced PWM 3 registers */EPWM4 : origin = 0x0068C0, length = 0x000040 /* Enhanced PWM 4 registers */ECAP1 : origin = 0x006A00, length = 0x000020 /* Enhanced Capture 1 registers */GPIOCTRL : origin = 0x006F80, length = 0x000040 /* GPIO control registers */GPIODAT : origin = 0x006FC0, length = 0x000020 /* GPIO data registers */GPIOINT : origin = 0x006FE0, length = 0x000020 /* GPIO interrupt/LPM registers */SYSTEM : origin = 0x007010, length = 0x000020 /* System control registers */SPIA : origin = 0x007040, length = 0x000010 /* SPI-A registers */SCIA : origin = 0x007050, length = 0x000010 /* SCI-A registers */NMIINTRUPT : origin = 0x007060, length = 0x000010 /* NMI Watchdog Interrupt Registers */XINTRUPT : origin = 0x007070, length = 0x000010 /* external interrupt registers */ADC : origin = 0x007100, length = 0x000080 /* ADC registers */I2CA : origin = 0x007900, length = 0x000040 /* I2C-A registers */CSM_PWL : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations. */PARTID : origin = 0x3D7FFF, length = 0x000001 /* Part ID register location */}SECTIONS{/*** PIE Vect Table and Boot ROM Variables Structures ***/UNION run = PIE_VECT, PAGE = 1{PieVectTableFileGROUP{EmuKeyVarEmuBModeVarFlashCallbackVarFlashScalingVar}}/*** Peripheral Frame 0 Register Structures ***/DevEmuRegsFile : > DEV_EMU, PAGE = 1SysPwrCtrlRegsFile: > SYS_PWR_CTL, PAGE = 1FlashRegsFile : > FLASH_REGS, PAGE = 1CsmRegsFile : > CSM, PAGE = 1AdcResultFile : > ADC_RESULT, PAGE = 1CpuTimer0RegsFile : > CPU_TIMER0, PAGE = 1CpuTimer1RegsFile : > CPU_TIMER1, PAGE = 1CpuTimer2RegsFile : > CPU_TIMER2, PAGE = 1PieCtrlRegsFile : > PIE_CTRL, PAGE = 1/*** Peripheral Frame 1 Register Structures ***/ECap1RegsFile : > ECAP1 PAGE = 1GpioCtrlRegsFile : > GPIOCTRL PAGE = 1GpioDataRegsFile : > GPIODAT PAGE = 1GpioIntRegsFile : > GPIOINT PAGE = 1/*** Peripheral Frame 2 Register Structures ***/SysCtrlRegsFile : > SYSTEM, PAGE = 1SpiaRegsFile : > SPIA, PAGE = 1SciaRegsFile : > SCIA, PAGE = 1NmiIntruptRegsFile: > NMIINTRUPT, PAGE = 1XIntruptRegsFile : > XINTRUPT, PAGE = 1AdcRegsFile : > ADC, PAGE = 1I2caRegsFile : > I2CA, PAGE = 1/*** Peripheral Frame 3 Register Structures ***/Comp1RegsFile : > COMP1, PAGE = 1Comp2RegsFile : > COMP2, PAGE = 1EPwm1RegsFile : > EPWM1 PAGE = 1EPwm2RegsFile : > EPWM2 PAGE = 1EPwm3RegsFile : > EPWM3 PAGE = 1EPwm4RegsFile : > EPWM4 PAGE = 1/*** Code Security Module Register Structures ***/CsmPwlFile : > CSM_PWL, PAGE = 1/*** Device Part ID Register Structures ***/PartIdRegsFile : > PARTID, PAGE = 1}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:93361a269ff0b191bd8eac95be224a3c56de58ecf05a6a2003a70756f0c3f16csize 8218123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190/*// TI File $Revision: /main/2 $// Checkin $Date: September 22, 2009 14:14:26 $//###########################################################################//// FILE: F28020.cmd//// TITLE: Linker Command File For F28020 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F28020PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory block is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000200 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHA : origin = 0x3F7000, length = 0x000F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASHA */FLASHB : origin = 0x3F6000, length = 0x001000 /* on-chip FLASH */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008200, length = 0x000200 /* on-chip RAM block L0 */FLASHC : origin = 0x3F5000, length = 0x002000 /* on-chip FLASH */FLASHD : origin = 0x3F4000, length = 0x001000 /* on-chp FLASH */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:29ff35075689ebd504f12a5a61203fd2e98a485a6038b57041709726d752a1a0size 7871123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184/*// TI File $Revision: /main/3 $// Checkin $Date: December 17, 2009 14:18:09 $//###########################################################################//// FILE: F280200.cmd//// TITLE: Linker Command File For F280200 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F280200PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000200 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHA : origin = 0x3F7000, length = 0x000F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASHA */FLASHB : origin = 0x3F6000, length = 0x001000 /* on-chip FLASH */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008200, length = 0x000200 /* on-chip RAM block L0 */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:170c50bd1de75b165949b0e6e02254d805bd710ef705ca37b056c1819a4cd14esize 8214123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190/*// TI File $Revision: /main/1 $// Checkin $Date: July 6, 2009 17:26:21 $//###########################################################################//// FILE: F28021.cmd//// TITLE: Linker Command File For F28021 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F28021PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory block is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000600 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHD : origin = 0x3F0000, length = 0x002000 /* on-chip FLASH */FLASHC : origin = 0x3F2000, length = 0x002000 /* on-chip FLASH */FLASHA : origin = 0x3F6000, length = 0x001F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008600, length = 0x000600 /* on-chip RAM block L0 */FLASHB : origin = 0x3F4000, length = 0x002000 /* on-chip FLASH */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:fdc2c398d2e92724e9e99c90df517f04ebcb13c5c7bf76f657ebaf2b68e2a905size 8221123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190/*// TI File $Revision: /main/8 $// Checkin $Date: December 16, 2010 11:14:09 $//###########################################################################//// FILE: F28022.cmd//// TITLE: Linker Command File For F28022 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F28022PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory block is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHA : origin = 0x3F7000, length = 0x000F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASHA */FLASHB : origin = 0x3F6000, length = 0x001000 /* on-chip FLASH */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008800, length = 0x000800 /* on-chip RAM block L0 */FLASHC : origin = 0x3F5000, length = 0x001000 /* on-chip FLASH */FLASHD : origin = 0x3F4000, length = 0x001000 /* on-chp FLASH */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:ace4bcec4e5e9048dd35104d16271ce73ca6bac776702914b157ab0fac0ef5fasize 8216123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190/*// TI File $Revision: /main/6 $// Checkin $Date: April 22, 2009 17:07:13 $//###########################################################################//// FILE: F28023.cmd//// TITLE: Linker Command File For F28023 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F28023PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory block is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHD : origin = 0x3F0000, length = 0x002000 /* on-chip FLASH */FLASHC : origin = 0x3F2000, length = 0x002000 /* on-chip FLASH */FLASHA : origin = 0x3F6000, length = 0x001F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008800, length = 0x000800 /* on-chip RAM block L0 */FLASHB : origin = 0x3F4000, length = 0x002000 /* on-chip FLASH */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:0583d99a789ffdcf3e301167c8188c341e933407ccd7c8485c601e69b24b9aa8size 8219123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190/*// TI File $Revision: /main/7 $// Checkin $Date: September 22, 2009 14:14:39 $//###########################################################################//// FILE: F28026.cmd//// TITLE: Linker Command File For F28026 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F28026PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory block is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHA : origin = 0x3F7000, length = 0x000F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASH. CSM password locations in FLASHA */FLASHB : origin = 0x3F6000, length = 0x001000 /* on-chip FLASH */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008800, length = 0x000800 /* on-chip RAM block L0 */FLASHC : origin = 0x3F5000, length = 0x002000 /* on-chip FLASH */FLASHD : origin = 0x3F4000, length = 0x001000 /* on-chp FLASH */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:11be733415da681942877743d163ab605c965b9adde1d278b8775e920c6fc01esize 8227123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189/*// TI File $Revision: /main/7 $// Checkin $Date: July 6, 2009 17:25:36 $//###########################################################################//// FILE: F28027.cmd//// TITLE: Linker Command File For F28027 Device////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//###########################################################################*//* ======================================================// For Code Composer Studio V2.2 and later// ---------------------------------------// In addition to this memory linker command file,// add the header linker command file directly to the project.// The header linker command file is required to link the// peripheral structures to the proper locations within// the memory map.//// The header linker files are found in <base>\DSP2802_Headers\cmd//// For BIOS applications add: DSP2802x_Headers_BIOS.cmd// For nonBIOS applications add: DSP2802x_Headers_nonBIOS.cmd========================================================= *//* ======================================================// For Code Composer Studio prior to V2.2// --------------------------------------// 1) Use one of the following -l statements to include the// header linker command file in the project. The header linker// file is required to link the peripheral structures to the proper// locations within the memory map *//* Uncomment this line to include file only for non-BIOS applications *//* -l DSP2802x_Headers_nonBIOS.cmd *//* Uncomment this line to include file only for BIOS applications *//* -l DSP2802x_Headers_BIOS.cmd *//* 2) In your project add the path to <base>\DSP2802x_headers\cmd to thelibrary search path under project->build options, linker tab,library search path (-i)./*========================================================= *//* Define the memory block start/length for the F28027PAGE 0 will be used to organize program sectionsPAGE 1 will be used to organize data sectionsNotes:Memory blocks on F2802x are uniform (ie samephysical memory) in both PAGE 0 and PAGE 1.That is the same memory region should not bedefined for both PAGE 0 and PAGE 1.Doing so will result in corruption of programand/or data.The L0 memory block is mirrored - that isit can be accessed in high memory or low memory.For simplicity only one instance is used in thislinker file.Contiguous SARAM memory blocks or flash sectors can bebe combined if required to create a larger memory block.*/MEMORY{PAGE 0: /* Program Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */PRAML0 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */FLASHD : origin = 0x3F0000, length = 0x002000 /* on-chip FLASH */FLASHC : origin = 0x3F2000, length = 0x002000 /* on-chip FLASH */FLASHA : origin = 0x3F6000, length = 0x001F80 /* on-chip FLASH */CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */PAGE 1 : /* Data Memory *//* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation *//* Registers remain on PAGE1 */BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */DRAML0 : origin = 0x008800, length = 0x000800 /* on-chip RAM block L0 */FLASHB : origin = 0x3F4000, length = 0x002000 /* on-chip FLASH */}/* Allocate sections to memory blocks.Note:codestart user defined section in DSP28_CodeStartBranch.asm used to redirect codeexecution when booting to flashramfuncs user defined section to store functions that will be copied from Flash into RAM*/SECTIONS{/* Allocate program areas: */.cinit : > FLASHA PAGE = 0.pinit : > FLASHA, PAGE = 0.text : > FLASHA PAGE = 0codestart : > BEGIN PAGE = 0ramfuncs : LOAD = FLASHA,RUN = PRAML0,LOAD_START(_RamfuncsLoadStart),LOAD_END(_RamfuncsLoadEnd),RUN_START(_RamfuncsRunStart),PAGE = 0csmpasswds : > CSM_PWL_P0 PAGE = 0csm_rsvd : > CSM_RSVD PAGE = 0/* Allocate uninitalized data sections: */.stack : > RAMM0 PAGE = 1.ebss : > DRAML0 PAGE = 1.esysmem : > DRAML0 PAGE = 1/* Initalized sections go in Flash *//* For SDFlash to program these, they must be allocated to page 0 */.econst : > FLASHA PAGE = 0.switch : > FLASHA PAGE = 0/* Allocate IQ math areas: */IQmath : > FLASHA PAGE = 0 /* Math Code */IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD/* Uncomment the section below if calling the IQNexp() or IQexp()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNexpTable.obj> (IQmathTablesRam)}*//* Uncomment the section below if calling the IQNasin() or IQasin()functions from the IQMath.lib library in order to utilize therelevant IQ Math table in Boot ROM (This saves space and Boot ROMis 1 wait-state). If this section is not uncommented, IQmathTables2will be loaded into other memory (SARAM, Flash, etc.) and will takeup space, but 0 wait-state is possible.*//*IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD{IQmath.lib<IQNasinTable.obj> (IQmathTablesRam)}*//* .reset is a standard section used by the compiler. It contains the *//* the address of the start of _c_int00 for C Code. /*/* When using the boot ROM this section and the CPU vector *//* table is not needed. Thus the default type is set here to *//* DSECT */.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT}/*//===========================================================================// End of file.//===========================================================================*/
123version https://git-lfs.github.com/spec/v1oid sha256:a22050fb26080ee95beaecc7a1797dfe22a4e3775b9372d3b7d60ac32df46c6esize 32861234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283;// TI File $Revision: /main/1 $;// Checkin $Date: August 14, 2008 16:58:01 $;//###########################################################################;//;// FILE: DSP2802x_CodeStartBranch.asm;//;// TITLE: Branch for redirecting code execution after boot.;//;// For these examples, code_start is the first code that is executed after;// exiting the boot ROM code.;//;// The codestart section in the linker cmd file is used to physically place;// this code at the correct memory location. This section should be placed;// at the location the BOOT ROM will re-direct the code to. For example,;// for boot to FLASH this code will be located at 0x3f7ff6.;//;// In addition, the example DSP2802x projects are setup such that the codegen;// entry point is also set to the code_start label. This is done by linker;// option -e in the project build options. When the debugger loads the code,;// it will automatically set the PC to the "entry point" address indicated by;// the -e linker option. In this case the debugger is simply assigning the PC,;// it is not the same as a full reset of the device.;//;// The compiler may warn that the entry point for the project is other then;// _c_init00. _c_init00 is the C environment setup and is run before;// main() is entered. The code_start code will re-direct the execution;// to _c_init00 and thus there is no worry and this warning can be ignored.;//;//###########################################################################;// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $;// $Release Date: January 11, 2011 $;//###########################################################################***********************************************************************WD_DISABLE .set 1 ;set to 1 to disable WD, else set to 0.ref _c_int00.global code_start************************************************************************ Function: codestart section** Description: Branch to code starting point***********************************************************************.sect "codestart"code_start:.if WD_DISABLE == 1LB wd_disable ;Branch to watchdog disable code.elseLB _c_int00 ;Branch to start of boot.asm in RTS library.endif;end codestart section************************************************************************ Function: wd_disable** Description: Disables the watchdog timer***********************************************************************.if WD_DISABLE == 1.textwd_disable:SETC OBJMODE ;Set OBJMODE for 28x object codeEALLOW ;Enable EALLOW protected register accessMOVZ DP, #7029h>>6 ;Set data page for WDCR registerMOV @7029h, #0068h ;Set WDDIS bit in WDCR to disable WDEDIS ;Disable EALLOW protected register accessLB _c_int00 ;Branch to start of boot.asm in RTS library.endif;end wd_disable.end;//===========================================================================;// End of file.;//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:8c3bfb37e9d872c337eea3ef02c0f25b1cf0db5f006c451d9a4f0012d64bc69asize 4292123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113// TI File $Revision: /main/2 $// Checkin $Date: July 9, 2009 10:51:48 $//###########################################################################//// FILE: DSP2802x_CpuTimers.c//// TITLE: CPU 32-bit Timers Initialization & Support Functions.//// NOTES: CpuTimer2 is reserved for use with DSP BIOS and// other realtime operating systems.//// Do not use this timer in your application if you ever plan// on integrating DSP-BIOS or another realtime OS.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################include "DSP2802x_Device.h" // Headerfile Include File#include "DSP2802x_Examples.h" // Examples Include Filestruct CPUTIMER_VARS CpuTimer0;// CpuTimer2 is used by DSP BIOS & other RTOS. Comment out if using DSP BIOS or other RTOS.struct CPUTIMER_VARS CpuTimer1;struct CPUTIMER_VARS CpuTimer2;//---------------------------------------------------------------------------// InitCpuTimers://---------------------------------------------------------------------------// This function initializes all three CPU timers to a known state.//void InitCpuTimers(void){// CPU Timer 0// Initialize address pointers to respective timer registers:CpuTimer0.RegsAddr = &CpuTimer0Regs;// Initialize timer period to maximum:CpuTimer0Regs.PRD.all = 0xFFFFFFFF;// Initialize pre-scale counter to divide by 1 (SYSCLKOUT):CpuTimer0Regs.TPR.all = 0;CpuTimer0Regs.TPRH.all = 0;// Make sure timer is stopped:CpuTimer0Regs.TCR.bit.TSS = 1;// Reload all counter register with period value:CpuTimer0Regs.TCR.bit.TRB = 1;// Reset interrupt counters:CpuTimer0.InterruptCount = 0;// CpuTimer 1 and CpuTimer2 are reserved for DSP BIOS & other RTOS// Do not use these two timers if you ever plan on integrating// DSP-BIOS or another realtime OS.//// Initialize address pointers to respective timer registers:CpuTimer1.RegsAddr = &CpuTimer1Regs;CpuTimer2.RegsAddr = &CpuTimer2Regs;// Initialize timer period to maximum:CpuTimer1Regs.PRD.all = 0xFFFFFFFF;CpuTimer2Regs.PRD.all = 0xFFFFFFFF;// Initialize pre-scale counter to divide by 1 (SYSCLKOUT):CpuTimer1Regs.TPR.all = 0;CpuTimer1Regs.TPRH.all = 0;CpuTimer2Regs.TPR.all = 0;CpuTimer2Regs.TPRH.all = 0;// Make sure timers are stopped:CpuTimer1Regs.TCR.bit.TSS = 1;CpuTimer2Regs.TCR.bit.TSS = 1;// Reload all counter register with period value:CpuTimer1Regs.TCR.bit.TRB = 1;CpuTimer2Regs.TCR.bit.TRB = 1;// Reset interrupt counters:CpuTimer1.InterruptCount = 0;CpuTimer2.InterruptCount = 0;}//---------------------------------------------------------------------------// ConfigCpuTimer://---------------------------------------------------------------------------// This function initializes the selected timer to the period specified// by the "Freq" and "Period" parameters. The "Freq" is entered as "MHz"// and the period in "uSeconds". The timer is held in the stopped state// after configuration.//void ConfigCpuTimer(struct CPUTIMER_VARS *Timer, float Freq, float Period){Uint32 temp;// Initialize timer period:Timer->CPUFreqInMHz = Freq;Timer->PeriodInUSec = Period;temp = (long) (Freq * Period);Timer->RegsAddr->PRD.all = temp;// Set pre-scale counter to divide by 1 (SYSCLKOUT):Timer->RegsAddr->TPR.all = 0;Timer->RegsAddr->TPRH.all = 0;// Initialize timer control register:Timer->RegsAddr->TCR.bit.TSS = 1; // 1 = Stop timer, 0 = Start/Restart TimerTimer->RegsAddr->TCR.bit.TRB = 1; // 1 = reload timerTimer->RegsAddr->TCR.bit.SOFT = 0;Timer->RegsAddr->TCR.bit.FREE = 0; // Timer Free Run DisabledTimer->RegsAddr->TCR.bit.TIE = 1; // 0 = Disable/ 1 = Enable Timer Interrupt// Reset interrupt counter:Timer->InterruptCount = 0;}//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:2b610e5a8307c6d48146a837a13d5fea67ada6490b7485df768f5bba276248f2size 20094123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768// TI File $Revision: /main/3 $// Checkin $Date: July 6, 2009 16:51:56 $//###########################################################################//// FILE: DSP2802x_DefaultIsr.c//// TITLE: DSP2802x Device Default Interrupt Service Routines.//// This file contains shell ISR routines for the 2802x PIE vector table.// Typically these shell ISR routines can be used to populate the entire PIE// vector table during device debug. In this manner if an interrupt is taken// during firmware development, there will always be an ISR to catch it.//// As develpment progresses, these ISR rotuines can be eliminated and replaced// with the user's own ISR routines for each interrupt. Since these shell ISRs// include infinite loops they will typically not be included as-is in the final// production firmware.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################include "DSP2802x_Device.h" // DSP2802x Headerfile Include File#include "DSP2802x_Examples.h" // DSP2802x Examples Include File// Connected to INT13 of CPU (use MINT13 mask):interrupt void INT13_ISR(void) // INT13 or CPU-Timer1{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void INT14_ISR(void) // INT14 or CPU-Timer2{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void DATALOG_ISR(void) // Datalogging interrupt{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void RTOSINT_ISR(void) // RTOS interrupt{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void EMUINT_ISR(void) // Emulation interrupt{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void NMI_ISR(void) // Non-maskable interrupt{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm(" ESTOP0");for(;;);}interrupt void USER1_ISR(void) // User Defined trap 1{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER2_ISR(void) // User Defined trap 2{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER3_ISR(void) // User Defined trap 3{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER4_ISR(void) // User Defined trap 4{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER5_ISR(void) // User Defined trap 5{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER6_ISR(void) // User Defined trap 6{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER7_ISR(void) // User Defined trap 7{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER8_ISR(void) // User Defined trap 8{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER9_ISR(void) // User Defined trap 9{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER10_ISR(void) // User Defined trap 10{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER11_ISR(void) // User Defined trap 11{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}interrupt void USER12_ISR(void) // User Defined trap 12{// Insert ISR Code here// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// -----------------------------------------------------------// PIE Group 1 - MUXed into CPU INT1// -----------------------------------------------------------// INT1.1interrupt void ADCINT1_ISR(void) // ADC (Can also be ISR for INT10.1 when enabled){// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT1.2interrupt void ADCINT2_ISR(void) // ADC (Can also be ISR for INT10.2 when enabled){// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm(" ESTOP0");for(;;);}// INT1.3 - Reserved// INT1.4interrupt void XINT1_ISR(void){// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT1.5interrupt void XINT2_ISR(void){// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT1.6interrupt void ADCINT9_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT1.7interrupt void TINT0_ISR(void) // CPU-Timer 0{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT1.8interrupt void WAKEINT_ISR(void) // WD, LOW Power{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// -----------------------------------------------------------// PIE Group 2 - MUXed into CPU INT2// -----------------------------------------------------------// INT2.1interrupt void EPWM1_TZINT_ISR(void) // EPWM-1{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP2;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT2.2interrupt void EPWM2_TZINT_ISR(void) // EPWM-2{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP2;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT2.3interrupt void EPWM3_TZINT_ISR(void) // EPWM-3{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP2;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT2.4interrupt void EPWM4_TZINT_ISR(void) // EPWM-4{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP2;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT2.5 - Reserved// INT2.6 - Reserved// INT2.7 - Reserved// INT2.8 - Reserved// -----------------------------------------------------------// PIE Group 3 - MUXed into CPU INT3// -----------------------------------------------------------// INT 3.1interrupt void EPWM1_INT_ISR(void) // EPWM-1{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT3.2interrupt void EPWM2_INT_ISR(void) // EPWM-2{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT3.3interrupt void EPWM3_INT_ISR(void) // EPWM-3{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT3.4interrupt void EPWM4_INT_ISR(void) // EPWM-4{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP3;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT3.5 - Reserved// INT3.6 - Reserved// INT3.7 - Reserved// INT3.8 - Reserved// -----------------------------------------------------------// PIE Group 4 - MUXed into CPU INT4// -----------------------------------------------------------// INT 4.1interrupt void ECAP1_INT_ISR(void) // ECAP-1{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP4;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT4.2 - Reserved// INT4.3 - Reserved// INT4.4 - Reserved// INT4.5 - Reserved// INT4.6 - Reserved// INT4.7 - Reserved// INT4.8 - Reserved// -----------------------------------------------------------// PIE Group 5 - MUXed into CPU INT5// -----------------------------------------------------------// INT5.1 - Reserved// INT5.2 - Reserved// INT5.3 - Reserved// INT5.4 - Reserved// INT5.5 - Reserved// INT5.6 - Reserved// INT5.7 - Reserved// INT5.8 - Reserved// -----------------------------------------------------------// PIE Group 6 - MUXed into CPU INT6// -----------------------------------------------------------// INT6.1interrupt void SPIRXINTA_ISR(void) // SPI-A{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP6;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT6.2interrupt void SPITXINTA_ISR(void) // SPI-A{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP6;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT6.3 - Reserved// INT6.4 - Reserved// INT6.5 - Reserved// INT6.6 - Reserved// INT6.7 - Reserved// INT6.8 - Reserved// -----------------------------------------------------------// PIE Group 7 - MUXed into CPU INT7// -----------------------------------------------------------// -----------------------------------------------------------// PIE Group 8 - MUXed into CPU INT8// -----------------------------------------------------------// INT8.1interrupt void I2CINT1A_ISR(void) // I2C-A{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP8;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT8.2interrupt void I2CINT2A_ISR(void) // I2C-A{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP8;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT8.3 - Reserved// INT8.4 - Reserved// INT8.5 - Reserved// INT8.6 - Reserved// INT8.7 - Reserved// INT8.8 - Reserved// -----------------------------------------------------------// PIE Group 9 - MUXed into CPU INT9// -----------------------------------------------------------// INT9.1interrupt void SCIRXINTA_ISR(void) // SCI-A{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP9;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT9.2interrupt void SCITXINTA_ISR(void) // SCI-A{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP9;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT9.3 - Reserved// INT9.4 - Reserved// INT9.5 - Reserved// INT9.6 - Reserved// INT9.7 - Reserved// INT9.8 - Reserved// -----------------------------------------------------------// PIE Group 10 - MUXed into CPU INT10// -----------------------------------------------------------// INT10.3interrupt void ADCINT3_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT10.4interrupt void ADCINT4_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT10.5interrupt void ADCINT5_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT10.6interrupt void ADCINT6_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT10.7interrupt void ADCINT7_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT10.8interrupt void ADCINT8_ISR(void) // ADC{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP10;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// -----------------------------------------------------------// PIE Group 11 - MUXed into CPU INT11// -----------------------------------------------------------// -----------------------------------------------------------// PIE Group 12 - MUXed into CPU INT12// -----------------------------------------------------------// INT12.1interrupt void XINT3_ISR(void) // External interrupt 3{// Insert ISR Code here// To receive more interrupts from this PIE group, acknowledge this interrupt// PieCtrlRegs.PIEACK.all = PIEACK_GROUP12;// Next two lines for debug only to halt the processor here// Remove after inserting ISR Codeasm (" ESTOP0");for(;;);}// INT12.2 - Reserved// INT12.3 - Reserved// INT12.4 - Reserved// INT12.5 - Reserved// INT12.6 - Reserved// INT12.7 - Reserved// INT12.8 - Reserved//---------------------------------------------------------------------------// Catch All Default ISRs://interrupt void EMPTY_ISR(void) // Empty ISR - only does a return.{}interrupt void PIE_RESERVED(void) // Reserved space. For test.{asm (" ESTOP0");for(;;);}interrupt void rsvd_ISR(void) // For test{asm (" ESTOP0");for(;;);}//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:2d91b74c9cdc3e3fd23335aa7127e4980d3045409358f64b814e559f181b4503size 8952123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243// TI File $Revision: /main/3 $// Checkin $Date: September 23, 2009 15:34:12 $//###########################################################################//// FILE: DSP2802x_EPwm.c//// TITLE: DSP2802x EPwm Initialization & Support Functions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################include "DSP2802x_Device.h" // DSP2802x Headerfile Include File#include "DSP2802x_Examples.h" // DSP2802x Examples Include File//---------------------------------------------------------------------------// InitEPwm://---------------------------------------------------------------------------// This function initializes the EPwm(s) to a known state.//void InitEPwm(void){// Initialize EPwm1/2/3/4//tbd...}//---------------------------------------------------------------------------// Example: InitEPwmGpio://---------------------------------------------------------------------------// This function initializes GPIO pins to function as EPwm pins//// Each GPIO pin can be configured as a GPIO pin or up to 3 different// peripheral functional pins. By default all pins come up as GPIO// inputs after reset.//void InitEPwmGpio(void){InitEPwm1Gpio();InitEPwm2Gpio();InitEPwm3Gpio();#if DSP28_EPWM4InitEPwm4Gpio();#endif // endif DSP28_EPWM4}void InitEPwm1Gpio(void){EALLOW;/* Disable internal pull-up for the selected output pinsfor reduced power consumption */// Pull-ups can be enabled or disabled by the user.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO0 = 1; // Disable pull-up on GPIO0 (EPWM1A)GpioCtrlRegs.GPAPUD.bit.GPIO1 = 1; // Disable pull-up on GPIO1 (EPWM1B)/* Configure EPwm-1 pins using GPIO regs*/// This specifies which of the possible GPIO pins will be EPWM1 functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1; // Configure GPIO0 as EPWM1AGpioCtrlRegs.GPAMUX1.bit.GPIO1 = 1; // Configure GPIO1 as EPWM1BEDIS;}void InitEPwm2Gpio(void){EALLOW;/* Disable internal pull-up for the selected output pinsfor reduced power consumption */// Pull-ups can be enabled or disabled by the user.// This will enable the pullups for the specified pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO2 = 1; // Disable pull-up on GPIO2 (EPWM2A)GpioCtrlRegs.GPAPUD.bit.GPIO3 = 1; // Disable pull-up on GPIO3 (EPWM2B)/* Configure EPwm-2 pins using GPIO regs*/// This specifies which of the possible GPIO pins will be EPWM2 functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX1.bit.GPIO2 = 1; // Configure GPIO2 as EPWM2AGpioCtrlRegs.GPAMUX1.bit.GPIO3 = 1; // Configure GPIO3 as EPWM2BEDIS;}void InitEPwm3Gpio(void){EALLOW;/* Disable internal pull-up for the selected output pinsfor reduced power consumption */// Pull-ups can be enabled or disabled by the user.// This will enable the pullups for the specified pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO4 = 1; // Disable pull-up on GPIO4 (EPWM3A)GpioCtrlRegs.GPAPUD.bit.GPIO5 = 1; // Disable pull-up on GPIO5 (EPWM3B)/* Configure EPwm-3 pins using GPIO regs*/// This specifies which of the possible GPIO pins will be EPWM3 functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX1.bit.GPIO4 = 1; // Configure GPIO4 as EPWM3AGpioCtrlRegs.GPAMUX1.bit.GPIO5 = 1; // Configure GPIO5 as EPWM3BEDIS;}#if DSP28_EPWM4void InitEPwm4Gpio(void){EALLOW;/* Disable internal pull-up for the selected output pinsfor reduced power consumption */// Pull-ups can be enabled or disabled by the user.// This will enable the pullups for the specified pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO6 = 1; // Disable pull-up on GPIO6 (EPWM4A)GpioCtrlRegs.GPAPUD.bit.GPIO7 = 1; // Disable pull-up on GPIO7 (EPWM4B)/* Configure EPWM-4 pins using GPIO regs*/// This specifies which of the possible GPIO pins will be EPWM4 functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX1.bit.GPIO6 = 1; // Configure GPIO6 as EPWM4AGpioCtrlRegs.GPAMUX1.bit.GPIO7 = 1; // Configure GPIO7 as EPWM4BEDIS;}#endif // endif DSP28_EPWM4//---------------------------------------------------------------------------// Example: InitEPwmSyncGpio://---------------------------------------------------------------------------// This function initializes GPIO pins to function as EPwm Synch pins//void InitEPwmSyncGpio(void){// EALLOW;/* Configure EPWMSYNCI *//* Enable internal pull-up for the selected pins */// Pull-ups can be enabled or disabled by the user.// This will enable the pullups for the specified pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO6 = 0; // Enable pull-up on GPIO6 (EPWMSYNCI)// GpioCtrlRegs.GPBPUD.bit.GPIO32 = 0;// Enable pull-up on GPIO32 (EPWMSYNCI)/* Set qualification for selected pins to asynch only */// This will select synch to SYSCLKOUT for the selected pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAQSEL1.bit.GPIO6 = 0; // Synch to SYSCLKOUT GPIO6 (EPWMSYNCI)// GpioCtrlRegs.GPBQSEL1.bit.GPIO32 = 0; // Synch to SYSCLKOUT GPIO32 (EPWMSYNCI)/* Configure EPwmSync pins using GPIO regs*/// This specifies which of the possible GPIO pins will be EPwmSync functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX1.bit.GPIO6 = 2; // Configures GPIO6 for EPWMSYNCI operation// GpioCtrlRegs.GPBMUX1.bit.GPIO32 = 2; // Configures GPIO32 for EPWMSYNCI operation./* Configure EPWMSYNC0 *//* Disable internal pull-up for the selected output pinsfor reduced power consumption */// Pull-ups can be enabled or disabled by the user.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO6 = 1; // Disable pull-up on GPIO6 (EPWMSYNCO)// GpioCtrlRegs.GPBPUD.bit.GPIO33 = 1; // Disable pull-up on GPIO33 (EPWMSYNCO)GpioCtrlRegs.GPAMUX1.bit.GPIO6 = 3; // Configures GPIO6 for EPWMSYNCO// GpioCtrlRegs.GPBMUX1.bit.GPIO33 = 2; // Configures GPIO33 for EPWMSYNCO}//---------------------------------------------------------------------------// Example: InitTzGpio://---------------------------------------------------------------------------// This function initializes GPIO pins to function as Trip Zone (TZ) pins//// Each GPIO pin can be configured as a GPIO pin or up to 3 different// peripheral functional pins. By default all pins come up as GPIO// inputs after reset.//void InitTzGpio(void){EALLOW;/* Enable internal pull-up for the selected pins */// Pull-ups can be enabled or disabled by the user.// This will enable the pullups for the specified pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO12 = 0; // Enable pull-up on GPIO12 (TZ1)GpioCtrlRegs.GPAPUD.bit.GPIO16 = 0; // Enable pull-up on GPIO16 (TZ2)// GpioCtrlRegs.GPAPUD.bit.GPIO28 = 0; // Enable pull-up on GPIO28 (TZ2)GpioCtrlRegs.GPAPUD.bit.GPIO17 = 0; // Enable pull-up on GPIO17 (TZ3)// GpioCtrlRegs.GPAPUD.bit.GPIO29 = 0; // Enable pull-up on GPIO29 (TZ3)/* Set qualification for selected pins to asynch only */// Inputs are synchronized to SYSCLKOUT by default.// This will select asynch (no qualification) for the selected pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAQSEL1.bit.GPIO12 = 3; // Asynch input GPIO12 (TZ1)GpioCtrlRegs.GPAQSEL2.bit.GPIO16 = 3; // Asynch input GPIO16 (TZ2)// GpioCtrlRegs.GPAQSEL2.bit.GPIO28 = 3; // Asynch input GPIO28 (TZ2)GpioCtrlRegs.GPAQSEL2.bit.GPIO17 = 3; // Asynch input GPIO17 (TZ3)// GpioCtrlRegs.GPAQSEL2.bit.GPIO29 = 3; // Asynch input GPIO29 (TZ3)/* Configure TZ pins using GPIO regs*/// This specifies which of the possible GPIO pins will be TZ functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX1.bit.GPIO12 = 1; // Configure GPIO12 as TZ1GpioCtrlRegs.GPAMUX2.bit.GPIO16 = 3; // Configure GPIO16 as TZ2// GpioCtrlRegs.GPAMUX2.bit.GPIO28 = 3; // Configure GPIO28 as TZ2GpioCtrlRegs.GPAMUX2.bit.GPIO17 = 3; // Configure GPIO17 as TZ3// GpioCtrlRegs.GPAMUX2.bit.GPIO29 = 3; // Configure GPIO29 as TZ3EDIS;}//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:64eeee9a2956fb6289d4d903bb0dc2f602b47a6d0c2bd44ffbd90256fb653cb5size 7940123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288// TI File $Revision: /main/4 $// Checkin $Date: October 16, 2009 15:43:43 $//###########################################################################//// FILE: DSP2802x_GlobalVariableDefs.c//// TITLE: DSP2802x Global Variables and Data Section Pragmas.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################include "DSP2802x_Device.h" // DSP2802x Headerfile Include File//---------------------------------------------------------------------------// Define Global Peripheral Variables:////----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("AdcRegsFile")#else#pragma DATA_SECTION(AdcRegs,"AdcRegsFile");#endifvolatile struct ADC_REGS AdcRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("AdcResultFile")#else#pragma DATA_SECTION(AdcResult,"AdcResultFile");#endifvolatile struct ADC_RESULT_REGS AdcResult;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("Comp1RegsFile")#else#pragma DATA_SECTION(Comp1Regs,"Comp1RegsFile");#endifvolatile struct COMP_REGS Comp1Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("Comp2RegsFile")#else#pragma DATA_SECTION(Comp2Regs,"Comp2RegsFile");#endifvolatile struct COMP_REGS Comp2Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("CpuTimer0RegsFile")#else#pragma DATA_SECTION(CpuTimer0Regs,"CpuTimer0RegsFile");#endifvolatile struct CPUTIMER_REGS CpuTimer0Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("CpuTimer1RegsFile")#else#pragma DATA_SECTION(CpuTimer1Regs,"CpuTimer1RegsFile");#endifvolatile struct CPUTIMER_REGS CpuTimer1Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("CpuTimer2RegsFile")#else#pragma DATA_SECTION(CpuTimer2Regs,"CpuTimer2RegsFile");#endifvolatile struct CPUTIMER_REGS CpuTimer2Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("CsmPwlFile")#else#pragma DATA_SECTION(CsmPwl,"CsmPwlFile");#endifvolatile struct CSM_PWL CsmPwl;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("CsmRegsFile")#else#pragma DATA_SECTION(CsmRegs,"CsmRegsFile");#endifvolatile struct CSM_REGS CsmRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("DevEmuRegsFile")#else#pragma DATA_SECTION(DevEmuRegs,"DevEmuRegsFile");#endifvolatile struct DEV_EMU_REGS DevEmuRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("EPwm1RegsFile")#else#pragma DATA_SECTION(EPwm1Regs,"EPwm1RegsFile");#endifvolatile struct EPWM_REGS EPwm1Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("EPwm2RegsFile")#else#pragma DATA_SECTION(EPwm2Regs,"EPwm2RegsFile");#endifvolatile struct EPWM_REGS EPwm2Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("EPwm3RegsFile")#else#pragma DATA_SECTION(EPwm3Regs,"EPwm3RegsFile");#endifvolatile struct EPWM_REGS EPwm3Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("EPwm4RegsFile")#else#pragma DATA_SECTION(EPwm4Regs,"EPwm4RegsFile");#endifvolatile struct EPWM_REGS EPwm4Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("ECap1RegsFile")#else#pragma DATA_SECTION(ECap1Regs,"ECap1RegsFile");#endifvolatile struct ECAP_REGS ECap1Regs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("GpioCtrlRegsFile")#else#pragma DATA_SECTION(GpioCtrlRegs,"GpioCtrlRegsFile");#endifvolatile struct GPIO_CTRL_REGS GpioCtrlRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("GpioDataRegsFile")#else#pragma DATA_SECTION(GpioDataRegs,"GpioDataRegsFile");#endifvolatile struct GPIO_DATA_REGS GpioDataRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("GpioIntRegsFile")#else#pragma DATA_SECTION(GpioIntRegs,"GpioIntRegsFile");#endifvolatile struct GPIO_INT_REGS GpioIntRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("I2caRegsFile")#else#pragma DATA_SECTION(I2caRegs,"I2caRegsFile");#endifvolatile struct I2C_REGS I2caRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("NmiIntruptRegsFile")#else#pragma DATA_SECTION(NmiIntruptRegs,"NmiIntruptRegsFile");#endifvolatile struct NMIINTRUPT_REGS NmiIntruptRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("PartIdRegsFile")#else#pragma DATA_SECTION(PartIdRegs,"PartIdRegsFile");#endifvolatile struct PARTID_REGS PartIdRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("PieCtrlRegsFile")#else#pragma DATA_SECTION(PieCtrlRegs,"PieCtrlRegsFile");#endifvolatile struct PIE_CTRL_REGS PieCtrlRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("PieVectTableFile")#else#pragma DATA_SECTION(PieVectTable,"PieVectTableFile");#endifstruct PIE_VECT_TABLE PieVectTable;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("SciaRegsFile")#else#pragma DATA_SECTION(SciaRegs,"SciaRegsFile");#endifvolatile struct SCI_REGS SciaRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("SpiaRegsFile")#else#pragma DATA_SECTION(SpiaRegs,"SpiaRegsFile");#endifvolatile struct SPI_REGS SpiaRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("SysCtrlRegsFile")#else#pragma DATA_SECTION(SysCtrlRegs,"SysCtrlRegsFile");#endifvolatile struct SYS_CTRL_REGS SysCtrlRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("SysPwrCtrlRegsFile")#else#pragma DATA_SECTION(SysPwrCtrlRegs,"SysPwrCtrlRegsFile");#endifvolatile struct SYS_PWR_CTRL_REGS SysPwrCtrlRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("FlashRegsFile")#else#pragma DATA_SECTION(FlashRegs,"FlashRegsFile");#endifvolatile struct FLASH_REGS FlashRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("XIntruptRegsFile")#else#pragma DATA_SECTION(XIntruptRegs,"XIntruptRegsFile");#endifvolatile struct XINTRUPT_REGS XIntruptRegs;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("EmuKeyVar");#else#pragma DATA_SECTION(EmuKey,"EmuKeyVar");#endifUint16 EmuKey;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("EmuBModeVar");#else#pragma DATA_SECTION(EmuBMode,"EmuBModeVar");#endifUint16 EmuBMode;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("FlashScalingVar");#else#pragma DATA_SECTION(Flash_CPUScaleFactor, "FlashScalingVar");#endifUint32 Flash_CPUScaleFactor;//----------------------------------------#ifdef __cplusplus#pragma DATA_SECTION("FlashCallbackVar");#else#pragma DATA_SECTION(Flash_CallbackPtr, "FlashCallbackVar");#endifvoid (*Flash_CallbackPtr) (void);//===========================================================================// End of file.//===========================================================================
123version https://git-lfs.github.com/spec/v1oid sha256:9e7782052b1eddf83bfce5780ba1d6ec35d1aabddc29c3efdbcc1a7ba7d3eb83size 3272123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384// TI File $Revision: /main/2 $// Checkin $Date: December 16, 2010 11:15:00 $//###########################################################################//// FILE: DSP2802x_I2C.c//// TITLE: DSP2802x I2C Initialization & Support Functions.////###########################################################################// $TI Release: 2802x C/C++ Header Files and Peripheral Examples V1.29 $// $Release Date: January 11, 2011 $//############################################################################include "DSP2802x_Device.h" // DSP2802x Headerfile Include File#include "DSP2802x_Examples.h" // DSP2802x Examples Include File//---------------------------------------------------------------------------// InitI2C://---------------------------------------------------------------------------// This function initializes the I2C to a known state.//void InitI2C(void){// Initialize I2C-A://tbd...}//---------------------------------------------------------------------------// Example: InitI2CGpio://---------------------------------------------------------------------------// This function initializes GPIO pins to function as I2C pins//// Each GPIO pin can be configured as a GPIO pin or up to 3 different// peripheral functional pins. By default all pins come up as GPIO// inputs after reset.//// Caution:// Only one GPIO pin should be enabled for SDAA operation.// Only one GPIO pin shoudl be enabled for SCLA operation.// Comment out other unwanted lines.void InitI2CGpio(){EALLOW;/* Enable internal pull-up for the selected pins */// Pull-ups can be enabled or disabled disabled by the user.// This will enable the pullups for the specified pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAPUD.bit.GPIO28 = 0; // Enable pull-up for GPIO28 (SDAA)GpioCtrlRegs.GPAPUD.bit.GPIO29 = 0; // Enable pull-up for GPIO29 (SCLA)// GpioCtrlRegs.GPBPUD.bit.GPIO32 = 0; // Enable pull-up for GPIO32 (SDAA)// GpioCtrlRegs.GPBPUD.bit.GPIO33 = 0; // Enable pull-up for GPIO33 (SCLA)/* Set qualification for selected pins to asynch only */// This will select asynch (no qualification) for the selected pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAQSEL2.bit.GPIO28 = 3; // Asynch input GPIO28 (SDAA)GpioCtrlRegs.GPAQSEL2.bit.GPIO29 = 3; // Asynch input GPIO29 (SCLA)// GpioCtrlRegs.GPBQSEL1.bit.GPIO32 = 3; // Asynch input GPIO32 (SDAA)// GpioCtrlRegs.GPBQSEL1.bit.GPIO33 = 3; // Asynch input GPIO33 (SCLA)/* Configure I2C pins using GPIO regs*/// This specifies which of the possible GPIO pins will be I2C functional pins.// Comment out other unwanted lines.GpioCtrlRegs.GPAMUX2.bit.GPIO28 = 2; // Configure GPIO28 for SDAA operationGpioCtrlRegs.GPAMUX2.bit.GPIO29 = 2; // Configure GPIO29 for SCLA operation// GpioCtrlRegs.GPBMUX1.bit.GPIO32 = 1; // Configure GPIO32 for SDAA operation// GpioCtrlRegs.GPBMUX1.bit.GPIO33 = 1; // Configure GPIO33 for SCLA operationEDIS;}//===========================================================================// End of file.//===========================================================================
Proteus 8 Professional/DATA/VSM Studio/compilers/boostmain.c+17-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-msp430.xml+882-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo.xml+785-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Adc.h+389-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_BootVars.h+42-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Comp.h+88-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_CpuTimers.h+185-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_DefaultISR.h+123-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_DevEmu.h+92-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Device.h+286-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_ECap.h+135-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_EPwm.h+573-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_EPwm_defines.h+216-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Examples.h+164-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_GlobalPrototypes.h+100-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Gpio.h+300-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_I2c.h+197-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_I2c_defines.h+115-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_NmiIntrupt.h+97-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_PieCtrl.h+151-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_PieVect.h+205-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_SWPrioritizedIsrLevels.h
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Sci.h+231-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_Spi.h+182-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_SysCtrl.h+428-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP2802x_XIntrupt.h+63-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/DSP28x_Project.h+22-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/IQmathLib.h
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/inc/SFO_V6.h+69-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/280200_RAM_lnk.cmd+155-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28020_RAM_lnk.cmd+165-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28021_RAM_lnk.cmd+165-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28022_RAM_lnk.cmd+165-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28023_RAM_lnk.cmd+165-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28026_RAM_lnk.cmd+165-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/28027_RAM_lnk.cmd+165-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/DSP2802x_Headers_nonBIOS.cmd+144-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28020.cmd+190-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F280200.cmd+184-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28021.cmd+190-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28022.cmd+190-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28023.cmd+190-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28026.cmd+190-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/link/F28027.cmd+189-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_CodeStartBranch.asm+83-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_CpuTimers.c+113-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_DefaultIsr.c+768-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_EPwm.c+243-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_GlobalVariableDefs.c+288-3
Proteus 8 Professional/DATA/VSM Studio/compilers/cc-piccolo/src/DSP2802x_I2C.c+84-3