PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
PropWare_asm.h
Go to the documentation of this file.
1 
28 #if (defined __cplusplus)
29 #error "This file is for assembly files only; Please use PropWare.h instead"
30 #endif
31 
32 #pragma once
33 
34 #define SECOND ((unsigned long long) CLKFREQ)
35 #define MILLISECOND ((unsigned long long) (CLKFREQ / 1000))
36 #define MICROSECOND ((unsigned long long) (MILLISECOND / 1000))
37 
38 
39 #define BIT_0 0x1
40 #define BIT_1 0x2
41 #define BIT_2 0x4
42 #define BIT_3 0x8
43 #define BIT_4 0x10
44 #define BIT_5 0x20
45 #define BIT_6 0x40
46 #define BIT_7 0x80
47 #define BIT_8 0x100
48 #define BIT_9 0x200
49 #define BIT_10 0x400
50 #define BIT_11 0x800
51 #define BIT_12 0x1000
52 #define BIT_13 0x2000
53 #define BIT_14 0x4000
54 #define BIT_15 0x8000
55 #define BIT_16 0x10000
56 #define BIT_17 0x20000
57 #define BIT_18 0x40000
58 #define BIT_19 0x80000
59 #define BIT_20 0x100000
60 #define BIT_21 0x200000
61 #define BIT_22 0x400000
62 #define BIT_23 0x800000
63 #define BIT_24 0x1000000
64 #define BIT_25 0x2000000
65 #define BIT_26 0x4000000
66 #define BIT_27 0x8000000
67 #define BIT_28 0x10000000
68 #define BIT_29 0x20000000
69 #define BIT_30 0x40000000
70 #define BIT_31 0x80000000
71 
72 #define NIBBLE_0 0xf
73 #define NIBBLE_1 0xf0
74 #define NIBBLE_2 0xf00
75 #define NIBBLE_3 0xf000
76 #define NIBBLE_4 0xf0000
77 #define NIBBLE_5 0xf00000
78 #define NIBBLE_6 0xf000000
79 #define NIBBLE_7 0xf0000000
80 
81 #define BYTE_0 0xff
82 #define BYTE_1 0xff00
83 #define BYTE_2 0xff0000
84 #define BYTE_3 0xff000000
85 
86 #define WORD_0 0xffff
87 #define WORD_1 0xffff0000
88 
89 #define GPIO_DIR_IN 0
90 #define GPIO_DIR_OUT -1