#include <delays.h>
Go to the source code of this file.
◆ __wparam
◆ abs
#define abs |
( |
|
x | ) |
((x) > 0 ? (x) : -(x)) |
◆ abslimit
#define abslimit |
( |
|
val, |
|
|
|
lim |
|
) |
| |
Value:{ \
if ((val) > (lim)) (val) = (lim); \
else if ((val) < -(lim)) (val) = -(lim); \
}
Definition at line 126 of file basics.h.
◆ CARRY_BIT
◆ delay1mtcy
#define delay1mtcy |
( |
|
x | ) |
{ int8u d; for (d=0;d<100; d++) Delay10KTCYx(d); } |
◆ int16s
◆ int16u
◆ int24s
#define int24s signed short long |
◆ int24u
#define int24u unsigned short long |
◆ int32s
◆ int32u
◆ int8s
#define int8s signed char |
◆ int8u
#define int8u unsigned char |
◆ msg_copy
#define msg_copy |
( |
|
dest, |
|
|
|
src |
|
) |
| dest=src |
◆ rshift_sgn
#define rshift_sgn |
( |
|
val, |
|
|
|
shift |
|
) |
| (((val) > 0) ? ((val) >> (shift)) : -((-(val))>>(shift))) |
◆ shift_right_signed_16
#define shift_right_signed_16 |
( |
|
x | ) |
|
Value:x >>= 1; \
_asm \
btfsc x+1, 6, 1 \
bsf x+1, 7, 1 \
_endasm
Definition at line 106 of file basics.h.
◆ shift_right_signed_32
#define shift_right_signed_32 |
( |
|
x | ) |
|
Value:x >>= 1; \
_asm \
btfsc x+3, 6, 1 \
bsf x+3, 7, 1 \
_endasm
Definition at line 96 of file basics.h.
◆ int64u
◆ union16_t
◆ union32_t
◆ union64_t
◆ ClrWdt_func()
void ClrWdt_func |
( |
void |
| ) |
|
◆ Reset_func()
Use this instead of Reset to keep optimization.
◆ ShiftLeft64()
void ShiftLeft64 |
( |
union union64 * |
p | ) |
|
◆ basic_lshift
const int8u basic_lshift[] |