├── .gitignore ├── .gitmodules ├── .travis.yml ├── COPYRIGHT ├── LICENSE-APACHE ├── LICENSE-MIT ├── Makefile ├── README.md ├── boot.mk ├── boot ├── boot.h ├── main.c └── usb.c ├── common.mk ├── common ├── analog.c ├── board.h ├── clock.c ├── dma.c ├── hw.h ├── nvm.h ├── pwm.c ├── samd21g18a_firmware_partition.ld ├── sercom.c ├── startup_samd21.c ├── timer.c └── util.h ├── firmware.mk ├── firmware ├── bridge.c ├── firmware.h ├── flash.c ├── main.c ├── port.c ├── usb.c ├── usbpipe.c └── usbserial.c ├── node ├── .jscsrc ├── .jshintrc ├── .nycrc ├── Gruntfile.js ├── package.json ├── tessel-export.js ├── tessel.js ├── test │ └── unit │ │ ├── disable-port-initialization.js │ │ └── tessel.js └── tests │ ├── adc.js │ ├── dac.js │ ├── interrupt.js │ ├── spi.js │ ├── tessel-export-uninitialized.js │ └── uart.js ├── scripts ├── boot.py ├── bootload.cfg ├── d21.cfg ├── flash.py ├── port_test │ ├── .gitignore │ ├── Cargo.lock │ ├── Cargo.toml │ ├── README.md │ ├── port_test.rs │ └── testcase │ │ ├── echo │ │ ├── gpio │ │ └── spi ├── pwr.py ├── reset.py └── usbdaemon_test │ ├── Cargo.lock │ ├── Cargo.toml │ ├── README.md │ ├── src │ └── lib.rs │ ├── testcase │ ├── multiple_processes │ ├── open_process │ └── out_of_order_close │ └── usbdaemon_test.rs ├── soc ├── Makefile ├── README.md ├── spid.c ├── spid.sh ├── usbexecd.c └── usbexecd.sh ├── test_rig.mk ├── test_rig ├── DAP.c ├── DAP.h ├── DAP_config.h ├── SW_DP.c ├── button.c ├── dap_hid.c ├── main.c ├── pins.c ├── rig-commander │ ├── index.js │ └── package.json ├── test_rig.h ├── test_rig_board.h └── usb.c ├── test_rig_boot.mk └── usb.mk /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/.gitmodules -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/.travis.yml -------------------------------------------------------------------------------- /COPYRIGHT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/COPYRIGHT -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/README.md -------------------------------------------------------------------------------- /boot.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/boot.mk -------------------------------------------------------------------------------- /boot/boot.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/boot/boot.h -------------------------------------------------------------------------------- /boot/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/boot/main.c -------------------------------------------------------------------------------- /boot/usb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/boot/usb.c -------------------------------------------------------------------------------- /common.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common.mk -------------------------------------------------------------------------------- /common/analog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/analog.c -------------------------------------------------------------------------------- /common/board.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/board.h -------------------------------------------------------------------------------- /common/clock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/clock.c -------------------------------------------------------------------------------- /common/dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/dma.c -------------------------------------------------------------------------------- /common/hw.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/hw.h -------------------------------------------------------------------------------- /common/nvm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/nvm.h -------------------------------------------------------------------------------- /common/pwm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/pwm.c -------------------------------------------------------------------------------- /common/samd21g18a_firmware_partition.ld: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/samd21g18a_firmware_partition.ld -------------------------------------------------------------------------------- /common/sercom.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/sercom.c -------------------------------------------------------------------------------- /common/startup_samd21.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/startup_samd21.c -------------------------------------------------------------------------------- /common/timer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/timer.c -------------------------------------------------------------------------------- /common/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/common/util.h -------------------------------------------------------------------------------- /firmware.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware.mk -------------------------------------------------------------------------------- /firmware/bridge.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/bridge.c -------------------------------------------------------------------------------- /firmware/firmware.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/firmware.h -------------------------------------------------------------------------------- /firmware/flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/flash.c -------------------------------------------------------------------------------- /firmware/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/main.c -------------------------------------------------------------------------------- /firmware/port.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/port.c -------------------------------------------------------------------------------- /firmware/usb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/usb.c -------------------------------------------------------------------------------- /firmware/usbpipe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/usbpipe.c -------------------------------------------------------------------------------- /firmware/usbserial.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/firmware/usbserial.c -------------------------------------------------------------------------------- /node/.jscsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/.jscsrc -------------------------------------------------------------------------------- /node/.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/.jshintrc -------------------------------------------------------------------------------- /node/.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/.nycrc -------------------------------------------------------------------------------- /node/Gruntfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/Gruntfile.js -------------------------------------------------------------------------------- /node/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/package.json -------------------------------------------------------------------------------- /node/tessel-export.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tessel-export.js -------------------------------------------------------------------------------- /node/tessel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tessel.js -------------------------------------------------------------------------------- /node/test/unit/disable-port-initialization.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/test/unit/disable-port-initialization.js -------------------------------------------------------------------------------- /node/test/unit/tessel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/test/unit/tessel.js -------------------------------------------------------------------------------- /node/tests/adc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tests/adc.js -------------------------------------------------------------------------------- /node/tests/dac.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tests/dac.js -------------------------------------------------------------------------------- /node/tests/interrupt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tests/interrupt.js -------------------------------------------------------------------------------- /node/tests/spi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tests/spi.js -------------------------------------------------------------------------------- /node/tests/tessel-export-uninitialized.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tests/tessel-export-uninitialized.js -------------------------------------------------------------------------------- /node/tests/uart.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/node/tests/uart.js -------------------------------------------------------------------------------- /scripts/boot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/boot.py -------------------------------------------------------------------------------- /scripts/bootload.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/bootload.cfg -------------------------------------------------------------------------------- /scripts/d21.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/d21.cfg -------------------------------------------------------------------------------- /scripts/flash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/flash.py -------------------------------------------------------------------------------- /scripts/port_test/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /scripts/port_test/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/Cargo.lock -------------------------------------------------------------------------------- /scripts/port_test/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/Cargo.toml -------------------------------------------------------------------------------- /scripts/port_test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/README.md -------------------------------------------------------------------------------- /scripts/port_test/port_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/port_test.rs -------------------------------------------------------------------------------- /scripts/port_test/testcase/echo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/testcase/echo -------------------------------------------------------------------------------- /scripts/port_test/testcase/gpio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/testcase/gpio -------------------------------------------------------------------------------- /scripts/port_test/testcase/spi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/port_test/testcase/spi -------------------------------------------------------------------------------- /scripts/pwr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/pwr.py -------------------------------------------------------------------------------- /scripts/reset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/reset.py -------------------------------------------------------------------------------- /scripts/usbdaemon_test/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/Cargo.lock -------------------------------------------------------------------------------- /scripts/usbdaemon_test/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/Cargo.toml -------------------------------------------------------------------------------- /scripts/usbdaemon_test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/README.md -------------------------------------------------------------------------------- /scripts/usbdaemon_test/src/lib.rs: -------------------------------------------------------------------------------- 1 | #[test] 2 | fn it_works() { 3 | } 4 | -------------------------------------------------------------------------------- /scripts/usbdaemon_test/testcase/multiple_processes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/testcase/multiple_processes -------------------------------------------------------------------------------- /scripts/usbdaemon_test/testcase/open_process: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/testcase/open_process -------------------------------------------------------------------------------- /scripts/usbdaemon_test/testcase/out_of_order_close: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/testcase/out_of_order_close -------------------------------------------------------------------------------- /scripts/usbdaemon_test/usbdaemon_test.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/scripts/usbdaemon_test/usbdaemon_test.rs -------------------------------------------------------------------------------- /soc/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/soc/Makefile -------------------------------------------------------------------------------- /soc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/soc/README.md -------------------------------------------------------------------------------- /soc/spid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/soc/spid.c -------------------------------------------------------------------------------- /soc/spid.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/soc/spid.sh -------------------------------------------------------------------------------- /soc/usbexecd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/soc/usbexecd.c -------------------------------------------------------------------------------- /soc/usbexecd.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/soc/usbexecd.sh -------------------------------------------------------------------------------- /test_rig.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig.mk -------------------------------------------------------------------------------- /test_rig/DAP.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/DAP.c -------------------------------------------------------------------------------- /test_rig/DAP.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/DAP.h -------------------------------------------------------------------------------- /test_rig/DAP_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/DAP_config.h -------------------------------------------------------------------------------- /test_rig/SW_DP.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/SW_DP.c -------------------------------------------------------------------------------- /test_rig/button.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/button.c -------------------------------------------------------------------------------- /test_rig/dap_hid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/dap_hid.c -------------------------------------------------------------------------------- /test_rig/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/main.c -------------------------------------------------------------------------------- /test_rig/pins.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/pins.c -------------------------------------------------------------------------------- /test_rig/rig-commander/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/rig-commander/index.js -------------------------------------------------------------------------------- /test_rig/rig-commander/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/rig-commander/package.json -------------------------------------------------------------------------------- /test_rig/test_rig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/test_rig.h -------------------------------------------------------------------------------- /test_rig/test_rig_board.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/test_rig_board.h -------------------------------------------------------------------------------- /test_rig/usb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig/usb.c -------------------------------------------------------------------------------- /test_rig_boot.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/test_rig_boot.mk -------------------------------------------------------------------------------- /usb.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tessel/t2-firmware/HEAD/usb.mk --------------------------------------------------------------------------------