Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Apps/M5UnitTest/main/Source/TestListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ void testListViewCreate(lv_obj_t* parent, Context* app) {
lv_obj_t* textLbl = lv_obj_get_child(btn, 1);
if (textLbl) lv_obj_set_style_text_font(textLbl, font, 0);
lv_obj_t* iconLbl = lv_obj_get_child(btn, 0);
if (iconLbl) lv_obj_set_style_text_font(iconLbl, lvgl_get_shared_icon_font(), 0);
if (iconLbl) lv_obj_set_style_text_font(iconLbl, lvgl_get_shared_icon_default_font(), 0);
}
}
13 changes: 13 additions & 0 deletions Apps/Rcc700/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# tactility-cmakelists-version: 1
cmake_minimum_required(VERSION 3.20)

if (NOT DEFINED ENV{TACTILITY_SDK_PATH})
message(FATAL_ERROR "TACTILITY_SDK_PATH environment variable is not set")
endif()

get_filename_component(TACTILITY_SDK_PATH "$ENV{TACTILITY_SDK_PATH}" ABSOLUTE)
include("${TACTILITY_SDK_PATH}/TactilitySDK.cmake")

tactility_project_pre(rcc700)
project(rcc700)
tactility_project_post(rcc700)
21 changes: 21 additions & 0 deletions Apps/Rcc700/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Valentyn Danylchuk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
29 changes: 29 additions & 0 deletions Apps/Rcc700/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# rcc700

[rcc700](https://github.com/valdanylchuk/rcc700) is a self-hosting mini C compiler for ESP32 (RISC-V).
It is a port of [xcc700](https://github.com/valdanylchuk/xcc700).

## Usage

Run it from the Terminal app:

```
rcc700 FILE.c [-o OUTPUT]
```

Without `-o`, the output is named after the input: `something.c` becomes `something.elf`.
The output is a RV32 ELF for the [ESP-IDF elf_loader](https://components.espressif.com/components/espressif/elf_loader/).

It supports a small subset of C: see the [xcc700 README](https://github.com/valdanylchuk/xcc700#what-is-missing).
rcc700 allocates a 256 KiB code buffer, so it requires PSRAM.

## Source

`main/Source/rcc700.c` is rcc700 (upstream commit `8cc0639`), unmodified.
`main/Source/tactility.c` replaces:
- `main()`, to require an input file and name the default output after it
- `open()`, to translate the newlib flags that rcc700 hardcodes

## License

rcc700 is licensed under the MIT license, see [LICENSE](LICENSE).
18 changes: 18 additions & 0 deletions Apps/Rcc700/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include("$ENV{TACTILITY_SDK_PATH}/TactilitySDK.cmake")

file(GLOB_RECURSE SOURCE_FILES Source/*.c)
tactility_component_register(SRCS ${SOURCE_FILES})

# rcc700.c is kept unmodified: tactility.c provides main() and open() in its place.
# It declares its own libc prototypes (with int sizes), which don't match the builtin ones.
if (DEFINED COMPONENT_LIB)
set(RCC700_TARGET ${COMPONENT_LIB})
else ()
set(RCC700_TARGET ${PROJECT_NAME})
endif ()
set_source_files_properties(Source/rcc700.c
TARGET_DIRECTORY ${RCC700_TARGET}
PROPERTIES
COMPILE_DEFINITIONS "open=rcc700_open"
COMPILE_OPTIONS "-Umain;-Dmain=rcc700_main;-fno-builtin;-Wno-builtin-declaration-mismatch;-Wno-misleading-indentation"
)
Loading
Loading