Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move transition struct from config to c2e_main

  • Loading branch information...
commit 2f232d9a89ef529ece89483353d908a194604474 1 parent c78ac4a
@hartmutbehrens authored
Showing with 8 additions and 8 deletions.
  1. +7 −0 c2e_main.h
  2. +1 −8 config.h
View
7 c2e_main.h
@@ -2,6 +2,13 @@
#define __C2E_CAN_ETHERNET_H
#include <stdint.h>
+typedef struct
+{
+ uint32_t state;
+ uint32_t event;
+ uint32_t (*fn)(void);
+} transition_t; // state machine transition struct
+
static uint32_t fsm_any(void); // catch all state machine function that executes when STATE = ANY and EVENT = ANY
static uint32_t BOARD_init(void); // initialize clock, power, display
static uint32_t INT_init(void); // Master interrupt enable
View
9 config.h
@@ -2,13 +2,6 @@
#define __C2E_CONFIG_H
#include <stdint.h>
-typedef struct
-{
- uint32_t state;
- uint32_t event;
- uint32_t (*fn)(void);
-} transition_t; // state machine transition struct
-
#ifndef DHCP_EXPIRE_TIMER_SECS
#define DHCP_EXPIRE_TIMER_SECS 45 // Timeout for DHCP address request
#endif
@@ -59,4 +52,4 @@ typedef struct
#define SYSTICKUS (1000000 / SYSTICKHZ)
#define SYSTICKNS (1000000000 / SYSTICKHZ)
-#endif
+#endif
Please sign in to comment.
Something went wrong with that request. Please try again.