Skip to content

Commit

Permalink
Removing trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Jun 30, 2014
1 parent ed87b92 commit f111058
Show file tree
Hide file tree
Showing 33 changed files with 237 additions and 237 deletions.
28 changes: 14 additions & 14 deletions core/net/ip/uip.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ typedef uip_eth_addr uip_lladdr_t;
uip_ipaddr(&addr, 192,168,1,2);
uip_sethostaddr(&addr);
\endcode
* \param addr A pointer to an IP address of type uip_ipaddr_t;
*
Expand Down Expand Up @@ -848,7 +848,7 @@ CCIF void uip_send(const void *data, int len);
\code
uip_ipaddr_t addr;
struct uip_udp_conn *c;
uip_ipaddr(&addr, 192,168,2,1);
c = uip_udp_new(&addr, UIP_HTONS(12345));
if(c != NULL) {
Expand Down Expand Up @@ -909,7 +909,7 @@ struct uip_udp_conn *uip_udp_new(const uip_ipaddr_t *ripaddr, uint16_t rport);
* These functions can be used for converting between different data
* formats used by uIP.
*/

/**
* Convert an IP address to four bytes separated by commas.
*
Expand All @@ -935,7 +935,7 @@ struct uip_udp_conn *uip_udp_new(const uip_ipaddr_t *ripaddr, uint16_t rport);
\code
uip_ipaddr_t ipaddr;
struct uip_conn *c;
uip_ipaddr(&ipaddr, 192,168,1,2);
c = uip_connect(&ipaddr, UIP_HTONS(80));
\endcode
Expand Down Expand Up @@ -1333,11 +1333,11 @@ extern uint16_t uip_urglen, uip_surglen;
*/
struct uip_conn {
uip_ipaddr_t ripaddr; /**< The IP address of the remote host. */

uint16_t lport; /**< The local TCP port, in network byte order. */
uint16_t rport; /**< The local remote TCP port, in network byte
order. */

uint8_t rcv_nxt[4]; /**< The sequence number that we expect to
receive next. */
uint8_t snd_nxt[4]; /**< The sequence number that was last sent by
Expand Down Expand Up @@ -1440,7 +1440,7 @@ struct uip_stats {
layer. */
uip_stats_t sent; /**< Number of sent packets at the IP
layer. */
uip_stats_t forwarded;/**< Number of forwarded packets at the IP
uip_stats_t forwarded;/**< Number of forwarded packets at the IP
layer. */
uip_stats_t drop; /**< Number of dropped packets at the IP
layer. */
Expand Down Expand Up @@ -1569,14 +1569,14 @@ uip_ext_hdr_options_process(); */
* The actual uIP function which does all the work.
*/
void uip_process(uint8_t flag);

/* The following flags are passed as an argument to the uip_process()
function. They are used to distinguish between the two cases where
uip_process() is called. It can be called either because we have
incoming data that should be processed, or because the periodic
timer has fired. These values are never used directly, but only in
the macros defined in this file. */

#define UIP_DATA 1 /* Tells uIP that there is incoming
data in the uip_buf buffer. The
length of the data is stored in the
Expand All @@ -1603,7 +1603,7 @@ void uip_process(uint8_t flag);
#define UIP_TIME_WAIT 7
#define UIP_LAST_ACK 8
#define UIP_TS_MASK 15

#define UIP_STOPPED 16

/* The TCP and IP headers. */
Expand All @@ -1628,7 +1628,7 @@ struct uip_tcpip_hdr {
uint16_t ipchksum;
uip_ipaddr_t srcipaddr, destipaddr;
#endif /* UIP_CONF_IPV6 */

/* TCP header. */
uint16_t srcport,
destport;
Expand Down Expand Up @@ -1664,7 +1664,7 @@ struct uip_icmpip_hdr {
uint16_t ipchksum;
uip_ipaddr_t srcipaddr, destipaddr;
#endif /* UIP_CONF_IPV6 */

/* ICMP header. */
uint8_t type, icode;
uint16_t icmpchksum;
Expand Down Expand Up @@ -1697,7 +1697,7 @@ struct uip_udpip_hdr {
uint16_t ipchksum;
uip_ipaddr_t srcipaddr, destipaddr;
#endif /* UIP_CONF_IPV6 */

/* UDP header. */
uint16_t srcport,
destport;
Expand Down Expand Up @@ -2083,7 +2083,7 @@ CCIF extern uip_lladdr_t uip_lladdr;
(((a)->u8[13]) == (m)->addr[3]) && \
(((a)->u8[14]) == (m)->addr[4]) && \
(((a)->u8[15]) == (m)->addr[5]))

#endif /*UIP_CONF_LL_802154*/

/**
Expand Down
6 changes: 3 additions & 3 deletions cpu/pic32/clock.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down Expand Up @@ -129,7 +129,7 @@ clock_delay_usec(uint16_t dt)
uint32_t stop;

asm volatile("mfc0 %0, $9" : "=r"(now));

/* The Count register is incremented every two system clock (SYSCLK) cycles. */

stop = now + dt * ((pic32_clock_get_system_clock() / 1000000) / 2);
Expand Down
4 changes: 2 additions & 2 deletions cpu/pic32/debug-uart.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down
4 changes: 2 additions & 2 deletions cpu/pic32/debug-uart.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down
4 changes: 2 additions & 2 deletions cpu/pic32/dev/uart1.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down
4 changes: 2 additions & 2 deletions cpu/pic32/mtarch.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down
14 changes: 7 additions & 7 deletions cpu/pic32/pic32.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down Expand Up @@ -50,7 +50,7 @@

/*
* PIC32MX795F512L - Specific Functions
*
*
* All the functions in this part of the file are specific for the
* pic32mx795f512l that is characterized by registers' name that differ from
* the 3xx and 4xx families of the pic32mx.
Expand All @@ -59,7 +59,7 @@
#include <pic32_irq.h>

#include <p32xxxx.h>
#include <peripheral/system.h>
#include <peripheral/system.h>
#include <stdint.h>

#include <dev/leds.h>
Expand Down Expand Up @@ -106,10 +106,10 @@ pic32_init(void)
SYSKEY = 0;
SYSKEY = 0xaa996655;
SYSKEY = 0x556699aa;

/* Enable Sleep Mode */
OSCCONCLR = 1 << _OSCCON_SLPEN_POSITION;

SYSKEY = 0;

ASM_EN_INT;
Expand All @@ -125,7 +125,7 @@ _general_exception_handler(void)
asm volatile ("mfc0 %0,$13":"=r" (cp0_exception_cause));

cp0_exception_code = (cp0_exception_cause >> 2) & 0x0000001F;

leds_on(LEDS_ALL);

while(1){
Expand Down
8 changes: 4 additions & 4 deletions cpu/pic32/rtimer-arch.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down Expand Up @@ -49,7 +49,7 @@

/*
* PIC32MX795F512L - Specific Functions
*
*
* All the functions in this part of the file are specific for the
* pic32mx795f512l that is characterized by registers' name that differ from
* the 3xx and 4xx families of the pic32mx.
Expand Down Expand Up @@ -85,7 +85,7 @@ rtimer_arch_init(void)
IPC3CLR = _IPC3_T3IP_MASK | _IPC3_T3IS_MASK;
IPC3SET = (7 << _IPC3_T3IP_POSITION) | (3 << _IPC3_T3IS_POSITION);
T2CON = 0;
T3CON = 0;
T3CON = 0;
T2CONSET = _T2CON_T32_MASK | (TIMER_B_PRESCALE_256 << _T2CON_TCKPS_POSITION);
PR2 = 0xFFFFFFFF;
TMR2 = 0;
Expand Down
4 changes: 2 additions & 2 deletions cpu/pic32/rtimer-arch.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down
10 changes: 5 additions & 5 deletions cpu/pic32/watchdog.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*
* Contiki PIC32 Port project
*
*
* Copyright (c) 2012,
* Scuola Superiore Sant'Anna (http://www.sssup.it) and
* Consorzio Nazionale Interuniversitario per le Telecomunicazioni
* (http://www.cnit.it).
*
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
Expand Down Expand Up @@ -83,7 +83,7 @@ void
watchdog_reboot(void)
{
volatile int *p = (int *)&RSWRST;

/* Unlock sequence */
ASM_DIS_INT;
if(!(DMACONbits.SUSPEND)){
Expand All @@ -92,11 +92,11 @@ watchdog_reboot(void)
; // wait to be actually suspended
}
}

SYSKEY = 0;
SYSKEY = 0xaa996655;
SYSKEY = 0x556699aa;

RSWRSTSET=_RSWRST_SWRST_MASK;
*p;

Expand Down
10 changes: 5 additions & 5 deletions cpu/stm32w108/hal/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @brief Return codes for API functions and module definitions.
*
* See @ref status_codes for documentation.
*
*
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/

Expand All @@ -28,7 +28,7 @@
*
* @param symbol The name of the constant being defined. All St returns
* begin with ST_. For example, ::ST_CONNECTION_OPEN.
*
*
* @param value The value of the return code. For example, 0x61.
*/
#define DEFINE_ERROR(symbol, value) \
Expand All @@ -39,8 +39,8 @@ enum {
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#include "error-def.h"
#endif //DOXYGEN_SHOULD_SKIP_THIS
/** Gets defined as a count of all the possible return codes in the
* StZNet stack API.
/** Gets defined as a count of all the possible return codes in the
* StZNet stack API.
*/
ST_ERROR_CODE_COUNT

Expand All @@ -52,5 +52,5 @@ enum {

/**@} // End of addtogroup
*/


Loading

0 comments on commit f111058

Please sign in to comment.