diff options
| author | GuEe-GUI <[email protected]> | 2024-12-11 17:40:19 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-12-13 10:39:20 +0800 |
| commit | a729a82706f8957351dceb9c410ff575ef0821d1 (patch) | |
| tree | 1c3e509686aa2a70ae6fcc540f3d39c04c26630e /components/drivers/include | |
| parent | 0ede1d6c65261dc7195086fd6d3650138dc70186 (diff) | |
[BSP/FIXUP] remove old reset drivers for RK3500
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/misc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/misc.h b/components/drivers/include/drivers/misc.h index 516a2f3721..ea962a2cc8 100644 --- a/components/drivers/include/drivers/misc.h +++ b/components/drivers/include/drivers/misc.h @@ -113,6 +113,22 @@ _rem; \ }) +#define rt_abs(x) \ +({ \ + long ret; \ + if (sizeof(x) == sizeof(long)) \ + { \ + long __x = (x); \ + ret = (__x < 0) ? -__x : __x; \ + } \ + else \ + { \ + int __x = (x); \ + ret = (__x < 0) ? -__x : __x; \ + } \ + ret; \ +}) + #ifndef rt_ilog2 rt_inline int rt_ilog2(rt_ubase_t v) { |
