Commit af7628db authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

silly risc-v 'hello world' app

parent 0ec7a6ec
Pipeline #1015 failed with stage
in 34 seconds
......@@ -143,7 +143,7 @@ ifeq ($(GIT_USR),)
GIT_USR = $(shell whoami)@$(shell hostname)
endif
all: tools $(OUTPUT).elf $(arch-files-y)
all: $(OUTPUT).elf $(arch-files-y)
.PRECIOUS: %.elf %.bin
.PHONY: all tools clean gitmodules $(PPSI)/ppsi.o extest liblinux
......
......@@ -69,14 +69,22 @@ struct wr_endpoint_device wrc_endpoint_dev;
int wrc_wr_diags(void); // fixme: move the header
static void wrc_initialize(void)
{
#ifdef CONFIG_USE_SDB
sdb_find_devices();
// sdb_find_devices();
#endif
console_init();
timer_init(1);
for(;;) {
pp_printf("Hello World!\n");
}
return;
spll_very_init();
usleep_init();
netif_init();
......@@ -332,7 +340,10 @@ void disable_irq() {};
int main(void) __attribute__ ((weak));
int main(void)
{
check_reset();
wrc_initialize();
#if 0
//check_reset();
create_tasks();
/* initialization of individual tasks */
......@@ -346,4 +357,6 @@ int main(void)
/* better safe than sorry */
check_stack();
}
#endif
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment