SAE Teensy ECU
IIT SAE Microcontroller programming
|
Misc. More...
Functions | |
None | encode_log_map (str path) |
Encodes the last generated log map into a z-lib compressed C binary array. | |
None | check_git_submodules (str file_types) |
Checks for missing or uninitalized submodules within project. | |
dict[str, list] | get_library_blacklist () |
Get the library folder blacklist based on core model. | |
bool | sync_file (str filePath, str offset, str rawpath, str workingFilePath=None, bool suppress=False) |
Syncs a file between directories. | |
None | touch (str rawpath) |
Creates a directory tree. | |
bool | available_ram () |
Get The amount of RAM available in GBs. | |
str | hashFile (str filePath) |
Hashes a file. | |
Variables | |
LIB_BLACKLIST = join_path("libraries", ".blacklist") | |
bool | FILES_CHANGED = False |
bool | RAM_MEMO = False |
int | LOW_RAM = 4 |
int | BUF_SIZE = 65536 |
Misc.
utility functions
bool script.util.available_ram | ( | ) |
None script.util.check_git_submodules | ( | str | file_types | ) |
None script.util.encode_log_map | ( | str | path | ) |
dict[str, list] script.util.get_library_blacklist | ( | ) |
str script.util.hashFile | ( | str | filePath | ) |
bool script.util.sync_file | ( | str | filePath, |
str | offset, | ||
str | rawpath, | ||
str | workingFilePath = None , |
||
bool | suppress = False |
||
) |
Syncs a file between directories.
Args: filePath (str): Path to the original file offset (str): Path offset to prepend to the rawpath to get the filepath rawpath (str): Path to the directory the original file is in workingFilePath (str, optional): Path to the file to sync to. Defaults to offset + filepath. suppress (bool, optional): Suppress log messages. Defaults to False.
Returns: bool: Whether the file was synced
None script.util.touch | ( | str | rawpath | ) |
script.util.LIB_BLACKLIST = join_path("libraries", ".blacklist") |