#include <delays.h>
Go to the source code of this file.
#define abs |
( |
|
x | ) |
((x) > 0 ? (x) : -(x)) |
#define abslimit |
( |
|
val, |
|
|
|
lim |
|
) |
| |
Value:{ \
if ((val) > (lim)) (val) = (lim); \
else if ((val) < -(lim)) (val) = -(lim); \
}
Definition at line 126 of file basics.h.
#define delay1mtcy |
( |
|
x | ) |
{ int8u d; for (d=0;d<100; d++) Delay10KTCYx(d); } |
#define int24s signed short long |
#define int24u unsigned short long |
#define int8s signed char |
#define int8u unsigned char |
#define msg_copy |
( |
|
dest, |
|
|
|
src |
|
) |
| dest=src |
#define rshift_sgn |
( |
|
val, |
|
|
|
shift |
|
) |
| (((val) > 0) ? ((val) >> (shift)) : -((-(val))>>(shift))) |
#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.
#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.
void ClrWdt_func |
( |
void |
| ) |
|
Use this instead of Reset to keep optimization.
void ShiftLeft64 |
( |
union union64 * |
p | ) |
|
const int8u basic_lshift[] |