git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit dadd79bf6038bb7ed017d99b50b192be8a165c39
parent 65ae6c0bb8c8cd2feed1e9f5603bae1358c68694
Author: Toxa <untoxa@mail.ru>
Date:   Sat, 12 Jun 2021 00:17:08 +0300

make sample.h, cgb.h and sgb.h independent from gb.h

Diffstat:
Mgbdk-lib/examples/gb/colorbar/colorbar.c1+
Mgbdk-lib/examples/gb/dscan/dscan.c1+
Mgbdk-lib/include/gb/gb.h4+---
Mgbdk-lib/include/gb/sample.h4++--
Mgbdk-lib/include/gb/sgb.h1+
5 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gbdk-lib/examples/gb/colorbar/colorbar.c b/gbdk-lib/examples/gb/colorbar/colorbar.c @@ -1,4 +1,5 @@ #include <gb/gb.h> +#include <gb/cgb.h> #include <stdint.h> #include "bar_c.h" diff --git a/gbdk-lib/examples/gb/dscan/dscan.c b/gbdk-lib/examples/gb/dscan/dscan.c @@ -5,6 +5,7 @@ ********************************************************************/ #include <gb/gb.h> +#include <gb/cgb.h> #include <stdint.h> #include <stdlib.h> #include <rand.h> diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -4,13 +4,11 @@ #ifndef _GB_H #define _GB_H -#define __GBDK_VERSION 402 +#define __GBDK_VERSION 404 #include <types.h> #include <stdint.h> #include <gb/hardware.h> -#include <gb/sgb.h> -#include <gb/cgb.h> /** Joypad bits. A logical OR of these is used in the wait_pad and joypad diff --git a/gbdk-lib/include/gb/sample.h b/gbdk-lib/include/gb/sample.h @@ -10,11 +10,11 @@ #ifndef _SAMPLE_H #define _SAMPLE_H +#include <types.h> #include <stdint.h> /** Play the given, appropriatly formatted sample. */ -void -play_sample(uint8_t *start, uint16_t len) NONBANKED; +void play_sample(uint8_t *start, uint16_t len) NONBANKED; #endif /* _SAMPLE_H */ diff --git a/gbdk-lib/include/gb/sgb.h b/gbdk-lib/include/gb/sgb.h @@ -6,6 +6,7 @@ #ifndef _SGB_H #define _SGB_H +#include <types.h> #include <stdint.h> #define SGB_PAL_01 0x00U /**< SGB Command: Set SGB Palettes 0 & 1 */

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.