Blame view

build3/ion/src/device/swd.h 516 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  #ifndef ION_DEVICE_SWD_H
  #define ION_DEVICE_SWD_H
  
  #include "regs/regs.h"
  
  namespace Ion {
  namespace SWD {
  namespace Device {
  
  /*  Pin | Role              | Mode
   * -----+-------------------+---------------------
   * PA13 | SWDIO             | Alternate Function 0
   * PA14 | SWCLK             | Alternate Function 0
   *  PB3 | SWO               | Alternate Function 0
   */
  
  void init();
  void shutdown();
  
  constexpr static GPIOPin Pins[] = {
    GPIOPin(GPIOA, 13), GPIOPin(GPIOA, 14), GPIOPin(GPIOB, 3)
  };
  
  }
  }
  }
  
  #endif