aboutsummaryrefslogtreecommitdiff
path: root/stm32/main.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-24 14:06:59 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-24 14:06:59 +0100
commitb69ddf1cd7123cc26b3936eda3c7c96a2750e612 (patch)
tree9ca68b0fb0aebe4cbd68f22f35e3da298baf8d5c /stm32/main.c
parentf3a47bde9bfaaa716de835c0c1499a685b4ac4f7 (diff)
rename and move files
Diffstat (limited to 'stm32/main.c')
-rw-r--r--stm32/main.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/stm32/main.c b/stm32/main.c
deleted file mode 100644
index 910d2dd..0000000
--- a/stm32/main.c
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <malloc.h>
-#include <math.h>
-#include <stdio.h>
-
-#include "ppu/ppu.h"
-#include "ppu/consts.h"
-
-hh_s_ppu_loc_sprite* hh_debug_circle_sprite() {
- hh_s_ppu_loc_sprite* s = malloc(sizeof(hh_s_ppu_loc_sprite));
-
- for (int x = 0; x < HH_PPU_SPRITE_WIDTH; x++)
- for (int y = 0; y < HH_PPU_SPRITE_HEIGHT; y++)
- *s[y * HH_PPU_SPRITE_WIDTH + x] = (pow(x - 8, 2) + pow(y - 8, 2) < 67) ? 1 : 0;
-
- return s;
-}
-
-int main() {
- hh_ppu_init();
-
- hh_ppu_update_aux((hh_s_ppu_loc_aux) {
- .bg_shift_x = 0,
- .bg_shift_y = 0,
- .fg_fetch = 0,
- .sysreset = 0,
- });
-
- hh_s_ppu_loc_sprite* sprite = hh_debug_circle_sprite();
- hh_ppu_update_sprite(0, *sprite);
- free(sprite);
-
- while (1);
-}
-
-void hh_ppu_vblank_interrupt() {
- static unsigned long frame = 0;
- frame++;
-
-
-}