File tree 6 files changed +22
-22
lines changed
6 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 7
7
* Copyright (C) 2021, Uri Shaked.
8
8
**/
9
9
10
- import { GDBClient , dumpUint32 , registerNames } from '../test-utils/gdbclient' ;
10
+ import { GDBClient , dumpUint32 , registerNames } from '../test-utils/gdbclient.js ' ;
11
11
12
12
function printComparedRegisters (
13
13
registers : Uint32Array ,
Original file line number Diff line number Diff line change 1
1
import * as fs from 'fs' ;
2
- import { RP2040 } from '../src' ;
3
- import { bootromB1 } from './bootrom' ;
4
- import { loadHex } from './intelhex' ;
5
- import { GDBTCPServer } from '../src/gdb/gdb-tcp-server' ;
2
+ import { RP2040 } from '../src/index.js ' ;
3
+ import { bootromB1 } from './bootrom.js ' ;
4
+ import { loadHex } from './intelhex.js ' ;
5
+ import { GDBTCPServer } from '../src/gdb/gdb-tcp-server.js ' ;
6
6
7
7
// Create an array with the compiled code of blink
8
8
// Execute the instructions from this array, one by one.
Original file line number Diff line number Diff line change 1
1
import { closeSync , openSync , readSync } from 'fs' ;
2
2
import { decodeBlock } from 'uf2' ;
3
- import { RP2040 } from '../src' ;
4
- import { FLASH_START_ADDRESS } from '../src/rp2040' ;
3
+ import { RP2040 } from '../src/index.js ' ;
4
+ import { FLASH_START_ADDRESS } from '../src/rp2040.js ' ;
5
5
6
6
const MICROPYTHON_FS_FLASH_START = 0xa0000 ;
7
7
const MICROPYTHON_FS_BLOCKSIZE = 4096 ;
Original file line number Diff line number Diff line change 1
- import { RP2040 } from '../src' ;
2
- import { GDBTCPServer } from '../src/gdb/gdb-tcp-server' ;
3
- import { USBCDC } from '../src/usb/cdc' ;
4
- import { ConsoleLogger , LogLevel } from '../src/utils/logging' ;
5
- import { bootromB1 } from './bootrom' ;
6
- import { loadUF2 , loadMicropythonFlashImage , loadCircuitpythonFlashImage } from './load-flash' ;
1
+ import { RP2040 } from '../src/index.js ' ;
2
+ import { GDBTCPServer } from '../src/gdb/gdb-tcp-server.js ' ;
3
+ import { USBCDC } from '../src/usb/cdc.js ' ;
4
+ import { ConsoleLogger , LogLevel } from '../src/utils/logging.js ' ;
5
+ import { bootromB1 } from './bootrom.js ' ;
6
+ import { loadUF2 , loadMicropythonFlashImage , loadCircuitpythonFlashImage } from './load-flash.js ' ;
7
7
import fs from 'fs' ;
8
8
import minimist from 'minimist' ;
9
9
Original file line number Diff line number Diff line change 48
48
"prepare" : " husky install" ,
49
49
"format:check" : " prettier --check **/*.{ts,js} !**/dist/** !**/node_modules/**" ,
50
50
"lint" : " eslint . --ext .ts" ,
51
- "start" : " ts-node demo/emulator-run.ts" ,
52
- "start:micropython" : " ts-node demo/micropython-run.ts" ,
53
- "start:circuitpython" : " ts-node demo/micropython-run.ts --circuitpython" ,
54
- "start:gdbdiff" : " ts-node debug/gdbdiff.ts" ,
51
+ "start" : " ts-node --esm demo/emulator-run.ts" ,
52
+ "start:micropython" : " ts-node --esm demo/micropython-run.ts" ,
53
+ "start:circuitpython" : " ts-node --esm demo/micropython-run.ts --circuitpython" ,
54
+ "start:gdbdiff" : " ts-node --esm debug/gdbdiff.ts" ,
55
55
"test" : " vitest run" ,
56
56
"test:watch" : " vitest" ,
57
- "test:micropython-spi" : " ts-node test/micropython-spi-test.ts"
57
+ "test:micropython-spi" : " ts-node --esm test/micropython-spi-test.ts"
58
58
},
59
59
"devDependencies" : {
60
60
"@types/minimist" : " ^1.2.2" ,
Original file line number Diff line number Diff line change 1
- import { GPIOPinState , RP2040 } from '../src' ;
2
- import { ConsoleLogger , LogLevel } from '../src/utils/logging' ;
3
- import { bootromB1 } from '../demo/bootrom' ;
4
- import { loadUF2 , loadMicropythonFlashImage } from '../demo/load-flash' ;
1
+ import { GPIOPinState , RP2040 } from '../src/index.js ' ;
2
+ import { ConsoleLogger , LogLevel } from '../src/utils/logging.js ' ;
3
+ import { bootromB1 } from '../demo/bootrom.js ' ;
4
+ import { loadUF2 , loadMicropythonFlashImage } from '../demo/load-flash.js ' ;
5
5
import fs from 'fs' ;
6
6
import minimist from 'minimist' ;
7
7
You can’t perform that action at this time.
0 commit comments