[Bug]: Discrepancy in __NVIC_PRIO_BITS default value between core_cm4.h and CMSIS-Core Documentation
@ASAHSTM đang làm issue này rồi.
Từ ngày 16/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Bug Summary
a mismatch between Documentation and Header
Detailed Description
Summary of the Issue
There is a discrepancy between the default value of __NVIC_PRIO_BITS listed in the CMSIS-Core documentation table and the actual default fallback value implemented in core_cm4.h.
Location
- Documentation: CMSIS-Core (Cortex-M) -> Device Header File
<device>.h-> Cortex-M4 core (core_cm4.h) table. - Header File:
CMSIS/Core/Include/core_cm4.h
Description of Discrepancy
- CMSIS Documentation Table: Lists the
Defaultvalue for__NVIC_PRIO_BITSas4. core_cm4.hHeader File: Defines the default fallback value as3Uinside the#ifndefblock:#ifndef __NVIC_PRIO_BITS #define __NVIC_PRIO_BITS 3U #warning "__NVIC_PRIO_BITS not defined in device header file; using default!" #endif
Expected Behavior
No response
Actual Behavior
No response
Environment
No response
Severity
Minor
- Ngôn ngữ chính
- C
- Star
- 85
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của STMicroelectronics/cmsis-core
-
Improve C89/C90 compatibility by conditionally including <stdint.h>Có thể làm lại được @KRASTM đã nhận 61 ngày trước và không có pull request nào đang mở. Đang mởcmsis enhancement
STMicroelectronics/cmsis-core#7 · 1 bình luận · 1 người được giao ·
Tất cả issue của STMicroelectronics/cmsis-core
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DaveGamble/cJSON#1100 ·
-
UB: (int) cast of a user double outside int range in dispatch / vm_index_is_int / flat_index_atĐang mởarea:runtime-vm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#1748 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
leanprover/lean4#15677 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wasm-micro-runtime/wasm-micro-runtime#5159 ·
Maintainer thường phản hồi trong vòng 7 ngày