diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 09422ee..7a24c4a 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,5 +1,5 @@ { - "version": "2.0.0", + "version": "2.1.0", "tasks": [ { "type": "cppbuild", diff --git a/CHANGELOG.md b/CHANGELOG.md index aa56841..4133354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,13 @@ ## Develop +## v2.1.0 + - Split CMakeLists.txt files between library and executable - Add C++ wrapper functions - Change license year to 2022 - Update code style with astyle +- Fix wrong length function usage - Add `.clang-format` draft ## v2.0.0 diff --git a/examples/lib/FreeRTOS/CMSIS_RTOS_V2/cmsis_os.h b/examples/lib/FreeRTOS/CMSIS_RTOS_V2/cmsis_os.h index 3b885bb..7eb8d8b 100644 --- a/examples/lib/FreeRTOS/CMSIS_RTOS_V2/cmsis_os.h +++ b/examples/lib/FreeRTOS/CMSIS_RTOS_V2/cmsis_os.h @@ -1,5 +1,5 @@ /* -------------------------------------------------------------------------- - * Portions Copyright © 2017 STMicroelectronics International N.V. All rights reserved. + * Portions Copyright � 2017 STMicroelectronics International N.V. All rights reserved. * Portions Copyright (c) 2013-2017 ARM Limited. All rights reserved. * -------------------------------------------------------------------------- * @@ -37,7 +37,7 @@ * Control functions for short timeouts in microsecond resolution: * Added: osKernelSysTick, osKernelSysTickFrequency, osKernelSysTickMicroSec * Removed: osSignalGet - * Version 2.0.0 + * Version 2.1.0 * OS objects creation without macros (dynamic creation and resource allocation): * - added: osXxxxNew functions which replace osXxxxCreate * - added: osXxxxAttr_t structures diff --git a/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/launch.json b/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/launch.json index 9b3d92d..cfa57fa 100644 --- a/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/launch.json +++ b/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/launch.json @@ -22,7 +22,7 @@ /* Will get automatically detected if STM32CubeIDE is installed to default directory or it can be manually provided if necessary.. */ //"serverpath": "c:\\ST\\STM32CubeIDE_1.7.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.0.100.202109301221\\tools\\bin\\ST-LINK_gdbserver.exe", - //"armToolchainPath": "c:\\ST\\STM32CubeIDE_1.7.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\\tools\\bin", + //"armToolchainPath": "c:\\ST\\STM32CubeIDE_1.7.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.1.0.202105311346\\tools\\bin", //"stm32cubeprogrammer": "c:\\Program Files\\STMicroelectronics\\STM32Cube\\STM32CubeProgrammer\\bin", /* If you use external loader, add additional arguments */ diff --git a/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/tasks.json b/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/tasks.json index fe4c345..448dbf0 100644 --- a/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/tasks.json +++ b/examples/stm32/lwmem_rtos_stm32l496_discovery/.vscode/tasks.json @@ -1,5 +1,5 @@ { - "version": "2.0.0", + "version": "2.1.0", "tasks": [ { "type": "cppbuild", diff --git a/examples/stm32/lwmem_stm32l496_discovery/.vscode/launch.json b/examples/stm32/lwmem_stm32l496_discovery/.vscode/launch.json index 9b3d92d..cfa57fa 100644 --- a/examples/stm32/lwmem_stm32l496_discovery/.vscode/launch.json +++ b/examples/stm32/lwmem_stm32l496_discovery/.vscode/launch.json @@ -22,7 +22,7 @@ /* Will get automatically detected if STM32CubeIDE is installed to default directory or it can be manually provided if necessary.. */ //"serverpath": "c:\\ST\\STM32CubeIDE_1.7.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.0.100.202109301221\\tools\\bin\\ST-LINK_gdbserver.exe", - //"armToolchainPath": "c:\\ST\\STM32CubeIDE_1.7.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\\tools\\bin", + //"armToolchainPath": "c:\\ST\\STM32CubeIDE_1.7.0\\STM32CubeIDE\\plugins\\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.1.0.202105311346\\tools\\bin", //"stm32cubeprogrammer": "c:\\Program Files\\STMicroelectronics\\STM32Cube\\STM32CubeProgrammer\\bin", /* If you use external loader, add additional arguments */ diff --git a/examples/stm32/lwmem_stm32l496_discovery/.vscode/tasks.json b/examples/stm32/lwmem_stm32l496_discovery/.vscode/tasks.json index fe4c345..448dbf0 100644 --- a/examples/stm32/lwmem_stm32l496_discovery/.vscode/tasks.json +++ b/examples/stm32/lwmem_stm32l496_discovery/.vscode/tasks.json @@ -1,5 +1,5 @@ { - "version": "2.0.0", + "version": "2.1.0", "tasks": [ { "type": "cppbuild", diff --git a/examples/win32/.vscode/tasks.json b/examples/win32/.vscode/tasks.json index e526563..5bc8468 100644 --- a/examples/win32/.vscode/tasks.json +++ b/examples/win32/.vscode/tasks.json @@ -1,5 +1,5 @@ { - "version": "2.0.0", + "version": "2.1.0", "tasks": [ { "type": "cppbuild", diff --git a/library.json b/library.json index 4e8d30c..3e1f333 100644 --- a/library.json +++ b/library.json @@ -1,35 +1,33 @@ { - "name": "LwMEM", - "version": "2.0.0", - "description": "Lightweight dynamic memory manager optimized for embedded systems", - "keywords": "lwmem, memory, dynamic, heap, malloc, calloc, realloc, free, lightweight, manager, embedded, stm32, win32", - "repository": { - "type": "git", - "url": "https://github.com/MaJerle/lwmem.git" - }, - "authors": [ - { - "name": "Tilen Majerle", - "email": "tilen@majerle.eu", - "url": "https://majerle.eu" - } - ], - "license": "MIT", - "homepage": "https://github.com/MaJerle/lwmem", - "dependencies": { - - }, - "frameworks": "*", - "platforms": "*", - "export": { - "exclude": [ - ".github", - "dev", - "docs", - "**/.vs", - "**/Debug", - "build", - "**/build" - ] - } + "name": "LwMEM", + "version": "2.1.0", + "description": "Lightweight dynamic memory manager optimized for embedded systems", + "keywords": "lwmem, memory, dynamic, heap, malloc, calloc, realloc, free, lightweight, manager, embedded, stm32, win32", + "repository": { + "type": "git", + "url": "https://github.com/MaJerle/lwmem.git" + }, + "authors": [ + { + "name": "Tilen Majerle", + "email": "tilen@majerle.eu", + "url": "https://majerle.eu" + } + ], + "license": "MIT", + "homepage": "https://github.com/MaJerle/lwmem", + "dependencies": {}, + "frameworks": "*", + "platforms": "*", + "export": { + "exclude": [ + ".github", + "dev", + "docs", + "**/.vs", + "**/Debug", + "build", + "**/build" + ] + } } \ No newline at end of file diff --git a/lwmem/src/include/lwmem/lwmem.h b/lwmem/src/include/lwmem/lwmem.h index e2833d6..d854627 100644 --- a/lwmem/src/include/lwmem/lwmem.h +++ b/lwmem/src/include/lwmem/lwmem.h @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #ifndef LWMEM_HDR_H #define LWMEM_HDR_H diff --git a/lwmem/src/include/lwmem/lwmem.hpp b/lwmem/src/include/lwmem/lwmem.hpp index eaea617..2240947 100644 --- a/lwmem/src/include/lwmem/lwmem.hpp +++ b/lwmem/src/include/lwmem/lwmem.hpp @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #ifndef LWMEM_HDR_HPP #define LWMEM_HDR_HPP diff --git a/lwmem/src/include/lwmem/lwmem_opt.h b/lwmem/src/include/lwmem/lwmem_opt.h index 0b06771..b17b5ce 100644 --- a/lwmem/src/include/lwmem/lwmem_opt.h +++ b/lwmem/src/include/lwmem/lwmem_opt.h @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #ifndef LWMEM_OPT_HDR_H #define LWMEM_OPT_HDR_H diff --git a/lwmem/src/include/lwmem/lwmem_opts_template.h b/lwmem/src/include/lwmem/lwmem_opts_template.h index e22388e..deb5e80 100644 --- a/lwmem/src/include/lwmem/lwmem_opts_template.h +++ b/lwmem/src/include/lwmem/lwmem_opts_template.h @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #ifndef LWMEM_OPTS_HDR_H #define LWMEM_OPTS_HDR_H diff --git a/lwmem/src/include/system/lwmem_sys.h b/lwmem/src/include/system/lwmem_sys.h index eb516b5..a837d89 100644 --- a/lwmem/src/include/system/lwmem_sys.h +++ b/lwmem/src/include/system/lwmem_sys.h @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #ifndef LWMEM_SYS_HDR_H #define LWMEM_SYS_HDR_H diff --git a/lwmem/src/lwmem/lwmem.c b/lwmem/src/lwmem/lwmem.c index c03e87e..02e755c 100644 --- a/lwmem/src/lwmem/lwmem.c +++ b/lwmem/src/lwmem/lwmem.c @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #include "lwmem/lwmem.h" #include diff --git a/lwmem/src/lwmem/lwmem.cpp b/lwmem/src/lwmem/lwmem.cpp index 56ed731..4229285 100644 --- a/lwmem/src/lwmem/lwmem.cpp +++ b/lwmem/src/lwmem/lwmem.cpp @@ -29,5 +29,5 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ diff --git a/lwmem/src/system/lwmem_sys_cmsis_os.c b/lwmem/src/system/lwmem_sys_cmsis_os.c index c725ef8..a327f78 100644 --- a/lwmem/src/system/lwmem_sys_cmsis_os.c +++ b/lwmem/src/system/lwmem_sys_cmsis_os.c @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #include "system/lwmem_sys.h" diff --git a/lwmem/src/system/lwmem_sys_threadx.c b/lwmem/src/system/lwmem_sys_threadx.c index c048e66..f6713ef 100644 --- a/lwmem/src/system/lwmem_sys_threadx.c +++ b/lwmem/src/system/lwmem_sys_threadx.c @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #include "system/lwmem_sys.h" diff --git a/lwmem/src/system/lwmem_sys_win32.c b/lwmem/src/system/lwmem_sys_win32.c index 7496671..0a7bb8e 100644 --- a/lwmem/src/system/lwmem_sys_win32.c +++ b/lwmem/src/system/lwmem_sys_win32.c @@ -29,7 +29,7 @@ * This file is part of LwMEM - Lightweight dynamic memory manager library. * * Author: Tilen MAJERLE - * Version: v2.0.0 + * Version: v2.1.0 */ #include "system/lwmem_sys.h"