#include "config.h"Include dependency graph for timer16_drv.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
| #define TIMER16_1 0x01 |
Definition at line 37 of file timer16_drv.h.
| #define TIMER16_3 0x03 |
Definition at line 40 of file timer16_drv.h.
| #define BOTH_TIMER16 0xFF |
Definition at line 43 of file timer16_drv.h.
| #define Timer16_get_counter | ( | ) | ( timer16_get_counter() ) |
Definition at line 49 of file timer16_drv.h.
| #define Timer16_get_capture | ( | ) | ( timer16_get_capture() ) |
Definition at line 50 of file timer16_drv.h.
| #define Timer16_set_pwm_a | ( | value | ) | ( Timer16_set_compare_a(value) ) |
Definition at line 52 of file timer16_drv.h.
| #define Timer16_set_pwm_b | ( | value | ) | ( Timer16_set_compare_b(value) ) |
Definition at line 53 of file timer16_drv.h.
| #define Timer16_set_pwm_c | ( | value | ) | ( Timer16_set_compare_c(value) ) |
Definition at line 54 of file timer16_drv.h.
| #define Timer16_get_pwm_a | ( | ) | ( Timer16_get_compare_a() ) |
Definition at line 55 of file timer16_drv.h.
| #define Timer16_get_pwm_b | ( | ) | ( Timer16_get_compare_b() ) |
Definition at line 56 of file timer16_drv.h.
| #define Timer16_get_pwm_c | ( | ) | ( Timer16_get_compare_c() ) |
Definition at line 57 of file timer16_drv.h.
| #define Timer16_off | ( | ) | Timer16_set_clock(TIMER16_NO_CLOCK) |
Definition at line 59 of file timer16_drv.h.
| #define Timer16_select | ( | timer16_num | ) | (timer16_selected=timer16_num) |
Definition at line 255 of file timer16_drv.h.
Referenced by otg_timer_interrupt(), and usb_general_interrupt().
| #define Timer16_clear | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1B=0, TCCR1A=0, TCCR1C=0, TCNT1H=0, TCNT1L= 0, OCR1AH=0, OCR1AL=0, \ OCR1BH=0, OCR1BL=0, OCR1CH=0, OCR1CL=0, ICR1H=0, ICR1L=0 ) \ : \ (TCCR3B=0, TCCR3A=0, TCCR3C=0, TCNT3H=0, TCNT3L= 0, OCR3AH=0, OCR3AL=0, \ OCR3BH=0, OCR3BL=0, OCR3CH=0, OCR3CL=0, ICR3H=0, ICR3L=0 ) )
Definition at line 257 of file timer16_drv.h.
| #define Timer16_set_counter | ( | value | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCNT1H = ((U8)(value>>8)), TCNT1L = ((U8)(value)) ) \ : \ (TCNT3H = ((U8)(value>>8)), TCNT3L = ((U8)(value)) ) )
Definition at line 264 of file timer16_drv.h.
Referenced by usb_general_interrupt().
| #define Timer16_get_counter_low | ( | ) | ((timer16_selected==TIMER16_1)? ((U16)(TCNT1L)) : ((U16)(TCNT3L)) ) |
Definition at line 268 of file timer16_drv.h.
Referenced by otg_timer_interrupt(), timer16_get_counter(), and usb_general_interrupt().
| #define Timer16_get_counter_high | ( | ) | ((timer16_selected==TIMER16_1)? ((U16)(TCNT1H)) : ((U16)(TCNT3H)) ) |
| #define Timer16_set_compare_a | ( | value | ) |
Value:
((timer16_selected==TIMER16_1)? \ (OCR1AH = ((U8)(value>>8)), OCR1AL = ((U8)(value)) ) \ : \ (OCR3AH = ((U8)(value>>8)), OCR3AL = ((U8)(value)) ) )
Definition at line 271 of file timer16_drv.h.
| #define Timer16_set_compare_b | ( | value | ) |
Value:
((timer16_selected==TIMER16_1)? \ (OCR1BH = ((U8)(value>>8)), OCR1BL = ((U8)(value)) ) \ : \ (OCR3BH = ((U8)(value>>8)), OCR3BL = ((U8)(value)) ) )
Definition at line 275 of file timer16_drv.h.
| #define Timer16_set_compare_c | ( | value | ) |
Value:
((timer16_selected==TIMER16_1)? \ (OCR3CH = ((U8)(value>>8)), OCR3CL = ((U8)(value)) ) \ : \ (OCR1CH = ((U8)(value>>8)), OCR1CL = ((U8)(value)) ) )
Definition at line 279 of file timer16_drv.h.
| #define Timer16_get_compare_a | ( | ) | ((timer16_selected==TIMER16_1)? (OCR1A) : (OCR3A) ) |
Definition at line 283 of file timer16_drv.h.
| #define Timer16_get_compare_b | ( | ) | ((timer16_selected==TIMER16_1)? (OCR1B) : (OCR3B) ) |
Definition at line 284 of file timer16_drv.h.
| #define Timer16_get_compare_c | ( | ) | ((timer16_selected==TIMER16_1)? (OCR1C) : (OCR3C) ) |
Definition at line 285 of file timer16_drv.h.
| #define Timer16_set_capture | ( | value | ) |
Value:
((timer16_selected==TIMER16_1)? \ (ICR1H = ((U8)(value>>8)), ICR1L = ((U8)(value))) \ : \ (ICR3H = ((U8)(value>>8)), ICR3L = ((U8)(value))) )
Definition at line 287 of file timer16_drv.h.
| #define Timer16_get_capture_low | ( | ) | ((timer16_selected==TIMER16_1)? ((U16)(ICR1L)) : ((U16)(ICR3L)) ) |
| #define Timer16_get_capture_high | ( | ) | ((timer16_selected==TIMER16_1)? ((U16)(ICR1H)) : ((U16)(ICR3H)) ) |
| #define Timer16_set_mode_output_a | ( | conf | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1A = (TCCR1A & (~TIMER16_COMP_MODE_MASK_A)) | (conf << COM1A0)) \ : \ (TCCR3A = (TCCR3A & (~TIMER16_COMP_MODE_MASK_A)) | (conf << COM3A0)) )
Definition at line 294 of file timer16_drv.h.
| #define Timer16_set_mode_output_b | ( | conf | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1A = (TCCR1A & (~TIMER16_COMP_MODE_MASK_B)) | (conf << COM1B0)) \ : \ (TCCR3A = (TCCR3A & (~TIMER16_COMP_MODE_MASK_B)) | (conf << COM3B0)) )
Definition at line 298 of file timer16_drv.h.
| #define Timer16_set_mode_output_c | ( | conf | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1A = (TCCR1A & (~TIMER16_COMP_MODE_MASK_C)) | (conf << COM1C0)) \ : \ (TCCR3A = (TCCR3A & (~TIMER16_COMP_MODE_MASK_C)) | (conf << COM3C0)) )
Definition at line 302 of file timer16_drv.h.
| #define Timer16_get_mode_output_a | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1A & TIMER16_COMP_MODE_MASK_A) >> COM1A0) : ((TCCR3A & TIMER16_COMP_MODE_MASK_A) >> COM3A0 ) )
Definition at line 306 of file timer16_drv.h.
| #define Timer16_get_mode_output_b | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1A & TIMER16_COMP_MODE_MASK_B) >> COM1B0) : ((TCCR3A & TIMER16_COMP_MODE_MASK_B) >> COM3B0) )
Definition at line 308 of file timer16_drv.h.
| #define Timer16_get_mode_output_c | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1A & TIMER16_COMP_MODE_MASK_C) >> COM1C0) : ((TCCR3A & TIMER16_COMP_MODE_MASK_C) >> COM3C0) )
Definition at line 310 of file timer16_drv.h.
| #define Timer16_set_waveform_mode | ( | conf | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1A = (TCCR1A & (~TIMER16_WGM_RA_MASK)) | ((conf & 0x3) << WGM10) , \ TCCR1B = (TCCR1B & (~TIMER16_WGM_RB_MASK)) | ((conf >> 0x2) << WGM12) ) \ : \ (TCCR3A = (TCCR3A & (~TIMER16_WGM_RA_MASK)) | ((conf & 0x3) << WGM30) , \ TCCR3B = (TCCR3B & (~TIMER16_WGM_RB_MASK)) | ((conf >> 0x2) << WGM32) ) )
Definition at line 313 of file timer16_drv.h.
| #define Timer16_get_waveform_mode | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (((TCCR1A & TIMER16_WGM_RA_MASK) >> WGM10) | (((TCCR1B & TIMER16_WGM_RB_MASK) >> WGM12) << 0x2)) \ : \ (((TCCR3A & TIMER16_WGM_RA_MASK) >> WGM30) | (((TCCR3B & TIMER16_WGM_RB_MASK) >> WGM32) << 0x2)) )
Definition at line 319 of file timer16_drv.h.
| #define Timer16_set_clock | ( | value | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1B = (TCCR1B & (~TIMER16_CLK_MASK)) | (value << CS10)) \ : \ (TCCR3B = (TCCR3B & (~TIMER16_CLK_MASK)) | (value << CS30)) )
Definition at line 324 of file timer16_drv.h.
| #define Timer16_get_clock | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (((TCCR1B & TIMER16_CLK_MASK) >> CS10)) : (((TCCR3B & TIMER16_CLK_MASK) >> CS30)) )
Definition at line 329 of file timer16_drv.h.
| #define Timer16_set_input_filter | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1B |= (1<<ICNC1)) : ( TCCR3B |= (1<<ICNC3)) )
Definition at line 332 of file timer16_drv.h.
| #define Timer16_clear_input_filter | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1B &= ~(1<<ICNC1)) : ( TCCR3B &= ~(1<<ICNC3)) )
Definition at line 334 of file timer16_drv.h.
| #define Timer16_get_input_filter | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1B & (1<<ICNC1)) >> ICNC1) : ((TCCR3B & (1<<ICNC3)) >> ICNC3) )
Definition at line 336 of file timer16_drv.h.
| #define Timer16_set_input_rising_edge | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1B |= (1<<ICES1)) : (TCCR3B |= (1<<ICES3)) )
Definition at line 339 of file timer16_drv.h.
| #define Timer16_set_input_falling_edge | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1B &= ~(1<<ICES1)) : ( TCCR3B &= ~(1<<ICES3)) )
Definition at line 341 of file timer16_drv.h.
| #define Timer16_get_input_capture_edge | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1B & (1<<ICES1)) >> ICES1) : ((TCCR3B & (1<<ICES3)) >> ICES3) )
Definition at line 343 of file timer16_drv.h.
| #define Timer16_set_compare_force_a | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1C |= (1<<FOC1A)) : (TCCR3C |= (1<<FOC3A)) )
Definition at line 346 of file timer16_drv.h.
| #define Timer16_set_compare_force_b | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1C |= (1<<FOC1B)) : (TCCR3C |= (1<<FOC3B)) )
Definition at line 348 of file timer16_drv.h.
| #define Timer16_set_compare_force_c | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1C |= (1<<FOC1C)) : (TCCR3C |= (1<<FOC3C)) )
Definition at line 350 of file timer16_drv.h.
| #define Timer16_clear_compare_force_a | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1C &= ~(1<<FOC1A ) : (TCCR3C &= ~(1<<FOC3A)) )
Definition at line 352 of file timer16_drv.h.
| #define Timer16_clear_compare_force_b | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1C &= ~(1<<FOC1B)) : (TCCR3C &= ~(1<<FOC3B)) )
Definition at line 354 of file timer16_drv.h.
| #define Timer16_clear_compare_force_c | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TCCR1C &= ~(1<<FOC1C)) : (TCCR3C &= ~(1<<FOC3C)) )
Definition at line 356 of file timer16_drv.h.
| #define Timer16_get_compare_force_a | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1C & (1<<FOC1A)) >> FOC1A) : ((TCCR3C & (1<<FOC3A)) >> FOC3A) )
Definition at line 358 of file timer16_drv.h.
| #define Timer16_get_compare_force_b | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1C & (1<<FOC1B)) >> FOC1B) : ((TCCR3C & (1<<FOC3B)) >> FOC3B) )
Definition at line 360 of file timer16_drv.h.
| #define Timer16_get_compare_force_c | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TCCR1C & (1<<FOC1C)) >> FOC1C) : ((TCCR3C & (1<<FOC3C)) >> FOC3C) )
Definition at line 362 of file timer16_drv.h.
| #define Timer16_overflow_it_enable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 |= (1<<TOIE1)) : (TIMSK3 |= (1<<TOIE3)) )
Definition at line 365 of file timer16_drv.h.
| #define Timer16_overflow_it_disable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 &= ~(1<<TOIE1)) : (TIMSK3 &= ~(1<<TOIE3)) )
Definition at line 367 of file timer16_drv.h.
| #define Timer16_compare_a_it_enable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 |= (1<<OCIE1A)) : (TIMSK3 |= (1<<OCIE3A)) )
Definition at line 369 of file timer16_drv.h.
| #define Timer16_compare_a_it_disable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 &= ~(1<<OCIE1A)) : (TIMSK3 &= ~(1<<OCIE3A)) )
Definition at line 371 of file timer16_drv.h.
| #define Timer16_compare_b_it_enable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 |= (1<<OCIE1B)) : (TIMSK3 |= (1<<OCIE3B)) )
Definition at line 373 of file timer16_drv.h.
| #define Timer16_compare_b_it_disable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 &= ~(1<<OCIE1B)) : (TIMSK3 &= ~(1<<OCIE3B)) )
Definition at line 375 of file timer16_drv.h.
| #define Timer16_compare_c_it_enable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 |= (1<<OCIE1C)) : (TIMSK3 |= (1<<OCIE3C)) )
Definition at line 377 of file timer16_drv.h.
| #define Timer16_compare_c_it_disable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 &= ~(1<<OCIE1C)) : (TIMSK3 &= ~(1<<OCIE3C)) )
Definition at line 379 of file timer16_drv.h.
| #define Timer16_capture_it_enable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 |= (1<<ICIE1)) : (TIMSK3 |= (1<<ICIE3)) )
Definition at line 381 of file timer16_drv.h.
| #define Timer16_capture_it_disable | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIMSK1 &= ~(1<<ICIE1)) : (TIMSK3 &= ~(1<<ICIE3)) )
Definition at line 383 of file timer16_drv.h.
| #define Timer16_get_overflow_it_mask | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIMSK1 & (1<<TOIE1)) >> TOIE1) : ((TIMSK3 & (1<<TOIE3)) >> TOIE3) )
Definition at line 385 of file timer16_drv.h.
| #define Timer16_get_compare_a_it_mask | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIMSK1 & (1<<OCIE1A)) >> OCIE1A) : ((TIMSK3 & (1<<OCIE3A)) >> OCIE3A) )
Definition at line 387 of file timer16_drv.h.
| #define Timer16_get_compare_b_it_mask | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIMSK1 & (1<<OCIE1B)) >> OCIE1B) : ((TIMSK3 & (1<<OCIE3B)) >> OCIE3B) )
Definition at line 389 of file timer16_drv.h.
| #define Timer16_get_compare_c_it_mask | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIMSK1 & (1<<OCIE1C)) >> OCIE1C) : ((TIMSK3 & (1<<OCIE3C)) >> OCIE3C) )
Definition at line 391 of file timer16_drv.h.
| #define Timer16_get_capture_it_mask | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIMSK1 & (1<<ICIE1)) >> ICIE1) : ((TIMSK3 & (1<<ICIE3)) >> ICIE3) )
Definition at line 393 of file timer16_drv.h.
| #define Timer16_clear_overflow_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIFR1 |= (1<<TOV1)) : (TIFR3 |= (1<<TOV3)) )
Definition at line 396 of file timer16_drv.h.
| #define Timer16_clear_compare_a_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIFR1 |= (1<<OCF1A)) : (TIFR3 |= (1<<OCF3A)) )
Definition at line 398 of file timer16_drv.h.
Referenced by otg_timer_interrupt().
| #define Timer16_clear_compare_b_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIFR1 |= (1<<OCF1B)) : (TIFR3 |= (1<<OCF3B)) )
Definition at line 400 of file timer16_drv.h.
| #define Timer16_clear_compare_c_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIFR1 |= (1<<OCF1C)) : (TIFR3 |= (1<<OCF3C)) )
Definition at line 402 of file timer16_drv.h.
| #define Timer16_clear_capture_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ (TIFR1 |= (1<<ICF1)) : (TIFR3 |= (1<<ICF3)) )
Definition at line 404 of file timer16_drv.h.
| #define Timer16_get_overflow_it | ( | ) |
Value:
Definition at line 406 of file timer16_drv.h.
| #define Timer16_get_compare_a_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIFR1 & (1<<OCF1A)) >> OCF1A) : ((TIFR3 & (1<<OCF3A)) >> OCF3A) )
Definition at line 408 of file timer16_drv.h.
| #define Timer16_get_compare_b_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIFR1 & (1<<OCF1B)) >> OCF1B) : ((TIFR3 & (1<<OCF3B)) >> OCF3B) )
Definition at line 410 of file timer16_drv.h.
| #define Timer16_get_compare_c_it | ( | ) |
Value:
((timer16_selected==TIMER16_1)? \ ((TIFR1 & (1<<OCF1C)) >> OCF1C) : ((TIFR3 & (1<<OCF3C)) >> OCF3C) )
Definition at line 412 of file timer16_drv.h.
| #define Timer16_get_capture_it | ( | ) |
Value:
Definition at line 414 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_NORMAL (0) |
Definition at line 424 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_TOGGLE (1) |
Definition at line 425 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_CLEAR_OC (2) |
Definition at line 426 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_SET_OC (3) |
Definition at line 427 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_MASK_A (3<<COM1A0) |
Definition at line 428 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_MASK_B (3<<COM1B0) |
Definition at line 429 of file timer16_drv.h.
| #define TIMER16_COMP_MODE_MASK_C (3<<COM1C0) |
Definition at line 430 of file timer16_drv.h.
| #define TIMER16_WGM_NORMAL (0) |
Definition at line 432 of file timer16_drv.h.
| #define TIMER16_WGM_CTC_OCR (4) |
Definition at line 433 of file timer16_drv.h.
| #define TIMER16_WGM_CTC_ICR (12) |
Definition at line 434 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PC8 (1) |
Definition at line 435 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PC9 (2) |
Definition at line 436 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PC10 (3) |
Definition at line 437 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PC_ICR (10) |
Definition at line 438 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PC_OCR (11) |
Definition at line 439 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PFC_ICR (8) |
Definition at line 440 of file timer16_drv.h.
| #define TIMER16_WGM_PWM_PFC_OCR (9) |
Definition at line 441 of file timer16_drv.h.
| #define TIMER16_WGM_FAST_PWM8 (5) |
Definition at line 442 of file timer16_drv.h.
| #define TIMER16_WGM_FAST_PWM9 (6) |
Definition at line 443 of file timer16_drv.h.
| #define TIMER16_WGM_FAST_PWM10 (7) |
Definition at line 444 of file timer16_drv.h.
| #define TIMER16_WGM_FAST_PWM_ICR (14) |
Definition at line 445 of file timer16_drv.h.
| #define TIMER16_WGM_FAST_PWM_OCR (15) |
Definition at line 446 of file timer16_drv.h.
| #define TIMER16_WGM_RA_MASK (3<<WGM10) |
Definition at line 447 of file timer16_drv.h.
| #define TIMER16_WGM_RB_MASK (3<<WGM12) |
Definition at line 448 of file timer16_drv.h.
| #define TIMER16_NO_CLOCK (0) |
Definition at line 450 of file timer16_drv.h.
| #define TIMER16_CLKIO_BY_1 (1) |
Definition at line 451 of file timer16_drv.h.
| #define TIMER16_CLKIO_BY_8 (2) |
Definition at line 452 of file timer16_drv.h.
| #define TIMER16_CLKIO_BY_64 (3) |
Definition at line 453 of file timer16_drv.h.
| #define TIMER16_CLKIO_BY_256 (4) |
Definition at line 454 of file timer16_drv.h.
| #define TIMER16_CLKIO_BY_1024 (5) |
Definition at line 455 of file timer16_drv.h.
| #define TIMER16_EXT_CLOCK_FALLING_EDGE (6) |
Definition at line 456 of file timer16_drv.h.
| #define TIMER16_EXT_CLOCK_RISING_EDGE (7) |
Definition at line 457 of file timer16_drv.h.
| #define TIMER16_CLK_MASK (7<<CS10) |
Definition at line 458 of file timer16_drv.h.
| U16 timer16_get_counter | ( | void | ) |
This function READ the 16-bit TIMER counter.
Definition at line 43 of file timer16_drv.c.
References Timer16_get_counter_high, and Timer16_get_counter_low.
00044 { 00045 U16 u16_temp; 00046 00047 u16_temp = Timer16_get_counter_low(); 00048 u16_temp |= (Timer16_get_counter_high() << 8 ); 00049 00050 return u16_temp; 00051 }
| U16 timer16_get_capture | ( | void | ) |
This function READ the 16-bit TIMER capture register.
Definition at line 64 of file timer16_drv.c.
References Timer16_get_capture_high, and Timer16_get_capture_low.
00065 { 00066 U16 u16_temp; 00067 00068 u16_temp = Timer16_get_capture_low(); 00069 u16_temp |= (Timer16_get_capture_high() << 8 ); 00070 00071 return u16_temp; 00072 }
< ========================================= ------ Both TIMER16_1 & 3 are used ------ =========================================
Definition at line 57 of file otg_user_task.c.
Referenced by otg_timer_interrupt().
1.5.1-p1