Added back in the jtag bridge
Now talking over the bus instead of using dpram
This commit is contained in:
@@ -35,7 +35,7 @@ $(TARGET).bin: $(TARGET).elf
|
||||
$(OBJCOPY) -O binary $< $@
|
||||
|
||||
$(TARGET).hex: $(TARGET).bin
|
||||
hexdump -v -e '1/1 "%02x\n"' $< > $@
|
||||
hexdump -v -e '1/4 "%08x\n"' $< > $@
|
||||
|
||||
$(TARGET).coe: $(TARGET).hex
|
||||
$(HEX_TO_COE) $< $@
|
||||
|
||||
@@ -31,5 +31,5 @@ SECTIONS
|
||||
} > RAM
|
||||
|
||||
. = ALIGN(4);
|
||||
__stack_top = ORIGIN(RAM) + LENGTH(RAM) - 256;
|
||||
__stack_top = ORIGIN(RAM) + LENGTH(RAM);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ static inline void irq_init() {
|
||||
|
||||
void timer_isr(){
|
||||
static int set = 0;
|
||||
*TIMER = 1840000*4;
|
||||
*TIMER = 1840000*2;
|
||||
*LEDGR = ~(*LEDGR);
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ void main(){
|
||||
irq_init();
|
||||
|
||||
*LEDGR = 3;
|
||||
*TIMER = 1840000*4;
|
||||
*TIMER = 1840000*2;
|
||||
|
||||
for(;;){
|
||||
for(int i=1000; i<10000; i++){
|
||||
|
||||
Reference in New Issue
Block a user