Skip to content

Commit

Permalink
AP_InternalError: added an internal error for GPIO ISR overload
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Oct 1, 2020
1 parent c387d65 commit 92be53b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions libraries/AP_InternalError/AP_InternalError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void AP_InternalError::errors_as_string(uint8_t *buffer, const uint16_t len) con
"bad_rotation",
"stack_ovrflw", // stack_overflow
"imu_reset", // imu_reset
"gpio_isr",
};

static_assert((1U<<(ARRAY_SIZE(error_bit_descriptions))) == uint32_t(AP_InternalError::error_t::__LAST__), "too few descriptions for bits");
Expand Down
3 changes: 2 additions & 1 deletion libraries/AP_InternalError/AP_InternalError.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class AP_InternalError {
bad_rotation = (1U << 22), //0x400000 4194304
stack_overflow = (1U << 23), //0x800000 8388608
imu_reset = (1U << 24), //0x1000000 16777216
__LAST__ = (1U << 25), // used only for sanity check
gpio_isr = (1U << 25), //0x2000000 33554432
__LAST__ = (1U << 26), // used only for sanity check
};

// if you've changed __LAST__ to be 32, then you will want to
Expand Down

0 comments on commit 92be53b

Please sign in to comment.