20 lines
414 B
C
20 lines
414 B
C
/*
|
||
* swap.h
|
||
*
|
||
* Created on: 13 мар. 2023 г.
|
||
* Author: sychev
|
||
*/
|
||
|
||
#ifndef FREE_RTOS_BASE_SWAP_H_
|
||
#define FREE_RTOS_BASE_SWAP_H_
|
||
|
||
#include <arm_acle.h>
|
||
|
||
//#define BASE_SWAP32(value) __builtin_bswap32(value)
|
||
#define BASE_SWAP32(value) __rev(value)
|
||
|
||
//#define BASE_SWAP16(value) (uint16_t)__builtin_bswap16(value)
|
||
#define BASE_SWAP16(value) (uint16_t)__rev16(value)
|
||
|
||
#endif /* FREE_RTOS_BASE_SWAP_H_ */
|