Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Support to build coremark with segger libc #582

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions software/coremark/freedom-metal/core_portme.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ limitations under the License.

Original Author: Shay Gal-on
*/
#ifdef __SEGGER_LIBC__
#include <time.h>
#else
#include <sys/time.h>
#endif
#include "coremark.h"
#include "core_portme.h"

Expand Down
4 changes: 4 additions & 0 deletions software/coremark/freedom-metal/core_portme.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ typedef ee_u32 ee_ptr_int;
typedef ee_u64 ee_ptr_int;
#endif
typedef signed int ee_size_t;

#ifndef __SEGGER_LIBC__
#define NULL ((void *)0)
#endif

/* align_mem :
This macro is used to align an offset to point to a 32b value. It is used in the Matrix algorithm to initialize the input memory blocks.
*/
Expand Down