AnsweredAssumed Answered

Is there a header file (.inc) that defines K60 peripheral control registers for assembly programs? Can I somehow use the C file (MK60F15.h) for this?

Question asked by dmitriyc on Dec 8, 2015
Latest reply on Dec 10, 2015 by ZhangJennie

I am writing an assembly program (very basic bootloader) and wondering if there is a CPU-header file to use for assembly programs. For example, I would like to MOV the address of PORTA_PCR3 into R1. Sure, I can come up with my own header that includes everything I need but I don't want to do that if something is already provided.

 

Would .extern somehow work for these things?

 

I am using CW MCU 10.6 with a K60 CPU.

Outcomes