Blame view

RIOT/drivers/my9221/include/my9221_internal.h 897 Bytes
a752c7ab   elopes   add first test an...
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  /*
   * Copyright (C) 2017 HAW Hamburg
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @ingroup     drivers_my9221
   *
   * @{
   * @file
   * @brief       Internal config and parameters for the MY9221 LED controller
   *
   * @author      Sebastian Meiling <s@mlng.net>
   */
  
  #ifndef MY9221_INTERNAL_H
  #define MY9221_INTERNAL_H
  
  #include "xtimer.h"
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /**
   * @brief 	Time to wait until latch register is processed
   */
  #define MY9221_LATCH_WAIT       (10U * US_PER_MS)
  
  /**
   * @brief 	Number of write loops for latch register
   */
  #define MY9221_LATCH_LOOP       (4U)
  
  /**
   * @brief 	Enable command mode on LED controller
   */
  #define MY9221_CMDMODE          (0x00)
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* MY9221_INTERNAL_H */
  /** @} */