-
Notifications
You must be signed in to change notification settings - Fork 1
/
hwconfig.h
executable file
·53 lines (40 loc) · 1.35 KB
/
hwconfig.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
44
45
46
47
48
49
50
51
52
53
/**
* hwconfig.h
*
* Created on: 03. 03. 2017.
* Author: Vedran Mikov
*
* Hardware abstraction layer providing uniform interface between board support
* layer and hardware in there and any higher-level libraries. Acts as a
* switcher between HALs for different boards.
*/
#ifndef __HWCONFIG_H__
#define __HWCONFIG_H__
#include <stdint.h>
#include <stdbool.h>
// Define platform in use in hal.h
#define __BOARD_TM4C1294NCPDT__
/*
* Compile all libraries in debug mode, allowing them to print debug data to
* serial port. This enabled debug session for ALL libraries. Individual
* libraries can be debugged by setting this flag only in their headers.
*/
//#define __DEBUG_SESSION__
/*
* This section configures MPU9250 sensor
* MPU can either use SPI or I2C protocol
* MPU can be configured to give raw data, or use DMP firmware
*/
// Select communication protocol - use either one of these two
//#define __HAL_USE_MPU9250_I2C__
#define __HAL_USE_MPU9250_SPI__
#if defined(__HAL_USE_MPU9250_SPI__) || defined(__HAL_USE_MPU9250_I2C__)
#define __HAL_USE_MPU9250__
// Select operating mode - use either one of these two
// Operating mode can be with raw sensor values or using DMP firmware
#define __HAL_USE_MPU9250_NODMP__
//#define __HAL_USE_MPU9250_DMP__
#endif
// Define sensor for sensor library
#define __MPU9250
#endif