1 #ifndef __ZBOOT_MACRO_H
2 #define __ZBOOT_MACRO_H
4 /* The LIST command is used to include comments in the script */
8 /* The ED command is used to write a 32-bit word */
19 /* The EW command is used to write a 16-bit word */
30 /* The EB command is used to write an 8-bit word */
41 /* The WAIT command is used to delay the execution */
42 .macro WAIT, time, reg
57 /* The DD command is used to read a 32-bit word */
65 /* loop until a given value has been read (with mask) */
66 .macro WAIT_MASK, addr, data, cmp
82 /* read 32-bit value from addr, "or" an immediate and write back */
83 .macro ED_OR, addr, data
95 /* read 32-bit value from addr, "and" an immediate and write back */
96 .macro ED_AND, addr, data
108 #endif /* __ZBOOT_MACRO_H */