From a39b6054f100b2305b80b2a3d80b4ffa0ceb6d3e Mon Sep 17 00:00:00 2001 From: HongHakGyu Date: Thu, 14 Mar 2024 10:01:30 +0900 Subject: [PATCH] Fix Compile error https://github.com/platformio/platform-intel_mcs51/commit/a6af616 --- examples/native-blink/src/blinky.c | 2 +- examples/native-blink/src/serial.c | 6 +++--- examples/native-blink/src/serial.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/native-blink/src/blinky.c b/examples/native-blink/src/blinky.c index 4abe513..3d7e22f 100755 --- a/examples/native-blink/src/blinky.c +++ b/examples/native-blink/src/blinky.c @@ -42,7 +42,7 @@ void _delay_ms(unsigned char ms) const char* startstring = "\nSTC15F204EA starting up...\n"; -int main() +void main(void) { /* init the software uart */ UART_INIT(); diff --git a/examples/native-blink/src/serial.c b/examples/native-blink/src/serial.c index 7e2a76d..aeebb24 100755 --- a/examples/native-blink/src/serial.c +++ b/examples/native-blink/src/serial.c @@ -34,7 +34,7 @@ __data __at 0x0F volatile BYTE RBIT; volatile BOOL TING,RING; volatile BOOL TEND,REND; -void UART_INIT(); +void UART_INIT(void); void putchar(unsigned char c) { @@ -90,7 +90,7 @@ void main() //__data __at 0x0D BYTE RCNT; //__data __at 0x0E BYTE TBIT; //__data __at 0x0F BYTE RBIT; => ar7 -void _tm1() __interrupt 3 __using 1 +void _tm1(void) __interrupt (3) __using (1) { __asm jb _RING,00002$ @@ -140,7 +140,7 @@ void _tm1() __interrupt 3 __using 1 //----------------------------------------- //initial UART module variable -void UART_INIT() +void UART_INIT(void) { TING = 0; RING = 0; diff --git a/examples/native-blink/src/serial.h b/examples/native-blink/src/serial.h index 227229a..a2fe882 100755 --- a/examples/native-blink/src/serial.h +++ b/examples/native-blink/src/serial.h @@ -7,7 +7,7 @@ /*-------------------------------------------------------------------------------*/ void UART_INIT(void); -void _tm1() __interrupt 3 __using 1; +void _tm1(void); #ifndef PLATFORMIO void putchar(unsigned char); #endif