12.07.2015 Views

tc_users_guide_v2.5 - Tasking

tc_users_guide_v2.5 - Tasking

tc_users_guide_v2.5 - Tasking

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VITable of ContentsCONTENTS3.2.3 Bit Data Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−73.2.4 Packed Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−83.3 Memory Qualifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−103.3.1 Declare a Data Object in a Special Part of Memory . . . 3−103.3.2 Declare a Data Object at an Absolute Address: __at()and __atbit() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3−133.4 Data Type Qualifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−153.4.1 Circular Buffers: __circ . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−153.4.2 Declare an SFR Bit field: __sfrbit16 and __sfrbit32 . . . . 3−163.4.3 Saturation: __sat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−183.5 Intrinsic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−193.6 Using Assembly in the C Source: __asm() . . . . . . . . . . . 3−203.7 Controlling the Compiler: Pragmas . . . . . . . . . . . . . . . . . 3−263.8 Predefined Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−303.9 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−313.9.1 Inlining Functions: inline . . . . . . . . . . . . . . . . . . . . . . . . . 3−313.9.2 Interrupt and Trap Functions . . . . . . . . . . . . . . . . . . . . . . 3−333.9.2.1 Defining an Interrupt Service Routine . . . . . . . . . . . . . . 3−343.9.2.2 Defining a Trap Service Routine . . . . . . . . . . . . . . . . . . . 3−353.9.2.3 Defining a Trap Service Routine Class 6: __syscallfunc() 3−373.9.2.4 Enabling Interrupt Requests: __enable_, __bisr_() . . . . 3−383.9.3 Function Calling Modes: __indirect . . . . . . . . . . . . . . . . . 3−393.9.4 Parameter Passing and the Stack Model: __stackparm . 3−403.10 Compiler Generated Sections . . . . . . . . . . . . . . . . . . . . . . 3−433.11 Swi<strong>tc</strong>h Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−473.12 Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−483.12.1 Overview of Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−493.12.2 Printf and Scanf Formatting Routines . . . . . . . . . . . . . . . 3−503.12.3 Rebuilding Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3−52TRICORE ASSEMBLY LANGUAGE4−14.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4−34.2 Assembly Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4−34.3 Assembler Significant Characters . . . . . . . . . . . . . . . . . . . 4−4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!