-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
32 changed files
with
108 additions
and
104 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
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,6 @@ | |
* This file is part of Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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 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
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
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,6 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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,6 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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,6 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#include "main.h" | ||
#include "cmsis_os.h" | ||
|
@@ -49,6 +48,7 @@ static lwmem_region_t | |
regions[] = { | ||
{ region1_data, sizeof(region1_data) }, | ||
/* Add more regions if needed */ | ||
{ NULL, 0 } | ||
}; | ||
|
||
static void app_thread(void* arg); | ||
|
@@ -68,7 +68,7 @@ main(void) { | |
|
||
/* Initialize LwMEM */ | ||
printf("Initializing LwMEM...\r\n"); | ||
if (!lwmem_assignmem(regions, sizeof(regions) / sizeof(regions[0]))) { | ||
if (!lwmem_assignmem(regions)) { | ||
printf("Cannot initialize LwMEM. Make sure your regions are not overlapping each other and are in ascending memory order\r\n"); | ||
while (1) {} | ||
} else { | ||
|
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,6 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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,6 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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,6 @@ | |
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#include "main.h" | ||
#include "lwmem/lwmem.h" | ||
|
@@ -48,6 +47,7 @@ static lwmem_region_t | |
regions[] = { | ||
{ region1_data, sizeof(region1_data) }, | ||
/* Add more regions if needed */ | ||
{ NULL, 0 } | ||
}; | ||
|
||
/** | ||
|
@@ -65,7 +65,7 @@ main(void) { | |
|
||
/* Initialize LwMEM */ | ||
printf("Initializing LwMEM...\r\n"); | ||
if (!lwmem_assignmem(regions, sizeof(regions) / sizeof(regions[0]))) { | ||
if (!lwmem_assignmem(regions)) { | ||
printf("Cannot initialize LwMEM. Make sure your regions are not overlapping each other and are in ascending memory order\r\n"); | ||
while (1) {} | ||
} else { | ||
|
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,6 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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 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,6 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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 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,6 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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 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,6 @@ | |
* This file is part of LwMEM - Lightweight dynamic memory manager library. | ||
* | ||
* Author: Tilen MAJERLE <[email protected]> | ||
* Version: v1.6.0 | ||
*/ | ||
#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 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
Oops, something went wrong.