Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug]: Discrepancy in __NVIC_PRIO_BITS default value between core_cm4.h and CMSIS-Core Documentation

Đã đóng
#9 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@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 cmsis
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
  1. CMSIS Documentation Table: Lists the Default value for __NVIC_PRIO_BITS as 4.
  2. core_cm4.h Header File: Defines the default fallback value as 3U inside the #ifndef block:
    #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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của STMicroelectronics/cmsis-core

Tất cả issue của STMicroelectronics/cmsis-core

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.