刚开始用psoc,写了一个demo
//main.c
include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
#pragma fastcall16 init_hardware
void init_hardware(void);
void main()
{
init_hardware();
}
//hardware.asm
AREA UserModules (ROM, REL)
.section
_init_hardware::
MOV Reg[PRT0DR], 0xFF ; LEDs OFF
RET
就是不知道为什么灯就是灭不了,求指教 |