config_db.json
时间: 2024-04-25 16:25:26 浏览: 28
config_db.json是一个配置文件,系统在启动时会从该文件中读取数据并写入CONFIG_DB数据库。前提是config_db.json文件存在。该文件保存了当前系统的一些配置信息,并通过config save命令进行保存。它与CONFIG_DB数据库有联系,CONFIG_DB是系统的实时配置数据库。\[1\]
#### 引用[.reference_title]
- *1* *2* *3* [SONIC config_db.json文件的前生今世](https://blog.csdn.net/weixin_39094034/article/details/115187466)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关问题
嵌入式stm32环境 setting.json
以下是适用于嵌入式 STM32 的 VS Code `settings.json` 文件的示例。你可以将其复制并粘贴到你的 `settings.json` 文件中,并进行必要的修改。
```json
{
"files.associations": {
"*.c": "c",
"*.h": "c"
},
"C_Cpp.clang_format_style": "file",
"C_Cpp.clang_format_fallbackStyle": "Google",
"C_Cpp.default.languageStandard": "c11",
"C_Cpp.default.intelliSenseMode": "gcc-arm",
"C_Cpp.default.includePath": [
"${workspaceFolder}/**",
"${env:HOME}/opt/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/include",
"${env:HOME}/opt/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/include",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/stm32${config:mcuLine}xx_hal_driver/inc",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/stm32${config:mcuLine}xx_hal_driver/inc/Legacy",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis/device",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis/st",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis_core",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis_os2",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis_rtos2",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis_dsp",
"${env:HOME}/opt/stm32cubemx/db/mcu/${config:mcuFamily}/Include/cmsis_nn",
"/usr/local/include"
],
"C_Cpp.default.defines": [
"STM32${config:mcuLine}xx",
"USE_HAL_DRIVER",
"${config:mcuDefine}"
],
"C_Cpp.default.cStandard": "c11",
"C_Cpp.default.cppStandard": "c++11",
"C_Cpp.formatting": "Visual Studio",
"C_Cpp.errorSquiggles": "Enabled",
"C_Cpp.vcFormatIndentation": "Smart",
"C_Cpp.vcFormatCloseBraces": "SameLine",
"C_Cpp.vcFormatNewLineBeforeOpenBrace": "All",
"C_Cpp.vcFormatPlaceOpenBraceOnNewLineForControlBlocks": true,
"C_Cpp.vcFormatPlaceOpenBraceOnNewLineForFunctions": false,
"stm32cubemx.configurations": [
{
"name": "STM32F1",
"mcuFamily": "STM32F1",
"mcuLine": "F1",
"mcuDefine": "STM32F103xB"
},
{
"name": "STM32F4",
"mcuFamily": "STM32F4",
"mcuLine": "F4",
"mcuDefine": "STM32F407xx"
}
]
}
```
上述代码中,`files.associations` 用于关联文件扩展名和语言模式,`C_Cpp` 开头的键用于配置 C/C++ 扩展的设置,`stm32cubemx.configurations` 用于配置不同的 STM32 系列和型号。具体的配置项含义可以在 VS Code 中的设置面板中查看。你可以根据自己的需要进行修改和添加配置项。需要注意的是,该配置文件中的路径和定义可能需要根据你的实际情况进行修改。
# Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] *$py.class # C extensions *.so # Distribution / packaging .Python build/ develop-eggs/ dist/ downloads/ eggs/ .eggs/ lib/ lib64/ parts/ sdist/ var/ wheels/ pip-wheel-metadata/ share/python-wheels/ *.egg-info/ .installed.cfg *.egg MANIFEST # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest *.spec # Installer logs pip-log.txt pip-delete-this-directory.txt # Unit test / coverage reports htmlcov/ .tox/ .nox/ .coverage .coverage.* .cache nosetests.xml coverage.xml *.cover *.py,cover .hypothesis/ .pytest_cache/ # Translations *.mo *.pot # Django stuff: *.log local_settings.py db.sqlite3 db.sqlite3-journal # Flask stuff: instance/ .webassets-cache # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ # PyBuilder target/ # Jupyter Notebook .ipynb_checkpoints # IPython profile_default/ ipython_config.py # pyenv .python-version # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies # having no cross-platform support, pipenv may install dependencies that don't work, or not # install all needed dependencies. #Pipfile.lock # PEP 582; used by e.g. github.com/David-OConnor/pyflow __pypackages__/ # Celery stuff celerybeat-schedule celerybeat.pid # SageMath parsed files *.sage.py # Environments .env .venv env/ venv/ ENV/ env.bak/ venv.bak/ # Spyder project settings .spyderproject .spyproject # Rope project settings .ropeproject # mkdocs documentation /site # mypy .mypy_cache/ .dmypy.json dmypy.json # Pyre type checker .pyre/
这段代码是一个常见的 Python 项目的 .gitignore 文件,用于指定哪些文件不应该被 Git 跟踪和提交到版本控制系统中。其中包含了许多常见的 Python 项目中不需要跟踪的文件和目录,例如编译文件、依赖包、日志文件、测试报告、临时文件等。这样可以避免这些文件影响项目的可维护性和可移植性。
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)