|
Revision 11, 0.8 KB
(checked in by mlalondesvn, 14 months ago)
|
|
DS1337:
MODIF - Better documentation of alarm matching mode definitions.
|
| Line | |
|---|
| 1 | #ifndef GLOBAL_H |
|---|
| 2 | #define GLOBAL_H |
|---|
| 3 | |
|---|
| 4 | extern "C" { |
|---|
| 5 | #include <avr/pgmspace.h> |
|---|
| 6 | #include <stdio.h> |
|---|
| 7 | #include <string.h> |
|---|
| 8 | #include <inttypes.h> |
|---|
| 9 | #include <stdlib.h> |
|---|
| 10 | |
|---|
| 11 | #include "wiring_private.h" |
|---|
| 12 | #include "wiring.h" |
|---|
| 13 | #include "WConstants.h" |
|---|
| 14 | |
|---|
| 15 | #include <HardwareSerial.h> |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | #include "SPrint/staticPrint.h" |
|---|
| 19 | |
|---|
| 20 | #ifndef CI |
|---|
| 21 | #define CI(reg,bit) (reg & ~(bit)) |
|---|
| 22 | #endif |
|---|
| 23 | #ifndef SI |
|---|
| 24 | #define SI(reg,bit) (reg | bit) |
|---|
| 25 | #endif |
|---|
| 26 | #ifndef BV |
|---|
| 27 | #define BV(bit) (1<<(bit)) |
|---|
| 28 | #endif |
|---|
| 29 | #ifndef cbi |
|---|
| 30 | #define cbi(reg,bit) reg &= ~(BV(bit)) |
|---|
| 31 | #endif |
|---|
| 32 | #ifndef sbi |
|---|
| 33 | #define sbi(reg,bit) reg |= (BV(bit)) |
|---|
| 34 | #endif |
|---|
| 35 | #ifndef cli |
|---|
| 36 | #define cli() __asm__ __volatile__ ("cli" ::) |
|---|
| 37 | #endif |
|---|
| 38 | #ifndef sei |
|---|
| 39 | #define sei() __asm__ __volatile__ ("sei" ::) |
|---|
| 40 | #endif |
|---|
| 41 | #ifndef nop |
|---|
| 42 | #define nop() asm volatile ("nop") |
|---|
| 43 | #endif |
|---|
| 44 | |
|---|
| 45 | #endif |
|---|