![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Send on Sync message
Dependencies: BNO055_fusion RF24_fork mbed
Fork of F042_BNO055_toNRF24 by
config.h@1:03c9c0e3fc70, 2017-01-20 (annotated)
- Committer:
- mrcrsch
- Date:
- Fri Jan 20 13:43:21 2017 +0000
- Revision:
- 1:03c9c0e3fc70
- Parent:
- 0:5283bf22044b
- Child:
- 2:80989e6af5e7
actual;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mrcrsch | 0:5283bf22044b | 1 | #ifndef CONFIG_H |
mrcrsch | 0:5283bf22044b | 2 | #define CONFIG_H |
mrcrsch | 0:5283bf22044b | 3 | |
mrcrsch | 0:5283bf22044b | 4 | #include "BNO055.h" |
mrcrsch | 0:5283bf22044b | 5 | |
mrcrsch | 0:5283bf22044b | 6 | //This header contains calibration data |
mrcrsch | 0:5283bf22044b | 7 | |
mrcrsch | 1:03c9c0e3fc70 | 8 | #define NodeID 4 |
mrcrsch | 1:03c9c0e3fc70 | 9 | #define RadioChannel 90 |
mrcrsch | 1:03c9c0e3fc70 | 10 | #define SendDelay 3 //ms |
mrcrsch | 0:5283bf22044b | 11 | |
mrcrsch | 1:03c9c0e3fc70 | 12 | |
mrcrsch | 0:5283bf22044b | 13 | |
mrcrsch | 0:5283bf22044b | 14 | //define MCU for bias and pinout |
mrcrsch | 0:5283bf22044b | 15 | #define F042 |
mrcrsch | 0:5283bf22044b | 16 | //#define L052 |
mrcrsch | 0:5283bf22044b | 17 | //#define F103 |
mrcrsch | 0:5283bf22044b | 18 | |
mrcrsch | 0:5283bf22044b | 19 | |
mrcrsch | 0:5283bf22044b | 20 | |
mrcrsch | 0:5283bf22044b | 21 | |
mrcrsch | 0:5283bf22044b | 22 | |
mrcrsch | 0:5283bf22044b | 23 | |
mrcrsch | 0:5283bf22044b | 24 | |
mrcrsch | 0:5283bf22044b | 25 | //Macro for pinout |
mrcrsch | 0:5283bf22044b | 26 | |
mrcrsch | 0:5283bf22044b | 27 | #ifdef F042 |
mrcrsch | 0:5283bf22044b | 28 | #define ledpin PA_10 |
mrcrsch | 0:5283bf22044b | 29 | |
mrcrsch | 0:5283bf22044b | 30 | #define nrf_CE PA_1 |
mrcrsch | 0:5283bf22044b | 31 | #define nrf_CSN PA_4 |
mrcrsch | 0:5283bf22044b | 32 | #define spi_SCK PA_5 |
mrcrsch | 0:5283bf22044b | 33 | #define spi_MOSI PA_7 |
mrcrsch | 0:5283bf22044b | 34 | #define spi_MISO PA_6 |
mrcrsch | 0:5283bf22044b | 35 | #define nrf_irq PA_1 //TODO |
mrcrsch | 0:5283bf22044b | 36 | |
mrcrsch | 0:5283bf22044b | 37 | #define i2c_sda PF_0 |
mrcrsch | 0:5283bf22044b | 38 | #define i2c_scl PF_1 |
mrcrsch | 0:5283bf22044b | 39 | |
mrcrsch | 0:5283bf22044b | 40 | #elif defined L052 |
mrcrsch | 0:5283bf22044b | 41 | |
mrcrsch | 0:5283bf22044b | 42 | |
mrcrsch | 0:5283bf22044b | 43 | #define ledpin PA_8 |
mrcrsch | 0:5283bf22044b | 44 | |
mrcrsch | 0:5283bf22044b | 45 | #define nrf_CE PB_4 |
mrcrsch | 0:5283bf22044b | 46 | #define nrf_CSN PB_3 |
mrcrsch | 0:5283bf22044b | 47 | #define spi_SCK PA_5 |
mrcrsch | 0:5283bf22044b | 48 | #define spi_MOSI PA_7 |
mrcrsch | 0:5283bf22044b | 49 | #define spi_MISO PA_6 |
mrcrsch | 0:5283bf22044b | 50 | #define nrf_irq PA_15 |
mrcrsch | 0:5283bf22044b | 51 | |
mrcrsch | 0:5283bf22044b | 52 | #define i2c_sda PB_7 |
mrcrsch | 0:5283bf22044b | 53 | #define i2c_scl PB_6 |
mrcrsch | 0:5283bf22044b | 54 | |
mrcrsch | 0:5283bf22044b | 55 | #elif defined F103 |
mrcrsch | 0:5283bf22044b | 56 | |
mrcrsch | 0:5283bf22044b | 57 | #define ledpin PA_10 |
mrcrsch | 0:5283bf22044b | 58 | |
mrcrsch | 0:5283bf22044b | 59 | #define nrf_CE PA_9 |
mrcrsch | 0:5283bf22044b | 60 | #define nrf_CSN PA_8 |
mrcrsch | 0:5283bf22044b | 61 | #define spi_SCK PB_13 |
mrcrsch | 0:5283bf22044b | 62 | #define spi_MOSI PB_15 |
mrcrsch | 0:5283bf22044b | 63 | #define spi_MISO PB_14 |
mrcrsch | 0:5283bf22044b | 64 | #define nrf_irq PA_12 |
mrcrsch | 0:5283bf22044b | 65 | |
mrcrsch | 0:5283bf22044b | 66 | #define i2c_sda PB_11 |
mrcrsch | 0:5283bf22044b | 67 | #define i2c_scl PB_10 |
mrcrsch | 0:5283bf22044b | 68 | |
mrcrsch | 0:5283bf22044b | 69 | #endif |
mrcrsch | 0:5283bf22044b | 70 | |
mrcrsch | 0:5283bf22044b | 71 | |
mrcrsch | 0:5283bf22044b | 72 | |
mrcrsch | 0:5283bf22044b | 73 | |
mrcrsch | 0:5283bf22044b | 74 | |
mrcrsch | 0:5283bf22044b | 75 | |
mrcrsch | 0:5283bf22044b | 76 | #endif |