Skip to content

Commit f0fe519

Browse files
authored
Merge pull request #564 from inesmaria08/driver_id_naming_to_hex
Fix Driver ID Naming to Hexadecimal Format
2 parents a11c8d5 + db0d3c1 commit f0fe519

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

apis/interface/buttons/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ mod tests;
135135
// Driver number and command IDs
136136
// -----------------------------------------------------------------------------
137137

138-
const DRIVER_NUM: u32 = 3;
138+
const DRIVER_NUM: u32 = 0x3;
139139

140140
// Command IDs
141141
const BUTTONS_COUNT: u32 = 0;

apis/interface/console/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mod tests;
138138
// Driver number and command IDs
139139
// -----------------------------------------------------------------------------
140140

141-
const DRIVER_NUM: u32 = 1;
141+
const DRIVER_NUM: u32 = 0x1;
142142

143143
// Command IDs
144144
#[allow(unused)]

apis/interface/leds/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod tests;
4444
// Driver number and command IDs
4545
// -----------------------------------------------------------------------------
4646

47-
const DRIVER_NUM: u32 = 2;
47+
const DRIVER_NUM: u32 = 0x2;
4848

4949
// Command IDs
5050
const LEDS_COUNT: u32 = 0;

apis/kernel/low_level_debug/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod tests;
7373
// Driver number and command IDs
7474
// -----------------------------------------------------------------------------
7575

76-
const DRIVER_NUM: u32 = 8;
76+
const DRIVER_NUM: u32 = 0x8;
7777

7878
// Command IDs
7979
const EXISTS: u32 = 0;

apis/peripherals/alarm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ mod tests;
110110
// Driver number and command IDs
111111
// -----------------------------------------------------------------------------
112112

113-
const DRIVER_NUM: u32 = 0;
113+
const DRIVER_NUM: u32 = 0x0;
114114

115115
// Command IDs
116116
#[allow(unused)]

apis/peripherals/gpio/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ mod tests;
254254
// Driver number and command IDs
255255
// -----------------------------------------------------------------------------
256256

257-
const DRIVER_NUM: u32 = 4;
257+
const DRIVER_NUM: u32 = 0x4;
258258

259259
// Command IDs
260260
const EXISTS: u32 = 0;

unittest/src/fake/alarm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ mod tests;
6262
// Driver number and command IDs
6363
// -----------------------------------------------------------------------------
6464

65-
const DRIVER_NUM: u32 = 0;
65+
const DRIVER_NUM: u32 = 0x0;
6666

6767
// Command IDs
6868
#[allow(unused)]

unittest/src/fake/buttons/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ mod tests;
118118
// Driver number and command IDs
119119
// -----------------------------------------------------------------------------
120120

121-
const DRIVER_NUM: u32 = 3;
121+
const DRIVER_NUM: u32 = 0x3;
122122

123123
// Command IDs
124124
const BUTTONS_COUNT: u32 = 0;

unittest/src/fake/console/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl crate::fake::SyscallDriver for Console {
118118
#[cfg(test)]
119119
mod tests;
120120

121-
const DRIVER_NUM: u32 = 1;
121+
const DRIVER_NUM: u32 = 0x1;
122122

123123
// Command numbers
124124
const EXISTS: u32 = 0;

unittest/src/fake/gpio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ mod tests;
253253
// Driver number and command IDs
254254
// -----------------------------------------------------------------------------
255255

256-
const DRIVER_NUM: u32 = 4;
256+
const DRIVER_NUM: u32 = 0x4;
257257

258258
// Command IDs
259259
const EXISTS: u32 = 0;

unittest/src/fake/leds/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mod tests;
7070
// Implementation details below
7171
// -----------------------------------------------------------------------------
7272

73-
const DRIVER_NUM: u32 = 2;
73+
const DRIVER_NUM: u32 = 0x2;
7474

7575
// Command numbers
7676
const EXISTS: u32 = 0;

unittest/src/fake/low_level_debug/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl core::fmt::Display for Message {
6969
#[cfg(test)]
7070
mod tests;
7171

72-
const DRIVER_NUM: u32 = 8;
72+
const DRIVER_NUM: u32 = 0x8;
7373

7474
// Command numbers
7575
const EXISTS: u32 = 0;

0 commit comments

Comments
 (0)