Skip to content

Commit

Permalink
scripts: build: gen_isr_tables: add some debug prints
Browse files Browse the repository at this point in the history
Add some debug prints for the interrupts bits and bitmasks
in each level.

Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 0884a33)
  • Loading branch information
ycsin authored and fabiobaltieri committed Dec 27, 2023
1 parent e231b66 commit 5b99923
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build/gen_isr_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@ def update_masks():
INTERRUPT_LVL_BITMASK[1] = bit_mask(INTERRUPT_BITS[1]) << INTERRUPT_BITS[0]
INTERRUPT_LVL_BITMASK[2] = bit_mask(INTERRUPT_BITS[2]) << INTERRUPT_BITS[0] + INTERRUPT_BITS[1]

debug("Level Bits Bitmask")
debug("----------------------------")
for i in range(3):
bitmask_str = "0x" + format(INTERRUPT_LVL_BITMASK[i], '08X')
debug(f"{i + 1:>5} {INTERRUPT_BITS[i]:>7} {bitmask_str:>14}")

def main():
parse_args()

Expand Down

0 comments on commit 5b99923

Please sign in to comment.