Blame |
Last modification |
View Log
| SVN
| RSS feed
/**
* MCU driver.
*
* @date 2006-11-19
*
* @author Jimmy Myhrman
*
*/
/*-----------------------------------------------------------------------------
* Includes
*---------------------------------------------------------------------------*/
#include <mcu.h>
/*-----------------------------------------------------------------------------
* Prerequisites
*---------------------------------------------------------------------------*/
#ifndef MCU
#error MCU Not defined in mcu_cfg.h
#endif
/*-----------------------------------------------------------------------------
* Public Functions
*---------------------------------------------------------------------------*/
/**
* Enable interrupts.
*/
void Mcu_EnableIRQ() {
#if MCU == ATMEGA8
sei();
#endif
}
/**
* Disable interrupts.
*/
void Mcu_DisableIRQ() {
#if MCU == ATMEGA8
cli();
#endif
}