Permalink
Browse files

make functions static

  • Loading branch information...
1 parent 5164d89 commit cb5835e87053f145bb8434ac44ac3afedfd28583 @hartmutbehrens committed Jan 16, 2013
Showing with 4 additions and 7 deletions.
  1. +2 −3 c2e_main.c
  2. +2 −4 c2e_main.h
View
@@ -86,7 +86,7 @@ static uint32_t wait(void)
}
//display a IP address
-void display_ip_address(void)
+static void display_ip_address(void)
{
unsigned char *temp = (unsigned char *)&g_netif->ip_addr.addr;
// Convert the IP Address into a string for display purposes
@@ -95,7 +95,7 @@ void display_ip_address(void)
}
//display state
-void display_state(void)
+static void display_state(void)
{
usprintf(print_buf, "%d ", g_state);
RIT128x96x4StringDraw(print_buf, 110, 10, 15);
@@ -186,7 +186,6 @@ void lwIPHostTimerHandler(void) // This
{
enqueue_event(EV_BROADCAST); // broadcast presence, if no gateways have announced themselves yet
}
-
}
View
@@ -2,8 +2,6 @@
#define __C2E_CAN_ETHERNET_H
#include <stdint.h>
-
-
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
@@ -13,9 +11,9 @@ static uint32_t handle_IP_change(void); // handle a change in IP address
static uint32_t handle_GW_change(void); // handle an addition of GW
static uint32_t broadcast_presence(void);
static void load_boot_events(void); // enqueue the events required to boot the board
+static void display_state(void); // display state machine state
+static void display_ip_address(void); // display an lwIP address
-void display_state(void); // display state machine state
-void display_ip_address(void); // display an lwIP address
void netif_status_change(struct netif *netif);
void SYSTICK_handler(void);

0 comments on commit cb5835e

Please sign in to comment.