?? target.c
字號:
/* ************************************************************************ *
* *
* Volcano Communications technologies AB *
* All rights reserved *
* *
* ************************************************************************ */
/* ************************************************************************ *
* File: target.c *
* Description: Target specific definitions/structures for the Hiware *
* HC08 SWUART *
* LTP example application *
* *
* ************************************************************************ */
#include <lin.h>
#include "target.h"
/* ************************************************************************ */
/* Perform initialisation of development system (if any) */
void init_environment(void)
{
/* Empty */
}
/* ************************************************************************ */
/* Perform initialisation of target. */
void init_target(void)
{
OSCTRIM = 0x60; /* Internal Oscillator Trim Factor */
}
/* ************************************************************************ */
/* Restores interrupt level to the previous level, as indicated by the */
/* input previous. On the hc08 family the interrupt level can only be */
/* either "interrupts enabled" or "interrupts disabled". */
void l_sys_irq_restore(l_irqmask previous)
{
if (previous)
{
asm sei; /* interrupts disabled */
}
else
{
asm cli; /* interrupts enabled */
}
}
/* ************************************************************************ */
/* Disable interrupts, and return the previous value of the interrupt */
/* level. */
l_irqmask l_sys_irq_disable(void)
{
l_irqmask x;
x = __isflag_int_enabled();
asm sei; /* interrupts disabled */
return(x);
}
/* ************************************************************************ */
/* Interrupt handler for reciving data */
interrupt 5 void uart_0_rx_handler(void)
{
uart_it_handler();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -