sitara_depot/components/free_rtos/base/swap.h

20 lines
414 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */