Skip to content
Snippets Groups Projects
Commit 4f635ae1 authored by q3k's avatar q3k
Browse files

*: add developer breadcrumbs

parent 0a4cbb9a
No related branches found
No related tags found
No related merge requests found
......@@ -107,15 +107,26 @@ There's `flash/monitor` targets, too (but no openocd/gdb...). To pick what port
## How to modify
### Structure
```
main/ - main module, starts micropython on core1 and continues
executing components/badge23/.
usermodule/ - `hardware`, `synth`, ... C modules exposed to micropython.
components/badge23/ - main ESP-IDF `app_main`, runs on core 0 after micropython
gets started on core1.
components/gc9a01/ - low-level LCD driver.
```
### General info
Global + micropython entry point: app\_main() in micropython/ports/esp32/main.c (includes badge23/espan.h).
Global + micropython entry point: `app_main()` in `micropython/ports/esp32/main.c`, compiled into `main/` component.
C entry point, called by^: os\_app\_main() in badge23/espan.c
C entry point, called by^: `os_app_main()` in components/badge23/espan.c
Register new c files for compilation: add to set(BADGE23\_SOURCE) in main/CMakelists.txt
Register new C files for compilation: add to components/badge23/CMakelists.txt
Change output volume in the set\_global\_vol\_dB(int8\_t) call; -90 for mute
Change output volume in the `set_global_vol_dB(int8_t)` call; -90 for mute
### Debugging
......
badge23/espan
===
Transitional component containing all custom C code for badge23, including drivers for peripherals and 'espan' application leftovers.
This will be likely split up into sub-components.
micropython shim module
===
This is the 'main' module from ESP-IDF, and its job is to just start
micropython and continue executing `app_main` from
`components/badge23/espan.c`.
micropython C modules
===
# If you want to add dependencies on other ESP-IDF modules, add them to
# IDF_COMPONENTS in main/CMakeLists, as main/ is the component that the
# usermodules are actually part of.
add_library(usermod_badge23 INTERFACE)
target_sources(usermod_badge23 INTERFACE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment