Skip to content

Commit

Permalink
Merge pull request #57 from hhgyu/develop
Browse files Browse the repository at this point in the history
Fix build error for the latest toolchain
  • Loading branch information
valeros authored Mar 14, 2024
2 parents a6af616 + a39b605 commit 04eb1cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/native-blink/src/blinky.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions examples/native-blink/src/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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$
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/native-blink/src/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/*-------------------------------------------------------------------------------*/

void UART_INIT(void);
void _tm1() __interrupt 3 __using 1;
void _tm1(void);
#ifndef PLATFORMIO
void putchar(unsigned char);
#endif
Expand Down

0 comments on commit 04eb1cb

Please sign in to comment.