| 1 |
/* Copyright (c) 2002, Marek Michalkiewicz |
/* Copyright (c) 2002,2005 Marek Michalkiewicz |
| 2 |
All rights reserved. |
All rights reserved. |
| 3 |
|
|
| 4 |
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
| 42 |
|
|
| 43 |
/*@{*/ |
/*@{*/ |
| 44 |
|
|
| 45 |
|
#if defined(DOXYGEN) |
| 46 |
/** \def sei() |
/** \def sei() |
| 47 |
\ingroup avr_interrupts |
\ingroup avr_interrupts |
| 48 |
|
|
| 49 |
\code#include <avr/interrupt.h>\endcode |
\code#include <avr/interrupt.h>\endcode |
| 50 |
|
|
| 51 |
Enables interrupts by clearing the global interrupt mask. This function |
Enables interrupts by setting the global interrupt mask. This function |
| 52 |
actually compiles into a single line of assembly, so there is no function |
actually compiles into a single line of assembly, so there is no function |
| 53 |
call overhead. */ |
call overhead. */ |
| 54 |
|
extern void sei(void); |
| 55 |
|
#else /* !DOXYGEN */ |
| 56 |
|
# define sei() __asm__ __volatile__ ("sei" ::) |
| 57 |
|
#endif /* DOXYGEN */ |
| 58 |
|
|
| 59 |
#define sei() __asm__ __volatile__ ("sei" ::) |
#if defined(DOXYGEN) |
|
|
|
| 60 |
/** \def cli() |
/** \def cli() |
| 61 |
\ingroup avr_interrupts |
\ingroup avr_interrupts |
| 62 |
|
|
| 65 |
Disables all interrupts by clearing the global interrupt mask. This function |
Disables all interrupts by clearing the global interrupt mask. This function |
| 66 |
actually compiles into a single line of assembly, so there is no function |
actually compiles into a single line of assembly, so there is no function |
| 67 |
call overhead. */ |
call overhead. */ |
| 68 |
|
extern void cli(void); |
| 69 |
#define cli() __asm__ __volatile__ ("cli" ::) |
#else /* !DOXYGEN */ |
| 70 |
|
# define cli() __asm__ __volatile__ ("cli" ::) |
| 71 |
|
#endif /* DOXYGEN */ |
| 72 |
|
|
| 73 |
/*@}*/ |
/*@}*/ |
| 74 |
|
|