Advertisement
Guest User

Untitled

a guest
Aug 7th, 2020
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. ## Copy this file to config.mk and modify to get you personal build configuration
  2.  
  3. ## Force device type string
  4. # CFLAGS += -DDEVICE_TYPE_STRING_FORCE="CF20"
  5.  
  6. ## Force a sensor implementation to be used
  7. # SENSORS=bosch
  8.  
  9. ## Set CRTP link to E-SKY receiver
  10. # CFLAGS += -DUSE_ESKYLINK
  11.  
  12. ## Redirect the console output to the UART
  13. # CFLAGS += -DDEBUG_PRINT_ON_UART
  14.  
  15. ## Redirect the console output to JLINK (using SEGGER RTT)
  16. # DEBUG_PRINT_ON_SEGGER_RTT = 1
  17.  
  18. ## Load a deck driver that has no OW memory
  19. # CFLAGS += -DDECK_FORCE=bcBuzzer
  20.  
  21. ## Load multiple deck drivers that has no OW memory
  22. # CFLAGS += -DDECK_FORCE=bcBuzzer:bcLedRing
  23.  
  24. ## Enable biq quad deck features
  25. # CFLAGS += -DENABLE_BQ_DECK
  26. # CFLAGS += -DBQ_DECK_ENABLE_PM
  27. # CFLAGS += -DBQ_DECK_ENABLE_OSD
  28.  
  29. ## Use morse when flashing the LED to indicate that the Crazyflie is calibrated
  30. # CFLAGS += -DCALIBRATED_LED_MORSE
  31.  
  32. ## Disable LEDs from turning on/flashing
  33. # CFLAGS += -DTURN_OFF_LEDS
  34.  
  35. ## Set the default LED Ring effect (if not set, effect 6 will be used)
  36. # CFLAGS += -DLEDRING_DEFAULT_EFFECT=0
  37.  
  38. ## Set LED Rings to use less LEDs
  39. # CFLAGS += -DLED_RING_NBR_LEDS=6
  40.  
  41. ## Set LED Rings to use less more LEDs (only if board is modified)
  42. # CFLAGS += -DLED_RING_NBR_LEDS=24
  43.  
  44. ## Turn on monitoring of queue usages
  45. # CFLAGS += -DDEBUG_QUEUE_MONITOR
  46.  
  47. ## Automatically reboot to bootloader before flashing
  48. # CLOAD_CMDS = -w radio://0/100/2M/E7E7E7E7E7
  49.  
  50. ## Set number of anchor in LocoPositioningSystem
  51. # CFLAGS += -DLOCODECK_NR_OF_ANCHORS=8
  52.  
  53. ## Set alternative pins for LOCO deck (IRQ=IO_2, RESET=IO_3, default are RX1 and TX1)
  54. # CFLAGS += -DLOCODECK_USE_ALT_PINS
  55.  
  56. ## Disable Low Interference Mode when using Loco Deck
  57. # CFLAGS += -DLOCODECK_NO_LOW_INTERFERENCE
  58.  
  59. ## Set the positioning system in TDoA2 mode on startup
  60. # LPS_TDOA_ENABLE=1
  61.  
  62. ## Low interference communication
  63. # Set the 'low interference' 2.4GHz TX power. This power is set when the loco deck is initialized
  64. # Possible power are: +4, 0, -4, -8, -12, -16, -20, -30
  65. # CFLAGS += -DPLATFORM_NRF51_LOW_INTERFERENCE_TX_POWER_DBM="(-12)"
  66.  
  67. ## Set alternative pins for uSD-deck. Patch soldering required (CS->RX2(PA3), SCLK->TX1(PC10), MISO->RX1(PC11), MOSI->IO_4(PC12))
  68. # CFLAGS += -DUSDDECK_USE_ALT_PINS_AND_SPI
  69.  
  70. ## Use J-Link as Debugger/flasher
  71. # OPENOCD_INTERFACE ?= interface/jlink.cfg
  72. # OPENOCD_TARGET ?= target/stm32f4x.cfg
  73. # OPENOCD_CMDS ?= -c "transport select swd"
  74.  
  75.  
  76. ## TDaA 3 - experimental -------------------------------------------
  77. # Enable 2D positioning. The value (1.2) is the height that the tag will move at
  78. # Only use in TDoA 3
  79. # CFLAGS += -DLPS_2D_POSITION_HEIGHT=1.2
  80.  
  81. # Enable longer range (lower bit rate)
  82. # Only use in TDoA 3
  83. # Note: Anchors must also be built with this flag
  84. # CFLAGS += -DLPS_LONGER_RANGE
  85.  
  86. ## SDCard test configuration ------------------------------------
  87. # FATFS_DISKIO_TESTS = 1 # Set to 1 to enable FatFS diskio function tests. Erases card.
  88.  
  89. ## To build with lighthouse support
  90. CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0
  91.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement