ulp-c

command module
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

README

ulp-c

Test Status

ulp-c is a C compiler for the ESP32 ULP coprocessor. It is not yet functional.

Status

This repository contains multiple compilers. C is compiled to Hlp, Hlp is compiled to assembly, assembly is compiled to binary. Below is the completion status:

  • Assembler
    • Compiles
    • Common code reduction
  • Hlp
    • Compiles
    • Optimizations
      • Register allocation
  • C
    • Compiles
    • Examples

Testing

The project can be tested on emulator with:

go test ./...

The project can be tested on hardware as well. In the next commands, change PORT to the desired USB port. First upload the test app to the esp32:

esptool.py --chip esp32 --port PORT --baud 460800 write_flash -z 0x1000 pkg/usb/test_app/test_app.bin

Then run all tests on emulator and hardware with:

ESP_PORT=PORT go test ./... -p 1

Documentation

Overview

Copyright 2024 Blake Felt blake.w.felt@gmail.com

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

Directories

Path Synopsis
pkg
asm
emu
hlp
usb

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL