forked from smurfix/owslave
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeatures.h
43 lines (36 loc) · 1.53 KB
/
features.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Copyright © 2010, Matthias Urlichs <matthias@urlichs.de>
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License (included; see the file LICENSE)
* for more details.
*/
#ifndef FEATURES_H
#define FEATURES_H
/* these are the current project settings, should be configurable in a way */
/* HAVE_UART is really critical, the POLLED_TRANSMITTER works better
* as it wont delay the 1-wire interrupts. This is especially true if large
* amounts of data are output (pin debug and edge debug on!)
*/
#define NHAVE_UART
#define NPOLLED_TRANSMITTER
#define BAUDRATE 57600
#define F_CPU 16000000 // cortex-M0 currently at 48000000
// #define SKIP_SEARCH // omits search rom code (single slave only!)
/* some basic typedef, that should be very portable */
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned long u_long;
/*! there are 3 types of configuration settings:
* - uP specific settings (like uP type, register names etc.)
* - hardware specific settings (like fuse stuff: F_CPU, pin usage ...)
* - project specific settings (ds2408, ds2423, ...)
*/
#endif /* FEATURES_H */