-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathacc_usr_conf.h
38 lines (28 loc) · 1.12 KB
/
acc_usr_conf.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
#ifndef ACC_USR_CONF_H_
#define ACC_USR_CONF_H_
#include "mspDriver.h"
#include "acc_register.h"
/*********** ACC Pin Conf*************/
#if defined(__MSP430G2553__)
#define ACC_PORT_DIR P2DIR
#define ACC_PORT_OUT P2OUT
#define ACC_PIN BIT5
#define ACC_INT1_PIN BIT3
#define ACC_INT2_PIN BIT4
#elif defined(__MSP430FR2433__)
#define ACC_PORT_DIR P2DIR
#define ACC_PORT_OUT P2OUT
#define ACC_PIN BIT2
#define ACC_INT1_PIN BIT1
//#define ACC_INT2_PIN BIT4
#endif
#define LOW_POWER_MODE //This macro sets ACC LOW power mode. to enable high resolution mode comment this
#define LIS3DH_DATA_RATE DATA_RATE_1HZ
#define LIS3DH_SET_FIFO_ENA_STATUS FIFO_ENA
#define ENABLE_INTERRUPTS_ON_INT1 (ENA_OVERRUN_INT1 | ENA_WATERMARK_INT1)
#define FIFO_BUFFER_MODE STREAM_MODE
#define GEN_WTM_INT_AFTER_BYTE 31 //Acc generate wtm int after filling the defined byte
#define TRIG_INT_ON_INT1 0
#define TRIG_INT_ON_INT2 (1<<5)
//#define ACC_INT_DEBUG_ON
#endif