OpenCores
URL https://opencores.org/ocsvn/s6soc/s6soc/trunk

Subversion Repositories s6soc

[/] [s6soc/] [trunk/] [sw/] [dev/] [blinky.c] - Diff between revs 47 and 53

Show entire file | Details | Blame | View Log

Rev 47 Rev 53
Line 36... Line 36...
//
//
//
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
//
//
//
// #include "asmstartup.h"
 
#include "board.h"
#include "board.h"
 
 
void    zip_idle(void);
void    zip_idle(void);
 
 
asm("\t.section\t.start\n"
 
"\t.global\t_start\n"
 
"\t.type\t_start,@function\n"
 
"_start:\n"
 
"\tMOV\tkernel_exit(PC),uPC\n"
 
"\tLDI 104,R0\n"
 
"\tSW R0,0x41c\n"
 
"\tLDI 0xff,R0\n"
 
"\tSW R0,0x414\n"
 
"\tLDI\t_top_of_stack,SP\n"
 
"\tJSR\tentry\n"
 
"\tNEXIT\tR0\n"
 
"kernel_exit:\n"
 
"\tBUSY\n"
 
"\t.section\t.text");
 
 
 
void entry(void) {
void entry(void) {
        const char      *msg = "Hello, World!\r\n", *ptr = msg;
        const char      *msg = "Hello, World!\r\n", *ptr = msg;
        int     count = 0;
        int     count = 0;
 
 
        _sys->io_spio = 0x0fa;
        _sys->io_spio = 0x0fa;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.