blob: 3c7c0166359027a3ddc05a719e60c493adff775a (
plain)
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
|
/*
* precomp.h
*
* Created on: 2014-4-26
* Author: Tuowen
*/
#ifndef PRECOMP_H_
#define PRECOMP_H_
#include<msp430g2553.h>
#define RSDIR (P1DIR)
#define RSOUT (P1OUT)
#define RSPIN (BIT0)
#define RSSYSBIT (SYS_BIT7) // This is the lowest level
#define RSSYSRET (SYS_BIT6) // Second lowest level
#define RSADDR (1)
#define MACTYPE (TYPE0)
// Change it in real implementation
//define delay func
#define delay_ms(ms) __delay_cycles(16000*(ms))
#endif /* PRECOMP_H_ */
|