hsk-libs-scripts  270
High Speed Karlsruhe XC878 build scripts
Functions
overlays.awk File Reference

Finds call tree manipulations for µVision from C files. More...

Functions

void filter19 ()
 Pass all arguments to cstrip.awk and pass the output to TMPFILE. More...
 
void filter49 ()
 Reduce nesting depth. More...
 
void filter56 ()
 Just for debugging level > 1, print the current input line. More...
 
void filter63 ()
 Increase nesting depth. More...
 
void filter70 ()
 Get filename, useful for debugging. More...
 
void filter80 ()
 The hsk_isr_rootN() function is present, so an ISR call tree can be built. More...
 
void filter89 ()
 Gather interrupts. More...
 
void filter104 ()
 Catch shared ISRs. More...
 
void filter117 ()
 Catch timer0/timer1 ISRs. More...
 
void filter130 ()
 Catch external interrupts. More...
 
void filter152 ()
 Remove TMPFILE and print assembled data. More...
 

Detailed Description

Finds call tree manipulations for µVision from C files.

This script directly makes use of the coding conventions of the hsk_libs and uses internal knowledge, which makes it useless for any other purpose.

Function Documentation

§ filter19()

void filter19 ( )

Pass all arguments to cstrip.awk and pass the output to TMPFILE.

Creates the following globals:

  • DEBUG: Created from the environment variable with the same name
  • LIBPROJDIR: Created from the environment variable with the same name it is used to access cstrip.awk
  • TMPFILE: The file containing the output of cstrip.awk
    Precondition
    BEGIN  

§ filter49()

void filter49 ( )

Reduce nesting depth.

Precondition
/\}/  

§ filter56()

void filter56 ( )

Just for debugging level > 1, print the current input line.

Precondition
DEBUG > 1  

§ filter63()

void filter63 ( )

Increase nesting depth.

Precondition
/\ 

§ filter70()

void filter70 ( )

Get filename, useful for debugging.

Precondition
/^#[0-9]+".*"/  

§ filter80()

void filter80 ( )

The hsk_isr_rootN() function is present, so an ISR call tree can be built.

Precondition
/^void hsk_isr_root[0-9]+\(.*\)(__)?using [0-9]+$/  

§ filter89()

void filter89 ( )

Gather interrupts.

Precondition
/^void .*\(void\)(__)?interrupt [0-9]+ (__)?using [0-9]+$/  

§ filter104()

void filter104 ( )

Catch shared ISRs.

Precondition
/^hsk_isr[0-9]+\.[a-zA-Z0-9_]+=&[a-zA-Z0-9_]+;/  

§ filter117()

void filter117 ( )

Catch timer0/timer1 ISRs.

Precondition
/^hsk_timer[0-9]+_setup\(.*,\&[a-zA-Z0-9_]+\);/  

§ filter130()

void filter130 ( )

Catch external interrupts.

Precondition
/^hsk_ex_channel_enable\([a-zA-Z0-9]+,.*,&[a-zA-Z0-9_]+\);/  

§ filter152()

void filter152 ( )

Remove TMPFILE and print assembled data.

Precondition
END