Skip to content

ARM interrupts#93

Merged
mkobetic merged 3 commits intomainfrom
arm-interrupts
Apr 15, 2026
Merged

ARM interrupts#93
mkobetic merged 3 commits intomainfrom
arm-interrupts

Conversation

@mkobetic
Copy link
Copy Markdown
Owner

No description provided.

@@ -1,22 +1,3 @@
irq_vektor_porta:
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just copied from LM4, and doesn't apply to RA4

IRQ_VECTORS:
.include "arm/vectors.s"

@ Special interrupt handlers for this particular chip:
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.


STARTDICT

.include "isr.s"
Copy link
Copy Markdown
Owner Author

@mkobetic mkobetic Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this after STARTDICT, because if these files add ARM_CONSTANTS, they will fail if run before STARTDICT.

.word RAM_upper_returnstack @ 00: Stack top address
.word PFA_COLD+1 @ 01: Reset Vector +1 wegen des Thumb-Einsprunges

.word nullhandler+1 @ 02: NMI
Copy link
Copy Markdown
Owner Author

@mkobetic mkobetic Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I declared nullhandler and faulthandler as .thumb_funcs above so no +1 necessary anymore.

# SCI1 Pins
.equ RA4M1_P501PFS, 0x40040940 + 4 * 1 @ TXD1
.equ RA4M1_P502PFS, 0x40040940 + 4 * 2 @ RXD1
.equ RA4_P501PFS, 0x40040940 + 4 * 1 @ TXD1
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shortening the prefix to just RA4_

# Ref: Renesas RA4M1 User Manual: 2.9 SysTick System Timer

ARM_CONSTANT "SYST_CSR", SYST_CSR, 0xE000E010
ARM_CONSTANT "ARM_SYST_CSR", ARM_SYST_CSR, 0xE000E010
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding ARM_ prefix to distinguish ARM features from RA4 features

@mkobetic mkobetic merged commit 58aa989 into main Apr 15, 2026
3 checks passed
@mkobetic mkobetic deleted the arm-interrupts branch April 15, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant