Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
libseven: expect breakage! huge 0.10.0 cleanup
Browse files Browse the repository at this point in the history
- renamed svc module to bios
- renamed biosDiv to biosDivMod, added regular biosDiv function
- removed biosCpuSetFixed and biosCpuFastSetFixed
- removed biosIntrWaitEx
- removed bmp module
- removed include/seven/asm
- simplified base headers
- added seven/hw/bios/memory.h and seven/hw/bios/reset.h to prelude
- added _LIBSEVEN_NOCOMPATIBLE checks to reduce base header bloat
  • Loading branch information
LunarLambda committed Nov 14, 2022
1 parent dcb4a17 commit 0aef643
Show file tree
Hide file tree
Showing 44 changed files with 335 additions and 1,205 deletions.
2 changes: 1 addition & 1 deletion dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ make_dist() {

[ ! -d "$DIST" ] && mkdir "$DIST"

(PROJECT=libseven VERSION=0.9.1 make_dist)
(PROJECT=libseven VERSION=0.10.0 make_dist)
(PROJECT=minrt VERSION=0.2.0 make_dist)
2 changes: 1 addition & 1 deletion examples/vsync-callback/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ int main(void)
while (1)
{
// Wait for V-sync
svcVBlankIntrWait();
biosVBlankIntrWait();
}
}
2 changes: 1 addition & 1 deletion examples/vsync/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main(void)
while (1)
{
// Wait for V-sync
svcVBlankIntrWait();
biosVBlankIntrWait();

// Update the background color for the next frame
BG_PALETTE[0] += 1;
Expand Down
3 changes: 1 addition & 2 deletions libseven/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ project(libseven C ASM)
set(CMAKE_INCLUDE_FLAG_ASM "-Wa,-I")

add_library(seven STATIC
src/hw/bios.s
src/hw/dma.s
src/hw/input.s
src/hw/irq.s
src/hw/sram.s
src/hw/svc.s
src/hw/timer.s
src/util/assert.c
src/util/bit.s
Expand All @@ -25,7 +25,6 @@ add_library(seven STATIC
src/util/rand.s
src/util/simd.s
src/util/str.s
src/video/bmp.s
src/video/oam.s
)

Expand Down
4 changes: 1 addition & 3 deletions libseven/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ AR = arm-none-eabi-ar
PROJECT = seven

SOURCES = \
src/hw/bios.s \
src/hw/dma.s \
src/hw/input.s \
src/hw/irq.s \
src/hw/sram.s \
src/hw/svc.s \
src/hw/timer.s \
src/util/assert.c \
src/util/bit.s \
Expand All @@ -25,7 +25,6 @@ SOURCES = \
src/util/rand.s \
src/util/simd.s \
src/util/str.s \
src/video/bmp.s \
src/video/oam.s \

INCLUDES = \
Expand All @@ -37,7 +36,6 @@ CFLAGS = \
-g3 -gdwarf-4 \
-ffunction-sections \
-fdata-sections \
-ffreestanding \
-std=c99 \
-Wall \
-Wpedantic \
Expand Down
40 changes: 0 additions & 40 deletions libseven/include/seven/asm/base.s

This file was deleted.

76 changes: 0 additions & 76 deletions libseven/include/seven/asm/hw/dma.s

This file was deleted.

24 changes: 0 additions & 24 deletions libseven/include/seven/asm/hw/gpio.s

This file was deleted.

63 changes: 0 additions & 63 deletions libseven/include/seven/asm/hw/input.s

This file was deleted.

72 changes: 0 additions & 72 deletions libseven/include/seven/asm/hw/irq.s

This file was deleted.

41 changes: 0 additions & 41 deletions libseven/include/seven/asm/hw/memory.s

This file was deleted.

Loading

0 comments on commit 0aef643

Please sign in to comment.