MOS Source Code
Loading...
Searching...
No Matches
stackusage.c File Reference
#include <pb_encode.h>
#include <pb_decode.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include "stackusage.pb.h"
+ Include dependency graph for stackusage.c:

Go to the source code of this file.

Macros

#define MAX_STACK_ENTRIES   1024
 

Functions

void start_stack_measuring ()
 
int end_stack_measuring ()
 
void do_encode ()
 
void do_decode ()
 
int main ()
 

Variables

static uint8_t g_msgbuf [256]
 
static size_t g_msglen
 
static uint32_t g_stackbuf [1024]
 
static volatile uint32_tg_stackptr
 

Macro Definition Documentation

◆ MAX_STACK_ENTRIES

#define MAX_STACK_ENTRIES   1024

Definition at line 16 of file stackusage.c.

Referenced by end_stack_measuring(), and start_stack_measuring().

Function Documentation

◆ start_stack_measuring()

void start_stack_measuring ( )

Definition at line 20 of file stackusage.c.

Referenced by main().

◆ end_stack_measuring()

int end_stack_measuring ( )

Definition at line 30 of file stackusage.c.

Referenced by main().

◆ do_encode()

void do_encode ( )

Definition at line 44 of file stackusage.c.

Referenced by main().

+ Here is the call graph for this function:

◆ do_decode()

void do_decode ( )

Definition at line 66 of file stackusage.c.

Referenced by do_roundtrips(), and main().

+ Here is the call graph for this function:

◆ main()

int main ( void )

Definition at line 77 of file stackusage.c.

+ Here is the call graph for this function:

Variable Documentation

◆ g_msgbuf

uint8_t g_msgbuf[256]
static

Definition at line 8 of file stackusage.c.

Referenced by do_decode(), and do_encode().

◆ g_msglen

size_t g_msglen
static

Definition at line 9 of file stackusage.c.

Referenced by do_decode(), and do_encode().

◆ g_stackbuf

uint32_t g_stackbuf[1024]
static

Definition at line 17 of file stackusage.c.

Referenced by end_stack_measuring(), and start_stack_measuring().

◆ g_stackptr

volatile uint32_t* g_stackptr
static

Definition at line 18 of file stackusage.c.

Referenced by end_stack_measuring(), and start_stack_measuring().