Go to the documentation of this file.
52 #define SSP_DATA 0x0001
53 #define SSP_CLOCK 0x0002
54 #define SSP_CHIPSEL 0x0003
55 #define SSP_OUT 0x0004
56 #define SSP_PIN_SEL(pin, v) ((v) << ((pin) * 3))
57 #define SSP_PIN_MASK(pin) SSP_PIN_SEL(pin, 0x7)
58 #define SSP_INPUT_SEL(pin) ((pin) << 16)
61 #define SSP_EARLY_DIN BIT(8)
62 #define SSP_DELAY_DOUT BIT(9)
65 #define SSP_CLK_HIGH BIT(0)
67 #define SSP_DATA_HIGH BIT(1)
68 #define SSP_DATA_LOW 0
69 #define SSP_CS_HIGH BIT(2)
71 #define SSP_OUT_MODE BIT(3)
73 #define SSP_DATA_REG BIT(4)
74 #define SSP_ADDR_REG 0
76 #define SSP_OPCODE_DIRECT ((0x0) << 5)
77 #define SSP_OPCODE_TOGGLE ((0x1) << 5)
78 #define SSP_OPCODE_SHIFT ((0x2) << 5)
79 #define SSP_OPCODE_BRANCH0 ((0x4) << 5)
80 #define SSP_OPCODE_BRANCH1 ((0x5) << 5)
81 #define SSP_OPCODE_BRANCH ((0x6) << 5)
82 #define SSP_OPCODE_STOP ((0x7) << 5)
83 #define SSP_BRANCH(addr) ((addr) << 8)
84 #define SSP_COUNT(cycles) ((cycles) << 8)