Details | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 142 | jimmy | 1 | /** |
| 2 | * MCU driver. |
||
| 3 | * |
||
| 4 | * @date 2006-11-19 |
||
| 5 | * |
||
| 6 | * @author Jimmy Myhrman |
||
| 7 | * |
||
| 8 | */ |
||
| 9 | |||
| 10 | /*----------------------------------------------------------------------------- |
||
| 11 | * Includes |
||
| 12 | *---------------------------------------------------------------------------*/ |
||
| 13 | #include <mcu.h> |
||
| 14 | |||
| 15 | |||
| 16 | /*----------------------------------------------------------------------------- |
||
| 17 | * Prerequisites |
||
| 18 | *---------------------------------------------------------------------------*/ |
||
| 19 | #ifndef MCU |
||
| 20 | #error MCU Not defined in mcu_cfg.h |
||
| 21 | #endif |
||
| 22 | |||
| 23 | |||
| 24 | /*----------------------------------------------------------------------------- |
||
| 25 | * Public Functions |
||
| 26 | *---------------------------------------------------------------------------*/ |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Enable interrupts. |
||
| 30 | */ |
||
| 31 | void Mcu_EnableIRQ() { |
||
| 32 | #if MCU == ATMEGA8 |
||
| 33 | sei(); |
||
| 34 | #endif |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Disable interrupts. |
||
| 39 | */ |
||
| 40 | void Mcu_DisableIRQ() { |
||
| 41 | #if MCU == ATMEGA8 |
||
| 42 | cli(); |
||
| 43 | #endif |
||
| 44 | } |