////////////////////////////////////////////////////////////////////////
//
//  boot.h: pico2 booter (coff/elf version)
//      version 1.2 (May 6, 2010)
//
//  (c) Hideki Kozima (xkozima@myu.ac.jp), subject to GPLv2
//

#ifndef BOOT_H
#define BOOT_H

#include "sh7046f.h"

//
//  set_imask: enable interrupts
//      ex. int main () {
//              ...(get interrupt handers ready)...
//              set_imask(0);
//              for (;;) {}
//          }

void  set_imask (ushort mask);

//
//  definterrupt: associate interrupt and handler function
//      ex. definterrupt(173, (void *) SCI_receive_byte);
//          #pragma interrupt
//          void  SCI_receive_byte (void) {
//              ...
//          } 

void  definterrupt (ushort intno, void *handler(void));

#endif

////////////////////////////////////////////////////////////////////////
