Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
krukm94 authored Jan 22, 2018
2 parents 75a3db6 + 300c314 commit 59ca006
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@

#include "system.h"
#include "altera_avalon_pio_regs.h"

#include "altera_up_avalon_rs232_regs.h"
#include "altera_up_avalon_rs232.h"

Expand All @@ -104,7 +105,7 @@ volatile uint8_t flag = 0;
volatile uint32_t set;

// UART VARIABLES
volatile uint32_t uart_context; /* Kontekst do przerwañ z uartu */
volatile uint32_t uart_context; /* Kontekst do przerwa� z uartu */
void* uart_ptr = (void*) &uart_context;

//UART INTERRUPT FUNCTION
Expand Down Expand Up @@ -143,6 +144,7 @@ int main()
while (1)
{


if(flag){
//CLEAR FLAG
flag = 0x0;
Expand Down Expand Up @@ -175,5 +177,6 @@ int main()

}

return 0;

return 0;
}
1 change: 1 addition & 0 deletions src/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ static void sendByte(char byte)
uint16_t ReceiveData(void){

return IORD_ALT_UP_RS232_DATA(UART_0_BASE);

}

void sendStrig(char* s)
Expand Down

0 comments on commit 59ca006

Please sign in to comment.