Skip to content

Commit

Permalink
pbio/drv/block_device_test: Enter REPL on completion.
Browse files Browse the repository at this point in the history
This is useful on ports where stdin is already implemented.
  • Loading branch information
laurensvalk committed Mar 22, 2024
1 parent 9b37555 commit a17576b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/pbio/drv/block_device/block_device_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,25 @@
* print("World!")
* wait(1000)
*
* raise KeyboardInterrupt
*/
const uint8_t script[] = {
0x6E, 0x00, 0x00, 0x00, 0x5F, 0x5F, 0x6D, 0x61,
0x73, 0x00, 0x00, 0x00, 0x5F, 0x5F, 0x6D, 0x61,
0x69, 0x6E, 0x5F, 0x5F, 0x00, 0x4D, 0x06, 0x00,
0x1F, 0x07, 0x00, 0x10, 0x68, 0x65, 0x6C, 0x6C,
0x1F, 0x08, 0x00, 0x10, 0x68, 0x65, 0x6C, 0x6C,
0x6F, 0x2E, 0x70, 0x79, 0x00, 0x0F, 0x08, 0x77,
0x61, 0x69, 0x74, 0x00, 0x1C, 0x70, 0x79, 0x62,
0x72, 0x69, 0x63, 0x6B, 0x73, 0x2E, 0x74, 0x6F,
0x6F, 0x6C, 0x73, 0x00, 0x0C, 0x48, 0x65, 0x6C,
0x6C, 0x6F, 0x21, 0x00, 0x0C, 0x57, 0x6F, 0x72,
0x6C, 0x64, 0x21, 0x00, 0x81, 0x77, 0x83, 0x18,
0x08, 0x0A, 0x01, 0x4C, 0x27, 0x28, 0x27, 0x80,
0x10, 0x02, 0x2A, 0x01, 0x1B, 0x03, 0x1C, 0x02,
0x16, 0x02, 0x59, 0x11, 0x06, 0x10, 0x04, 0x34,
0x01, 0x59, 0x11, 0x02, 0x22, 0x87, 0x68, 0x34,
0x01, 0x59, 0x11, 0x06, 0x10, 0x05, 0x34, 0x01,
0x59, 0x11, 0x02, 0x22, 0x87, 0x68, 0x34, 0x01,
0x59, 0x51, 0x63,
0x6C, 0x64, 0x21, 0x00, 0x81, 0x77, 0x55, 0x83,
0x38, 0x08, 0x0C, 0x01, 0x4C, 0x27, 0x28, 0x27,
0x48, 0x80, 0x10, 0x02, 0x2A, 0x01, 0x1B, 0x03,
0x1C, 0x02, 0x16, 0x02, 0x59, 0x11, 0x06, 0x10,
0x04, 0x34, 0x01, 0x59, 0x11, 0x02, 0x22, 0x87,
0x68, 0x34, 0x01, 0x59, 0x11, 0x06, 0x10, 0x05,
0x34, 0x01, 0x59, 0x11, 0x02, 0x22, 0x87, 0x68,
0x34, 0x01, 0x59, 0x11, 0x07, 0x65, 0x51, 0x63,
};

#define MAX_PROGRAM_SIZE ((PBDRV_CONFIG_BLOCK_DEVICE_TEST_SIZE)-(PBDRV_CONFIG_BLOCK_DEVICE_TEST_SIZE_USER)-sizeof(uint32_t) * 2)
Expand Down

0 comments on commit a17576b

Please sign in to comment.