mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Embed: (wiki syntax)

« Back to documentation index

Uvision Class Reference

Uvision Class Reference

Inherits tools::export::exporters::Exporter.

Public Member Functions

def uv_files
def format_flags
def format_src
def format_fpu
def generate
def build
def get_toolchain
def add_config
def flags
def get_source_paths
def gen_file
def make_key
def group_project_files

Detailed Description

Keil Uvision class

This class encapsulates information to be contained in a Uvision
project file (.uvprojx).
The needed information can be viewed in uvision.tmpl

Definition at line 113 of file export/uvision/__init__.py.


Member Function Documentation

def add_config (   self ) [inherited]
Add the containgin directory of mbed_config.h to include dirs

Definition at line 71 of file exporters.py.

def build (   project_name,
  log_name = 'build_log.txt',
  cleanup = True 
)
Build Uvision project 

Reimplemented from Exporter.

Definition at line 220 of file export/uvision/__init__.py.

def flags (   self ) [inherited]
Returns a dictionary of toolchain flags.
Keys of the dictionary are:
cxx_flags    - c++ flags
c_flags      - c flags
ld_flags     - linker flags
asm_flags    - assembler flags
common_flags - common options

Definition at line 80 of file exporters.py.

def format_flags (   self )
Format toolchain flags for Uvision

Definition at line 155 of file export/uvision/__init__.py.

def format_fpu (   core )
Generate a core's FPU string

Definition at line 182 of file export/uvision/__init__.py.

def format_src (   self,
  srcs 
)
Make sources into the named tuple for use in the template

Definition at line 173 of file export/uvision/__init__.py.

def gen_file (   self,
  template_file,
  data,
  target_file,
  kwargs 
) [inherited]
Generates a project file from a template using jinja

Definition at line 114 of file exporters.py.

def generate (   self )
Generate the .uvproj file

Reimplemented from Exporter.

Definition at line 191 of file export/uvision/__init__.py.

def get_source_paths (   self ) [inherited]
Returns a list of the directories where source files are contained

Definition at line 105 of file exporters.py.

def get_toolchain (   self ) [inherited]
A helper getter function that we should probably eliminate

Definition at line 67 of file exporters.py.

def group_project_files (   self,
  sources 
) [inherited]
Group the source files by their encompassing directory
Positional Arguments:
sources - array of source locations

Returns a dictionary of {group name: list of source locations}

Definition at line 143 of file exporters.py.

def make_key (   self,
  src 
) [inherited]
From a source file, extract group name
Positional Arguments:
src - the src's location

Definition at line 129 of file exporters.py.

def uv_files (   self,
  files 
)
An generator containing Uvision specific information about project files
Positional Arguments:
files - the location of source files

.uvprojx XML for project file:
<File>
    <FileType>{{file.type}}</FileType>
    <FileName>{{file.name}}</FileName>
    <FilePath>{{file.loc}}</FilePath>
</File>

Definition at line 134 of file export/uvision/__init__.py.