summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/HAL/avr/atmega1281/common/include/halInterrupt.h
blob: 033000643c206526f3bd20fe45d5ad33517c65bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**************************************************************************//**
  \file  halInterrupt.h

  \brief Macroses to manipulate global interrupts.

  \author
      Atmel Corporation: http://www.atmel.com \n
      Support email: avr@atmel.com

    Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
    Licensed under Atmel's Limited License Agreement (BitCloudTM).

  \internal
    History:
      29/05/07 E. Ivanov - Created
 ******************************************************************************/
/******************************************************************************
 *   WARNING: CHANGING THIS FILE MAY AFFECT CORE FUNCTIONALITY OF THE STACK.  *
 *   EXPERT USERS SHOULD PROCEED WITH CAUTION.                                *
 ******************************************************************************/

#ifndef _HALINTERRUPT_H
#define _HALINTERRUPT_H

/******************************************************************************
Enables global interrupt.
******************************************************************************/
#define HAL_EnableInterrupts() sei()

/******************************************************************************
Disables global interrupt.
******************************************************************************/
#define HAL_DisableInterrupts() cli()

#endif /* _HALINTERRUPT_H */
// eof halInterrupt.h