Project

General

Profile

Revision 6

some more advances in func 1

View differences:

i8254.h
35 35
#define TIMER_LSB     BIT(4)                  /**< @brief Initialize Counter LSB only */
36 36
#define TIMER_MSB     BIT(5)                  /**< @brief Initialize Counter MSB only */
37 37
#define TIMER_LSB_MSB (TIMER_LSB | TIMER_MSB) /**< @brief Initialize LSB first and MSB afterwards */
38
#define TIMER_INMODE_MASK 0x30
39
#define TIMER_INMODE_POS  4
38 40

  
39 41
/* Operating mode: bits 3, 2 and 1 */
40 42

  
41 43
#define TIMER_SQR_WAVE (BIT(2) | BIT(1)) /**< @brief Mode 3: square wave generator */
42 44
#define TIMER_RATE_GEN BIT(2)            /**< @brief Mode 2: rate generator */
45
#define TIMER_MODE_MASK 0x0e             /**< @brief Mask for mode */
46
#define TIMER_MODE_POS  1                /**< @brief Position of smallest bit from mode */
43 47

  
44 48
/* Counting mode: bit 0 */
45 49

  

Also available in: Unified diff