mirror of
https://github.com/kelvinlawson/atomthreads.git
synced 2026-01-11 18:33:16 +01:00
use F_CPU for the AVR CPU frequency (if available)
This commit is contained in:
@@ -31,7 +31,11 @@
|
||||
#define __ATOM_PORT_PRIVATE_H
|
||||
|
||||
/* CPU Frequency */
|
||||
#ifdef F_CPU
|
||||
#define AVR_CPU_HZ F_CPU
|
||||
#else
|
||||
#define AVR_CPU_HZ 1000000
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user