Skip to content

Commit 128d087

Browse files
author
rusefillc
committed
https://github.com/rusefi/rusefi/issues/6781
helping with RAM? helping with NO_CACHE?
1 parent 563447e commit 128d087

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

pt2001/project/rusefi/sample_code/PT2001_LoadData.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#include "PT2001_LoadData.h"
4949

5050
// Data to be loaded into the Code RAM 1 memory space
51-
unsigned short PT2001_code_RAM1[114] =
51+
unsigned short const PT2001_code_RAM1[114] =
5252
{
5353
0x7612, 0x6C57, 0x917F, 0xA514, 0x8DD6, 0xC288, 0x4F9B, 0x1EC9, 0x5C0D, 0xF99D,
5454
0x4129, 0x2EEE, 0x97B0, 0x3534, 0x93BA, 0x5D25, 0xEE21, 0x2AAD, 0xE457, 0x2DB8,
@@ -65,7 +65,7 @@ unsigned short PT2001_code_RAM1[114] =
6565
};
6666

6767
// Data to be loaded into the Code RAM 2 memory space
68-
unsigned short PT2001_code_RAM2[43] =
68+
unsigned short const PT2001_code_RAM2[43] =
6969
{
7070
0x761B, 0x6F45, 0x838D, 0x80B4, 0x53F2, 0x0EBC, 0x8F2D, 0xA78E, 0xE8AB, 0xE3DB,
7171
0xF477, 0x800F, 0x2336, 0x2F77, 0x267B, 0xBC19, 0x007E, 0x4E55, 0x28AA, 0x52E4,
@@ -75,7 +75,7 @@ unsigned short PT2001_code_RAM2[43] =
7575
};
7676

7777
// Data to be loaded into the Data RAM memory space
78-
unsigned short PT2001_data_RAM[128] =
78+
unsigned short const PT2001_data_RAM[128] =
7979
{
8080
0x00C0, 0x0092, 0x0049, 0x003C, 0x1068, 0x003C, 0x0168, 0xEA60, 0x0960, 0x0258,
8181
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -93,29 +93,29 @@ unsigned short PT2001_data_RAM[128] =
9393
};
9494

9595
// Data to be loaded into the Main register memory space
96-
unsigned short PT2001_main_config[29] =
96+
unsigned short const PT2001_main_config[29] =
9797
{
9898
0x0003, 0x13FE, 0x0000, 0x1E00, 0x0000, 0x0000, 0x0001, 0x0000, 0x001F, 0x0000,
9999
0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
100100
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
101101
};
102102

103103
// Data to be loaded into the CH1 register memory space
104-
unsigned short PT2001_ch1_config[19] =
104+
unsigned short const PT2001_ch1_config[19] =
105105
{
106106
0x0008, 0x0000, 0x0000, 0x0000, 0x0303, 0x0000, 0x0000, 0x0072, 0x91E7, 0x56D6,
107107
0x0000, 0x0039, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
108108
};
109109

110110
// Data to be loaded into the CH2 register memory space
111-
unsigned short PT2001_ch2_config[19] =
111+
unsigned short const PT2001_ch2_config[19] =
112112
{
113113
0x0008, 0x0000, 0x0000, 0x0000, 0x0C00, 0x0000, 0x0000, 0x002B, 0x218C, 0xDCB6,
114114
0x0000, 0x0014, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
115115
};
116116

117117
// Data to be loaded into the IO register memory space
118-
unsigned short PT2001_io_config[53] =
118+
unsigned short const PT2001_io_config[53] =
119119
{
120120
0x0000, 0x0000, 0x0000, 0x0000, 0x0063, 0x018C, 0x0800, 0x0410, 0x0041, 0x0098,
121121
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -126,7 +126,7 @@ unsigned short PT2001_io_config[53] =
126126
};
127127

128128
// Data to be loaded into the Diag register memory space
129-
unsigned short PT2001_diag_config[44] =
129+
unsigned short const PT2001_diag_config[44] =
130130
{
131131
0x0000, 0x0000, 0x001E, 0x0000, 0x0000, 0x001E, 0x0000, 0x0000, 0x001E, 0x0000,
132132
0x0000, 0x001E, 0x0000, 0x0000, 0x001E, 0x0000, 0x0000, 0x001E, 0x001E, 0x0000,

pt2001/project/rusefi/sample_code/PT2001_LoadData.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
#ifndef PT2001_DATA_H_
4949
#define PT2001_DATA_H_
5050

51-
extern unsigned short PT2001_code_RAM1[114]; // CODE RAM CH 1
52-
extern unsigned short PT2001_code_RAM2[43]; // CODE RAM CH 2
53-
extern unsigned short PT2001_data_RAM[128]; // DATA RAM
54-
extern unsigned short PT2001_main_config[29]; // main configurations
55-
extern unsigned short PT2001_ch1_config[19]; // CH 1 configurations
56-
extern unsigned short PT2001_ch2_config[19]; // CH 2 configurations
57-
extern unsigned short PT2001_io_config[53]; // IO configurations
58-
extern unsigned short PT2001_diag_config[44]; // diag configurations
51+
extern unsigned short const PT2001_code_RAM1[114]; // CODE RAM CH 1
52+
extern unsigned short const PT2001_code_RAM2[43]; // CODE RAM CH 2
53+
extern unsigned short const PT2001_data_RAM[128]; // DATA RAM
54+
extern unsigned short const PT2001_main_config[29]; // main configurations
55+
extern unsigned short const PT2001_ch1_config[19]; // CH 1 configurations
56+
extern unsigned short const PT2001_ch2_config[19]; // CH 2 configurations
57+
extern unsigned short const PT2001_io_config[53]; // IO configurations
58+
extern unsigned short const PT2001_diag_config[44]; // diag configurations
5959

6060
#endif /* PT2001_DATA_H_ */

0 commit comments

Comments
 (0)