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
tools::targets Namespace Reference
Data Structures | |
class | HookError |
Generic Target class that reads and interprets the data in targets.json. More... | |
class | Target |
class | LPCTargetCode |
class | LPC4088Code |
class | TEENSY3_1Code |
class | MTSCode |
class | MCU_NRF51Code |
Functions | |
def | cached |
def | get_resolution_order |
def | target |
def | generate_py_target |
def | get_target_detect_codes |
def | set_targets_json_location |
Detailed Description
mbed SDK Copyright (c) 2011-2016 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Function Documentation
def tools::targets::cached | ( | func ) |
A simple decorator used for automatically caching data returned by a function
Definition at line 58 of file targets.py.
def tools::targets::generate_py_target | ( | new_targets, | |
name | |||
) |
Add one or more new target(s) represented as a Python dictionary in 'new_targets'. It is an error to add a target with a name that already exists.
Definition at line 104 of file targets.py.
def tools::targets::get_resolution_order | ( | json_data, | |
target_name, | |||
order, | |||
level = 0 |
|||
) |
Return the order in which target descriptions are searched for attributes. This mimics the Python 2.2 method resolution order, which is what the old targets.py module used. For more details, check http://makina-corpus.com/blog/metier/2014/python-tutorial-understanding-python-mro-class-search-path The resolution order contains (name, level) tuples, where "name" is the name of the class and "level" is the level in the inheritance hierarchy (the target itself is at level 0, its first parent at level 1, its parent's parent at level 2 and so on)
Definition at line 75 of file targets.py.
def tools::targets::get_target_detect_codes | ( | ) |
Returns dictionary mapping detect_code -> platform_name
Definition at line 516 of file targets.py.
def tools::targets::set_targets_json_location | ( | location = None ) |
Sets the location of the JSON file that contains the targets
Definition at line 525 of file targets.py.
def tools::targets::target | ( | name, | |
json_data | |||
) |
Construct a target object
Definition at line 94 of file targets.py.
Generated on Tue Jul 12 2022 11:02:43 by 1.7.2