Revision 3cee92c7

View differences:

modules/NUCLEO-F103RB/board.h
58 58
 * Identifiers for optional peripherals.
59 59
 */
60 60
#define BOARD_DW1000_CONNECTED      false
61
#define BOARD_MIC9404x_CONNECTED    false /* Power supply for DW1000 in Light ring */
61 62

  
62 63
/*
63 64
 * IO pins assignments.
modules/NUCLEO-F103RB/module.c
199 199
  apalGpioWrite(moduleGpioSpiChipSelect.gpio, APAL_GPIO_LOW);
200 200
}
201 201

  
202
/*! @brief Manually reset the DW1000 module  */
203
void reset_DW1000(void){
204

  
205
  // Set the pin as output
206
  palSetLineMode(moduleGpioDw1000Reset.gpio->line, APAL_GPIO_DIRECTION_OUTPUT);
207

  
208
  //drive the RSTn pin low
209
  apalGpioWrite(moduleGpioDw1000Reset.gpio, APAL_GPIO_LOW);
210

  
211
  //put the pin back to tri-state ... as input
212
//  palSetLineMode(moduleGpioDw1000Reset.gpio->line, APAL_GPIO_DIRECTION_INPUT); // TODO:
213

  
214
  aosThdMSleep(2);
215
}
216

  
202 217
/*! @brief entry point to the IRQn event in DW1000 module
203 218
 *
204 219
 * */
modules/NUCLEO-F103RB/module.h
48 48

  
49 49
void set_SPI_chip_select(void);
50 50
void clear_SPI_chip_select(void);
51
void reset_DW1000(void);
51 52

  
52 53
#if defined(__cplusplus)
53 54
}
54 55
#endif /* defined(__cplusplus) */
55 56

  
56

  
57

  
58

  
59 57
/** @} */
60 58

  
61 59
/*===========================================================================*/

Also available in: Unified diff