aboutsummaryrefslogtreecommitdiff
path: root/include/ubox.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2024-05-27 19:13:02 +0100
committerJuan J. Martinez <jjm@usebox.net>2024-05-27 19:13:02 +0100
commit420ac2c8f2307ddcbe551972544bbe11f05ee7ff (patch)
tree70748bd36a378f3a44ccb720e2776030eac956f2 /include/ubox.h
parent0b3ba3e708899145296e3b6c1496ff87efe6a6c7 (diff)
downloadubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.tar.gz
ubox-msx-lib-420ac2c8f2307ddcbe551972544bbe11f05ee7ff.zip
Avoid function declarator with no prototype errors
This is for SDCC 4.4.0 at least.
Diffstat (limited to 'include/ubox.h')
-rw-r--r--include/ubox.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/ubox.h b/include/ubox.h
index b045d4d..fa56741 100644
--- a/include/ubox.h
+++ b/include/ubox.h
@@ -69,7 +69,7 @@ void ubox_set_mode(uint8_t mode) __z88dk_fastcall;
/**
* Enables the screen.
*/
-void ubox_enable_screen();
+void ubox_enable_screen(void);
/**
* Disables the screen.
@@ -79,7 +79,7 @@ void ubox_enable_screen();
*
* Note that [ubox_set_mode](#ubox_set_mode) also enables the screen.
*/
-void ubox_disable_screen();
+void ubox_disable_screen(void);
/**
* Changes the screen colors.
@@ -158,7 +158,7 @@ void ubox_wvdp(uint8_t reg, uint8_t data);
* | 0 | 60Hz |
* | 1 | 50Hz |
*/
-uint8_t ubox_get_vsync_freq();
+uint8_t ubox_get_vsync_freq(void);
// *INDENT-OFF*
/**
@@ -311,7 +311,7 @@ void ubox_init_isr(uint8_t wait_ticks) __z88dk_fastcall;
* ubox_set_user_isr(my_isr);
* ```
*/
-void ubox_set_user_isr(void (*fn)()) __z88dk_fastcall;
+void ubox_set_user_isr(void (*fn)(void)) __z88dk_fastcall;
/**
* Waits for a maximum `wait_ticks` interrupts (see [ubox_init_isr](#ubox_init_isr)).
@@ -347,7 +347,7 @@ void ubox_set_user_isr(void (*fn)()) __z88dk_fastcall;
* }
* ```
*/
-void ubox_wait();
+void ubox_wait(void);
/**
* Waits for `frames` frames.
@@ -373,7 +373,7 @@ extern uint8_t ubox_tick;
*
* `ubox_tick` is a 8-bit global variable that is incremented on every interrupt.
*/
-void ubox_reset_tick();
+void ubox_reset_tick(void);
// @Sprite functions
//
@@ -486,7 +486,7 @@ void ubox_set_sprite_pat16_flip(const uint8_t *data, uint8_t pattern);
*
* See [ubox_read_ctl](#ubox_read_ctl) for possible control values.
*/
-uint8_t ubox_select_ctl();
+uint8_t ubox_select_ctl(void);
/**
* Read the control identified by `control` and return the status of it.