<commit_before>=================
STM32CubeMX2CMake
=================

Installation
------------
From this repository:

*git clone https://github.com/eugene-babichenko/cubemx2cmake.git*

*cd cubemx2cmake*

*pip install .*

Or you can install it from PyPI:

*pip install cubemx2cmake*

Usage
-----

Generate your initialization code from STM32CubeMX with the following Code Generation Options:

* Toolchain: SW4STM32
* [X] Generate under root

Then open your project directory and run *cubemx2cmake <your_cube_mx_file>.ioc*. This will generate CMakeLists.txt and STM32Toolchain.cmake files. To get all the things done right use *-DCMAKE_TOOLCHAIN_FILE=STM32Toolchain.cmake* command line option with CMake.<commit_msg>Described the new functionality in README.rst<commit_after>=================
STM32CubeMX2CMake
=================

Installation
------------
From this repository:

*git clone https://github.com/eugene-babichenko/cubemx2cmake.git*

*cd cubemx2cmake*

*pip install .*

Or you can install it from PyPI:

*pip install cubemx2cmake*

Usage
-----

Generate your initialization code from STM32CubeMX with the following Code Generation Options:

* Toolchain: SW4STM32
* [X] Generate under root

Then open your project directory and run *cubemx2cmake <your_cube_mx_file>.ioc*. If your working dirctory contains inly one CubeMX project file (*.ioc), you can simply run *cubemx2cmake* and it will find your project file automatically. This will generate CMakeLists.txt and STM32Toolchain.cmake files. To get all the things done right use *-DCMAKE_TOOLCHAIN_FILE=STM32Toolchain.cmake* command line option with CMake.
{'fraction_non_alphanumeric': 0.12175525339925834, 'fraction_numerical': 0.0203955500618047, 'mean_word_length': 4.930402930402931, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3331705', 'n_tokens_mistral': 529, 'n_tokens_neox': 500, 'n_words': 172}