$(TOHIT) --erase --start 0x004000 --length 0x03C000; \
$(TOHIT) --command 1 --blockmode 32 --start 0x004000
-RUN_CMD-ram = $(TOHIT) --go 0x200000
+RUN_CMD-ram = $(TOHIT) --go 0x040000
# This selects linker script
LD_SCRIPT = edk2638
__u8 DIO_PJDDR_shadow;
#define DEB_LED_INIT() \
- do {\
- *DIO_P1DR &= ~(P1DR_P14DRm | P1DR_P15DRm);\
- SHADOW_REG_SET(DIO_P1DDR,0x30); /* set P1.4, P1.5 LED output */ \
+ do {\
+ *DIO_P1DR &= ~(P1DR_P14DRm | P1DR_P15DRm);\
+ SHADOW_REG_SET(DIO_P1DDR,(P1DDR_P15DDRm|P1DDR_P14DDRm)); /* set P1.5 and P1.4 as output */ \
} while (0)
-#define DEB_LED_OFF(num) \
- (*DIO_P1DR |= (P1DR_P14DRm << (num)) & (P1DR_P14DRm | P1DR_P15DRm))
#define DEB_LED_ON(num) \
- (*DIO_P1DR &=~(P1DR_P14DRm << (num)) | ~(P1DR_P14DRm | P1DR_P15DRm))
+ (*DIO_P1DR |= (P1DR_P14DRm << (num)) & (P1DR_P14DRm | P1DR_P15DRm))
+#define DEB_LED_OFF(num) \
+ (*DIO_P1DR &=~(P1DR_P14DRm << (num)) | ~(P1DR_P14DRm | P1DR_P15DRm))
#endif /* _SYSTEM_DEF_HW01_H_ */