mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2025-04-21 12:27:27 +03:00
tornado/fw/: handle platform separation for delay function via include path
... and not via #ifdef
This commit is contained in:
19
tornado/fw/avr/delay.h
Normal file
19
tornado/fw/avr/delay.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* fw/avr/delay.h - AVR-specific _delay_ms
|
||||
*
|
||||
* Written 2012 by Werner Almesberger
|
||||
* Copyright 2012 Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef AVR_DELAY_H
|
||||
#define AVR_DELAY_H
|
||||
|
||||
#define F_CPU 8000000UL
|
||||
#include <util/delay.h>
|
||||
|
||||
#endif /* AVR_DELAY_H */
|
||||
Reference in New Issue
Block a user