/[avr-libc]/avr-libc/include/avr/interrupt.h
ViewVC logotype

Diff of /avr-libc/include/avr/interrupt.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by aesok, Sat Jun 25 22:41:09 2005 UTC revision 1.14 by joerg_wunsch, Wed Sep 7 20:15:08 2005 UTC
# Line 1  Line 1 
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
# Line 42  Line 42 
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    
# Line 61  Line 65 
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    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26