Categorygithub.com/Molorius/ulp-c
modulepackage
0.0.0
Repository: https://github.com/molorius/ulp-c.git
Documentation: pkg.go.dev

# README

ulp-c

Test Status License: MPL 2.0

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

# Packages

Copyright 2024 Blake Felt [email protected] This Source Code Form is subject to the terms of the Mozilla Public License, v.
No description provided by the author