Skip to content

Commit

Permalink
standardize driver ID naming to hexadecimal format
Browse files Browse the repository at this point in the history
  • Loading branch information
inesmaria08 committed Nov 23, 2024
1 parent 1dc6133 commit db0d3c1
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apis/interface/buttons/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 3;
const DRIVER_NUM: u32 = 0x3;

// Command IDs
const BUTTONS_COUNT: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion apis/interface/console/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 1;
const DRIVER_NUM: u32 = 0x1;

// Command IDs
#[allow(unused)]
Expand Down
2 changes: 1 addition & 1 deletion apis/interface/leds/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 2;
const DRIVER_NUM: u32 = 0x2;

// Command IDs
const LEDS_COUNT: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion apis/kernel/low_level_debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 8;
const DRIVER_NUM: u32 = 0x8;

// Command IDs
const EXISTS: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion apis/peripherals/alarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 0;
const DRIVER_NUM: u32 = 0x0;

// Command IDs
#[allow(unused)]
Expand Down
2 changes: 1 addition & 1 deletion apis/peripherals/gpio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 4;
const DRIVER_NUM: u32 = 0x4;

// Command IDs
const EXISTS: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/alarm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 0;
const DRIVER_NUM: u32 = 0x0;

// Command IDs
#[allow(unused)]
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/buttons/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 3;
const DRIVER_NUM: u32 = 0x3;

// Command IDs
const BUTTONS_COUNT: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/console/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl crate::fake::SyscallDriver for Console {
#[cfg(test)]
mod tests;

const DRIVER_NUM: u32 = 1;
const DRIVER_NUM: u32 = 0x1;

// Command numbers
const EXISTS: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/gpio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ mod tests;
// Driver number and command IDs
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 4;
const DRIVER_NUM: u32 = 0x4;

// Command IDs
const EXISTS: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/leds/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mod tests;
// Implementation details below
// -----------------------------------------------------------------------------

const DRIVER_NUM: u32 = 2;
const DRIVER_NUM: u32 = 0x2;

// Command numbers
const EXISTS: u32 = 0;
Expand Down
2 changes: 1 addition & 1 deletion unittest/src/fake/low_level_debug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl core::fmt::Display for Message {
#[cfg(test)]
mod tests;

const DRIVER_NUM: u32 = 8;
const DRIVER_NUM: u32 = 0x8;

// Command numbers
const EXISTS: u32 = 0;
Expand Down

0 comments on commit db0d3c1

Please sign in to comment.