Guest User

Untitled

a guest
Jun 14th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. Makefile_cerberos.local
  2.  
  3. # Use this file to globally override uPnP settings
  4.  
  5. # Path to Contiki
  6. ifndef CONTIKI
  7. CONTIKI = $(ROOT)/UPNP/contiki
  8. endif
  9.  
  10. # Board revisions:
  11. # v2: Old ADC resistors, 10MHz, no case for SMIP radio. Just has RX and TX
  12. # wired to radio, duty cycling not possible. PB4 switches external
  13. # reset. (Optical switch, reset on uses a lot of energy!)
  14. # v2.9: First big production run, used for IPSO. New ADC resistors, 10MHz,
  15. # full enclosure. TX_RTS pin from radio wired to PB3, TX_CTS grounded.
  16. # Duty cycling possible when fuses set for fastest wake-up so we do not
  17. # miss UART from SMIP. PB4 enables/disables ADC for peripheral
  18. # detection. Has accelerometer on-board.
  19. # v2.12: Second big production run, new 3.686MHz crystal, bigger form factor,
  20. # TX_RTS from radio on PB3, TX_CTS wired to PA1 together with ADC
  21. # enable/disable. Duty cycling possible, radio waits till TX_CTS is low
  22. # (MCU awake and ready). Has external EEPROM on-board.
  23. # v2.13: Same as 2.12, but has 10M plug detect pull-ups on-board. controller.c
  24. # does not use the internal pull-ups in this case.
  25. CFLAGS += -DBOARD_REV_MAJOR=2
  26. CFLAGS += -DBOARD_REV_MINOR=9
  27.  
  28. # Enable sleep
  29. #CFLAGS += -DSLEEP_MCU
  30. #FLAGS += -DDEMO_JOIN_TIMEOUT
  31.  
  32. # Global debug disable, overrides all finer grained DEBUG flags.
  33. # Saves power by disabling USART HW.
  34. #CFLAGS += -DDBG_UART_DISABLE
  35.  
  36. # Disable 0.5s wakeups from clock when measuring sleep current on app board.
  37. # Connect TX_RTSn on the application board to VSUPPLY to force permanent sleep.
  38. # GND to force permanent active mode. Alternatively, with SMIP board attached
  39. # and autojoin off, usefull for measuring app + radio sleep power consumption.
  40. # !! DISABLES ETIMER/CTIMER, NOT FOR NORMAL OPERATION !!
  41. #CFLAGS += -DCLOCK_DISABLE
  42.  
  43. # Disable the SMIP join-FSM for testing (MCU will not request join etc but just
  44. # ack notifications from SMIP)
  45. #CFLAGS += -DJOINFSM_DISABLE
  46.  
  47. # Debugging
  48. CFLAGS += -DUPNP_DEBUG
  49. CFLAGS += -DSMIP_DEBUG
  50. #CFLAGS += -DCONTROLLER_DEBUG
  51. #CFLAGS += -DDRIVER_DEBUG
  52. #CFLAGS += -DRD_DEBUG
  53.  
  54. # Default observe rate for peripherals
  55. #TESTBED: 1min && 15min
  56. CFLAGS += -DDEFAULT_RATE=10
  57. # /rd rate
  58. CFLAGS += -DRD_RATE=30
Advertisement
Add Comment
Please, Sign In to add comment