#include #if 0 struct _st_sp_immediate { uint8_t joe[8]; } sp __attribute__ ((unused,section (".sp_imm"))); #endif #if 0 void lm8_interrupt_disable (uint8_t level) { uint8_t im; MICO8_DISABLE_GLOBAL_IRQ(); MICO8_READ_IM(im); im &= ~(0x1 << level); MICO8_PROGRAM_IM(im); MICO8_ENABLE_GLOBAL_IRQ(); return; } void lm8_interrupt_enable (uint8_t level) { uint8_t im; MICO8_DISABLE_GLOBAL_IRQ(); MICO8_READ_IM(im); im |= (1 << level); MICO8_PROGRAM_IM(im); MICO8_ENABLE_GLOBAL_IRQ(); return; } #endif void __IRQ (void) { uint8_t ip; ip = get_ip(); set_ip (0); if (ip & 0x01) { // UART lm8_uart_isr (0); } return; }