Skip to content

Instantly share code, notes, and snippets.

View DuePonto's full-sized avatar
😎

Alexander Sobolev DuePonto

😎
View GitHub Profile
@DuePonto
DuePonto / settings.json
Created July 3, 2024 14:06
MAKER TECH settings for doxygen generator
{
"doxdocgen.generic.authorName": "YourNickname",
"doxdocgen.generic.authorEmail": "youremail@mail.com",
"doxdocgen.c.commentPrefix": " * ",
"doxdocgen.c.lastLine": " */",
"doxdocgen.file.fileTemplate": "@file {name}",
"doxdocgen.generic.authorTag": "@author {author} ({email})",
"doxdocgen.generic.briefTemplate": "@brief explanations {text}",
@DuePonto
DuePonto / header_file.h
Last active October 6, 2024 17:53
MAKER TECH *.h file structure
/**
* @file syscalls.h
*
* @author Nickname (email@mail.com)
*
* @brief explanations
*
* @copyright Copyright (c) 2024
*/
@DuePonto
DuePonto / sourse_file.c
Last active July 3, 2024 14:23
MAKER TECH *.c file structure
/**
* @file syscalls.c
*
* @author Nickname (email@mail.com)
*
* @brief explanations
*
* @copyright Copyright (c) 2024
*/
@DuePonto
DuePonto / tasks.json
Created December 8, 2023 09:37
tasks.json file to Init and Build stm32 project via CMake with ninja
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "cmake init",
"command": "cmake -S ${workspaceFolder} -B ${workspaceFolder}/build -G Ninja",
"options": {
"cwd": "${workspaceFolder}",
},
@DuePonto
DuePonto / launch.json
Created December 8, 2023 09:36
launch.json file to debug stm32 project via cortex-debug
{
"version": "0.2.0",
"configurations": [
{
"name": "Cortex Debug",
"cwd": "${workspaceRoot}",
"executable": "build/${workspaceFolderBasename}.elf",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
@DuePonto
DuePonto / c_cpp_properties.json
Created December 8, 2023 09:32
c_cpp_properties.json file for stm32 project
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
@DuePonto
DuePonto / .gitignore
Created December 8, 2023 09:17
.gitignore file for build folder. It is needed for Git to store the build folder, but without the contents, since it will take up extra space
# Ignore everything in this folder
*
# except .gitignore file
!.gitignore
@DuePonto
DuePonto / CMakeLists.txt
Created December 8, 2023 09:03
CMakeLists file for CubeMX projects
cmake_minimum_required(VERSION 3.17)
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
set(CMAKE_CXX_COMPILER arm-none-eabi-g++)
set(CMAKE_ASM_COMPILER arm-none-eabi-gcc)
set(CMAKE_AR arm-none-eabi-ar)
set(CMAKE_OBJCOPY arm-none-eabi-objcopy)
set(CMAKE_OBJDUMP arm-none-eabi-objdump)