EZR32 Wonder Gecko Software Documentation
ezr32wg-doc-5.1.2
|
General purpose utilities.
Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no obligation to support this Software. Silicon Labs is providing the Software "AS IS", with no express or implied warranties of any kind, including, but not limited to, any implied warranties of merchantability or fitness for any particular purpose or warranties against infringement of any proprietary rights of a third party.
Silicon Labs will not be liable for any consequential, incidental, or special damages, or any other relief, or for any claim by any third party, arising from your use of this Software.
Definition in file em_common.h.
Go to the source code of this file.
Macros | |
#define | SL_ALIGN(X) |
Macro for aligning a variable. Use this macro before the variable definition. X denotes the storage alignment value in bytes. To be gcc compatible use SL_ATTRIBUTE_ALIGN(X) before the ; on normal variables. Use SL_ATTRIBUTE_ALIGN(X) before the opening { on struct variables. | |
#define | SL_ATTRIBUTE_ALIGN(X) __attribute__ ((aligned(X))) |
GCC style macro for aligning a variable. | |
#define | SL_ATTRIBUTE_PACKED __attribute__ ((packed)) |
GCC style macro for handling packed structs. | |
#define | SL_ATTRIBUTE_SECTION(X) __attribute__ ((section(X))) |
#define | SL_MAX(a, b) __extension__({__typeof__(a) _a = (a); __typeof__(b) _b = (b); _a > _b ? _a : _b;}) |
Macro for getting maximum value. No sideeffects, a and b are evaluated once only. | |
#define | SL_MIN(a, b) __extension__({__typeof__(a) _a = (a); __typeof__(b) _b = (b); _a < _b ? _a : _b;}) |
Macro for getting minimum value. No sideeffects, a and b are evaluated once only. | |
#define | SL_NORETURN __attribute__ ((noreturn)) |
Macro for handling non-returning functions. | |
#define | SL_PACK_END() |
Macro for handling packed structs. Use this macro after the struct definition. With GCC, add SL_ATTRIBUTE_PACKED after the closing } of the struct definition. | |
#define | SL_PACK_START(x) |
Macro for handling packed structs. Use this macro before the struct definition. X denotes the maximum alignment of struct members. X is not supported with GCC. GCC always use 1 byte maximum alignment. | |
#define | SL_WEAK __attribute__ ((weak)) |
Macro for defining a weak symbol. | |
Functions | |
__STATIC_INLINE uint32_t | EFM32_CTZ (uint32_t value) |
__STATIC_INLINE uint32_t | SL_CTZ (uint32_t value) |
Count trailing number of zeros. Use CLZ instruction if available. More... | |