PER Firmware
Loading...
Searching...
No Matches
utils.py File Reference

Classes

class  utils.bcolors
 

Namespaces

namespace  utils
 

Functions

 utils.print_as_error (message)
 
 utils.print_as_warning (message)
 
 utils.print_as_ok (message)
 
 utils.print_as_success (message)
 
 utils.load_json (filepath)
 
str utils.to_macro_name (str name)
 
 utils.get_git_hash ()
 
 utils.get_layout_hash (message)
 
 utils.get_jinja_env ()
 
 utils.render_template (env, template_name, output_path, **context)
 

Variables

 utils.BASE_DIR = Path(__file__).parent.parent
 
str utils.SCHEMA_DIR = BASE_DIR / 'schema'
 
str utils.CONFIG_DIR = BASE_DIR / 'configs'
 
str utils.NODE_CONFIG_DIR = CONFIG_DIR / 'nodes'
 
str utils.EXTERNAL_NODE_CONFIG_DIR = CONFIG_DIR / 'external_nodes'
 
str utils.GENERATED_DIR = BASE_DIR / 'generated'
 
str utils.DBC_DIR = BASE_DIR / 'dbc'
 
str utils.BUS_CONFIG_PATH = CONFIG_DIR / 'system' / 'bus_configs.json'
 
str utils.COMMON_TYPES_CONFIG_PATH = CONFIG_DIR / 'system' / 'common_types.json'
 
dict utils.CTYPE_SIZES