-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
83 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
name: Create Release | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
See the CHANGELOG.md | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef __MAIN_H | ||
#define __MAIN_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#include "main.h" | ||
#include "cmsis_os.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef __MAIN_H | ||
#define __MAIN_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#include "main.h" | ||
#include "lwmem/lwmem.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_H | ||
#define LWMEM_HDR_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPT_H | ||
#define LWMEM_HDR_OPT_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_OPTS_H | ||
#define LWMEM_HDR_OPTS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#ifndef LWMEM_HDR_SYS_H | ||
#define LWMEM_HDR_SYS_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#include <limits.h> | ||
#include <string.h> | ||
|
@@ -467,7 +467,7 @@ prv_realloc(lwmem_t* const lw, const lwmem_region_t* region, void* const ptr, co | |
return NULL; | ||
} | ||
if (ptr == NULL) { | ||
return prv_alloc(lw, NULL, size); | ||
return prv_alloc(lw, region, size); | ||
} | ||
|
||
/* Try to reallocate existing pointer */ | ||
|
@@ -648,7 +648,7 @@ prv_realloc(lwmem_t* const lw, const lwmem_region_t* region, void* const ptr, co | |
* | ||
* Final solution is to find completely new empty block of sufficient size and copy content from old one to new one | ||
*/ | ||
retval = prv_alloc(lw, NULL, size); /* Try to allocate new block */ | ||
retval = prv_alloc(lw, region, size); /* Try to allocate new block */ | ||
if (retval != NULL) { | ||
block_size = (block->size & ~LWMEM_ALLOC_BIT) - LWMEM_BLOCK_META_SIZE; /* Get application size from input pointer */ | ||
LWMEM_MEMCPY(retval, ptr, size > block_size ? block_size : size); /* Copy content to new allocated block */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#include "system/lwmem_sys.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#include "system/lwmem_sys.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.5.1 | ||
* Version: v1.5.2 | ||
*/ | ||
#include "system/lwmem_sys.h" | ||
|
||
|