Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Build Error #57

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading