Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

43 lines
1.1KB

  1. /*
  2. wiring_private.h - Internal header file.
  3. Part of Arduino - http://www.arduino.cc/
  4. Copyright (c) 2005-2006 David A. Mellis
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General
  14. Public License along with this library; if not, write to the
  15. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  16. Boston, MA 02111-1307 USA
  17. */
  18. #ifndef WiringPrivate_h
  19. #define WiringPrivate_h
  20. #include <stdio.h>
  21. #include <stdarg.h>
  22. #include "wiring.h"
  23. #ifndef cbi
  24. #define cbi(sfr, bit) ((sfr) &= ~_BV(bit))
  25. #endif
  26. #ifndef sbi
  27. #define sbi(sfr, bit) ((sfr) |= _BV(bit))
  28. #endif
  29. typedef void (*voidFuncPtr)(void);
  30. #endif