Blame view

build6/epsilon-master/ion/src/device/device.h 678 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
29
  #ifndef ION_DEVICE_H
  #define ION_DEVICE_H
  
  namespace Ion {
  namespace Device {
  
  void init();
  void shutdown();
  
  void initFPU();
  void coreReset();
  void jumpReset();
  
  void initPeripherals();
  void shutdownPeripherals(bool keepLEDAwake = false);
  void initClocks();
  void shutdownClocks(bool keepLEDAwake = false);
  
  /* The serial number is 96 bits long. That's equal to 16 digits in base 64. We
   * expose a convenient "copySerialNumber" routine which can be called without
   * using a static variable (and therefore without a .bss section). This is used
   * in the RAM'ed DFU bootloader. */
  constexpr static int SerialNumberLength = 16;
  void copySerialNumber(char * buffer);
  
  }
  }
  
  #endif