Skip to content
Snippets Groups Projects
Commit 4b7033a7 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added a new case in the ram_in_window function.

parent 89804505
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,8 @@ unsigned char ram_in_window(unsigned short int start_reg,unsigned short int reg_
unsigned short int end_reg=start_reg+reg_length-1;
unsigned short int end_address=start_address+address_length-1;
if((start_reg>=start_address && start_reg<=end_address) || (end_reg>=start_address && end_reg<=end_address))
if((start_reg>=start_address && start_reg<=end_address) || (end_reg>=start_address && end_reg<=end_address) ||
(start_address>=start_reg && start_address<=end_reg))
return 0x01;
else
return 0x00;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment