Skip to content

Commit 055b886

Browse files
committed
feat(error): add EnableInterruptLineError::NotSupported
1 parent 4ee6feb commit 055b886

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/constance/src/kernel/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ macro_rules! define_error {
8585
pub enum ResultCode {
8686
/// The operation was successful. No additional information is available.
8787
Success = 0,
88+
/// The operation is not supported.
89+
NotSupported = -9,
8890
/// A parameter is invalid in a way that is no covered by any other error
8991
/// codes.
9092
BadParam = -17,
@@ -343,6 +345,8 @@ define_error! {
343345
/// [`InterruptLine::enable`]: super::InterruptLine::enable
344346
/// [`InterruptLine::disable`]: super::InterruptLine::disable
345347
pub enum EnableInterruptLineError: BadParamError {
348+
/// The operation is not supported by the port.
349+
NotSupported,
346350
/// Enabling or disabling the specifeid interrupt line is not supported.
347351
BadParam,
348352
}

0 commit comments

Comments
 (0)