Revision 8d4d058e modules/NUCLEO-F103RB/module.h

View differences:

modules/NUCLEO-F103RB/module.h
36 36
 */
37 37
/*===========================================================================*/
38 38

  
39
#if (BOARD_DW1000_CONNECTED == true)
40

  
41 39
#if defined(__cplusplus)
42 40
extern "C" {
43 41
#endif /* defined(__cplusplus) */
44 42

  
43
#if (BOARD_DW1000_CONNECTED == true)
45 44
void dw1000_spi_init(void);
45
void process_deca_irq(void);
46
apalGpioState_t port_CheckEXT_IRQ(void) ;
47
#endif /* (BOARD_DW1000_CONNECTED == true) */
48

  
49
void set_SPI_chip_select(void);
50
void clear_SPI_chip_select(void);
46 51

  
47 52
#if defined(__cplusplus)
48 53
}
49 54
#endif /* defined(__cplusplus) */
50 55

  
51
#endif /* (BOARD_DW1000_CONNECTED == true) */
56

  
52 57

  
53 58

  
54 59
/** @} */
......
76 81
#define MODULE_HAL_RTC                          RTCD1
77 82

  
78 83
#if (BOARD_DW1000_CONNECTED == true)
79

  
80 84
/**
81 85
 * @brief   SPI interface driver for the motion sensors (gyroscope and accelerometer).
82 86
 */
......
91 95
 * @brief   Configuration for the SPI interface driver to communicate with the wireless transceiver.
92 96
 */
93 97
extern SPIConfig moduleHalSpiUwbLsConfig;
94

  
95 98
#endif /* (BOARD_DW1000_CONNECTED == true) */
96 99

  
97 100
/** @} */
......
108 111
 */
109 112
extern ROMCONST apalControlGpio_t moduleGpioLed;
110 113

  
111
#if (BOARD_DW1000_CONNECTED == true)
112

  
114
//#if (BOARD_DW1000_CONNECTED == true)
113 115
/**
114 116
 * @brief   DW1000 reset output signal
115 117
 * @note    the reset pin should be drived as low by MCU to activate.
......
127 129
 * @brief   DW1000 SPI chip select  output signal.
128 130
 */
129 131
extern ROMCONST apalControlGpio_t moduleGpioSpiChipSelect ;
130

  
131
#endif /* (BOARD_DW1000_CONNECTED == true) */
132
//#endif /* (BOARD_DW1000_CONNECTED == true) */
132 133

  
133 134
/**
134 135
 * @brief   User button input signal.
......
144 145
 */
145 146
/*===========================================================================*/
146 147

  
147
#if (BOARD_DW1000_CONNECTED == true)
148

  
148
//#if (BOARD_DW1000_CONNECTED == true)
149 149
/**
150 150
 * @brief   Event flag to be call dwt_isr() interrupt.
151 151
 */
152
#define MODULE_OS_IOEVENTFLAGS_DW1000_IRQn      AOS_IOEVENT_FLAG(PAL_PAD(LINE_ARD_D6))
153

  
154
#endif /* (BOARD_DW1000_CONNECTED == true) */
152
#define MODULE_OS_IOEVENTFLAGS_DW1000_IRQn      AOS_IOEVENT_FLAG(PAL_PAD(LINE_ARD_D14))
153
//#endif /* (BOARD_DW1000_CONNECTED == true) */
155 154

  
156 155
/**
157 156
 * @brief   Event flag to be set on a USER_BUTTON interrupt.
......
259 258
   */
260 259
  #define MODULE_MAIN_LOOP_IO_EVENT_DW1000() {                                \
261 260
    if(eventflags & MODULE_OS_IOEVENTFLAGS_DW1000_IRQn) {                     \
262
      /*apalGpioToggle(moduleGpioLedGreen.gpio); // just for debug  */        \
261
      /*apalGpioToggle(moduleGpioLed.gpio);*/ /* just for debug*/             \
263 262
      process_deca_irq();                                                     \
264 263
    }                                                                         \
265 264
  }
......
298 297
 */
299 298
extern ButtonDriver moduleLldUserButton;
300 299

  
301
#if (BOARD_DW1000_CONNECTED == true)
302 300

  
301
/**
302
 * @brief   DW1000 driver.
303
 */
303 304
#include <alld_DW1000.h>
305
void setHighSpeed_SPI(bool speedValue, DW1000Driver* drv);
304 306

  
307
#if (BOARD_DW1000_CONNECTED == true)
305 308
extern DW1000Driver moduleLldDw1000;
306

  
307 309
#endif /* (BOARD_DW1000_CONNECTED == true) */
308 310

  
309 311
/** @} */
......
327 329
extern aos_shellcommand_t moduleTestButtonShellCmd;
328 330

  
329 331
#if (BOARD_DW1000_CONNECTED == true)
330

  
331 332
/**
332 333
 * @brief   DW1000 (UWB transmitter) test command.
333 334
 */
334 335
extern aos_shellcommand_t moduleTestDw1000ShellCmd;
335

  
336 336
#endif /* (BOARD_DW1000_CONNECTED == true) */
337 337

  
338 338
/**

Also available in: Unified diff