aboutsummaryrefslogtreecommitdiff
path: root/src/readme.md
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-25 16:48:01 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-25 16:48:01 +0100
commit779ad2408cf97687878f816ddff2b04f22f5172d (patch)
treee9adbec3e7082e22a272e9fac250b00393a06746 /src/readme.md
parentf7da5b7dde8b9c342c805edd65e66febf705ed48 (diff)
add developer documentation to ppusim/ppu interface
Diffstat (limited to 'src/readme.md')
-rw-r--r--src/readme.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/readme.md b/src/readme.md
new file mode 100644
index 0000000..bfbc6e9
--- /dev/null
+++ b/src/readme.md
@@ -0,0 +1,22 @@
+# src (game source files)
+
+- the game can be built for the stm32 with fpga, or for desktop (windows and
+ linux tested), by editing the `PLATFORM` variable in `makefile`
+- stm-specific sources should be in the stm32 folder (setup/configuration code
+ using HAL or FreeRTOS), or in `stm32.c` in any subfolder (when used as
+ interface implementation)
+- stm-specific sources should be declared in `stm32.mk`
+- desktop-specific sources should be declared in `ds.mk`
+- other source files (both platforms) should be declared in `makefile`
+- for small sections of platform specific code, `#ifdef` macro's can be used.
+ either `HH_TARGET_STM32` or `HH_TARGET_DESKTOP` is defined.
+
+## directory structure
+
+|name|description|
+|apu|APU interface functions|
+|lib|libraries (stm system headers, HAL, FreeRTOS)|
+|ppusim|PPU simulation code (desktop only)|
+|ppu|PPU interface functions|
+|static|static game assets (binary files)|
+|stm32|STM32 specific setup (HAL, FreeRTOS)|