diff options
| author | Dirk Ziegelmeier <[email protected]> | 2017-03-15 20:16:52 +0100 |
|---|---|---|
| committer | Dirk Ziegelmeier <[email protected]> | 2017-03-15 20:16:52 +0100 |
| commit | b9a40a5163b78cf186169fc878f5a655fee20261 (patch) | |
| tree | d61b4de6d19f6fca48d17bfe557fde2b634c722c /doc/NO_SYS_SampleCode.c | |
| parent | da0714d7cb8f8b617bd241ea37ccab23ac82c951 (diff) | |
Fix coding style NO_SYS example code
Diffstat (limited to 'doc/NO_SYS_SampleCode.c')
| -rw-r--r-- | doc/NO_SYS_SampleCode.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/NO_SYS_SampleCode.c b/doc/NO_SYS_SampleCode.c index 64ab9349..f0af6600 100644 --- a/doc/NO_SYS_SampleCode.c +++ b/doc/NO_SYS_SampleCode.c @@ -1,4 +1,5 @@ -void eth_mac_irq() +void +eth_mac_irq() { /* Service MAC IRQ here */ @@ -17,7 +18,8 @@ void eth_mac_irq() } } -static err_t netif_output(struct netif *netif, struct pbuf *p) +static err_t +netif_output(struct netif *netif, struct pbuf *p) { LINK_STATS_INC(link.xmit); @@ -38,12 +40,14 @@ static err_t netif_output(struct netif *netif, struct pbuf *p) return ERR_OK; } -static void netif_status_callback(struct netif *netif) +static void +netif_status_callback(struct netif *netif) { printf("netif status changed %s\n", ip4addr_ntoa(netif_ip4_addr(netif))); } -static err_t netif_init(struct netif *netif) +static err_t +netif_init(struct netif *netif) { netif->linkoutput = netif_output; netif->output = etharp_output; @@ -58,7 +62,8 @@ static err_t netif_init(struct netif *netif) return ERR_OK; } -void main(void) +void +main(void) { struct netif netif; |
