krnl
Macros | Typedefs | Functions | Variables
sm.c File Reference
#include <stdio.h>
Include dependency graph for sm.c:

Go to the source code of this file.

Macros

#define NEXT(x, y, z)   return ((void *)x)
 

Typedefs

typedef voidvoid
 

Functions

voidled_on ()
 
voidled_off ()
 
voidled_save ()
 
voidpause ()
 
voidjens ()
 
void main ()
 

Variables

pF statefunc = led_on
 
pF oldfunc = NULL
 

Macro Definition Documentation

◆ NEXT

#define NEXT (   x,
  y,
 
)    return ((void *)x)

Definition at line 7 of file sm.c.

Typedef Documentation

◆ void

typedef void* void

Definition at line 5 of file sm.c.

Function Documentation

◆ jens()

void * jens ( )

Definition at line 35 of file sm.c.

References led_off(), led_on(), and NEXT.

Referenced by led_save().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ led_off()

void * led_off ( )

Definition at line 50 of file sm.c.

References led_off(), led_on(), led_save(), NEXT, and pause().

Referenced by jens(), led_off(), led_on(), and led_save().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ led_on()

void * led_on ( )

Definition at line 28 of file sm.c.

References led_off(), led_on(), and NEXT.

Referenced by jens(), led_off(), led_on(), led_save(), and pause().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ led_save()

void * led_save ( )

Definition at line 65 of file sm.c.

References jens(), led_off(), led_on(), led_save(), and NEXT.

Referenced by led_off(), and led_save().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

void main ( )

Definition at line 75 of file sm.c.

References oldfunc, and statefunc.

◆ pause()

void pause ( )

Definition at line 44 of file sm.c.

References led_on(), and NEXT.

Referenced by led_off().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ oldfunc

pF oldfunc = NULL

Definition at line 19 of file sm.c.

Referenced by loop(), and main().

◆ statefunc

pF statefunc = led_on

Definition at line 19 of file sm.c.

Referenced by loop(), main(), and setup().