mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 12:14:28 +00:00
Minor documentation improvement
This commit is contained in:
parent
bb6df52ed5
commit
b359b8c3e0
@ -50,6 +50,8 @@
|
|||||||
/**
|
/**
|
||||||
* @defgroup compiler_abstraction Compiler/platform abstraction
|
* @defgroup compiler_abstraction Compiler/platform abstraction
|
||||||
* @ingroup sys_layer
|
* @ingroup sys_layer
|
||||||
|
* All defines related to this section must not be places in lwipopts.h,
|
||||||
|
* but in arch/cc.h!
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -137,7 +139,7 @@ typedef uintptr_t mem_ptr_t;
|
|||||||
* trailing padding bytes (see LWIP_MEM_ALIGN_BUFFER) or your own section placement
|
* trailing padding bytes (see LWIP_MEM_ALIGN_BUFFER) or your own section placement
|
||||||
* requirements.
|
* requirements.
|
||||||
* e.g. if you use gcc and need 32 bit alignment:
|
* e.g. if you use gcc and need 32 bit alignment:
|
||||||
* \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[size] __attribute__((aligned(4)))
|
* \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u8_t variable_name[size] \_\_attribute\_\_((aligned(4)))
|
||||||
* or more portable:
|
* or more portable:
|
||||||
* \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u32_t variable_name[(size + sizeof(u32_t) - 1) / sizeof(u32_t)]
|
* \#define LWIP_DECLARE_MEMORY_ALIGNED(variable_name, size) u32_t variable_name[(size + sizeof(u32_t) - 1) / sizeof(u32_t)]
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user