Skip to content

Commit f552aef

Browse files
committed
implement more commands
1 parent 6050351 commit f552aef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

main.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ static void command_loop(void)
152152
case S_CMD_Q_CMDMAP:
153153
{
154154
static const uint32_t cmdmap[8] = {
155-
(1 << S_CMD_NOP) |
155+
(1 << S_CMD_NOP) |
156156
(1 << S_CMD_Q_IFACE) |
157+
(1 << S_CMD_Q_RDNMAXLEN) |
158+
(1 << S_CMD_Q_WRNMAXLEN) |
157159
(1 << S_CMD_Q_CMDMAP) |
158160
(1 << S_CMD_Q_PGMNAME) |
159161
(1 << S_CMD_Q_SERBUF) |
@@ -162,7 +164,10 @@ static void command_loop(void)
162164
(1 << S_CMD_O_SPIOP) |
163165
(1 << S_CMD_S_BUSTYPE) |
164166
(1 << S_CMD_S_SPI_FREQ)|
165-
(1 << S_CMD_S_PIN_STATE)
167+
(1 << S_CMD_S_PIN_STATE)|
168+
(1 << S_CMD_R_BYTE)|
169+
(1 << S_CMD_O_WRITEB)|
170+
(1 << S_CMD_O_INIT)
166171
};
167172

168173
sendbyte_blocking(S_ACK);

0 commit comments

Comments
 (0)