changed uip_buf to a union for 32-bit alignment
This commit is contained in:
parent
9db7f06368
commit
2d447502d4
4 changed files with 18 additions and 17 deletions
|
@ -41,7 +41,7 @@
|
|||
*
|
||||
* This file is part of the uIP TCP/IP stack.
|
||||
*
|
||||
* $Id: uip6.c,v 1.22 2010/05/07 20:45:16 oliverschmidt Exp $
|
||||
* $Id: uip6.c,v 1.23 2010/05/24 10:07:34 joxe Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -170,11 +170,9 @@ u8_t uip_ext_opt_offset = 0;
|
|||
*/
|
||||
/** Packet buffer for incoming and outgoing packets */
|
||||
#ifndef UIP_CONF_EXTERNAL_BUFFER
|
||||
static uint32_t uip_buf32[(UIP_BUFSIZE + 3) / 4];
|
||||
uip_buf_t uip_aligned_buf;
|
||||
#endif /* UIP_CONF_EXTERNAL_BUFFER */
|
||||
|
||||
uint8_t * const uip_buf = (uint8_t * const) uip_buf32;
|
||||
|
||||
/* The uip_appdata pointer points to application data. */
|
||||
void *uip_appdata;
|
||||
/* The uip_appdata pointer points to the application data which is to be sent*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue