libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the TIMER module More...
Modules | |
Timer Channel Number | |
Functions | |
void | timer_start (uint32_t timer) |
Start timer. More... | |
void | timer_stop (uint32_t timer) |
Stop timer. More... | |
void | timer_set_clock_prescaler (uint32_t timer, uint32_t prescaler) |
Clock division factor. More... | |
void | timer_set_top (uint32_t timer, uint32_t top) |
Start timer top value the timer reload after it reaches top value. More... | |
Defined Constants and Types for the TIMER module
LGPL License Terms libopencm3 License
#define TIMER0 TIMER0_BASE |
Definition at line 461 of file timer_common.h.
#define TIMER0_CC0_CCV TIMER_CC0_CCV(TIMER0) |
Definition at line 475 of file timer_common.h.
#define TIMER0_CC0_CCVB TIMER_CC0_CCVB(TIMER0) |
Definition at line 477 of file timer_common.h.
#define TIMER0_CC0_CCVP TIMER_CC0_CCVP(TIMER0) |
Definition at line 476 of file timer_common.h.
#define TIMER0_CC0_CTRL TIMER_CC0_CTRL(TIMER0) |
Definition at line 474 of file timer_common.h.
#define TIMER0_CC1_CCV TIMER_CC1_CCV(TIMER0) |
Definition at line 480 of file timer_common.h.
#define TIMER0_CC1_CCVB TIMER_CC1_CCVB(TIMER0) |
Definition at line 482 of file timer_common.h.
#define TIMER0_CC1_CCVP TIMER_CC1_CCVP(TIMER0) |
Definition at line 481 of file timer_common.h.
#define TIMER0_CC1_CTRL TIMER_CC1_CTRL(TIMER0) |
Definition at line 479 of file timer_common.h.
#define TIMER0_CC2_CCV TIMER_CC2_CCV(TIMER0) |
Definition at line 485 of file timer_common.h.
#define TIMER0_CC2_CCVB TIMER_CC2_CCVB(TIMER0) |
Definition at line 487 of file timer_common.h.
#define TIMER0_CC2_CCVP TIMER_CC2_CCVP(TIMER0) |
Definition at line 486 of file timer_common.h.
#define TIMER0_CC2_CTRL TIMER_CC2_CTRL(TIMER0) |
Definition at line 484 of file timer_common.h.
Definition at line 463 of file timer_common.h.
Definition at line 471 of file timer_common.h.
#define TIMER0_CTRL TIMER_CTRL(TIMER0) |
Definition at line 462 of file timer_common.h.
#define TIMER0_DTCTRL TIMER_DTCTRL(TIMER0) |
Definition at line 489 of file timer_common.h.
#define TIMER0_DTFAULT TIMER_DTFAULT(TIMER0) |
Definition at line 493 of file timer_common.h.
#define TIMER0_DTFAULTC TIMER_DTFAULTC(TIMER0) |
Definition at line 494 of file timer_common.h.
#define TIMER0_DTFC TIMER_DTFC(TIMER0) |
Definition at line 491 of file timer_common.h.
#define TIMER0_DTLOCK TIMER_DTLOCK(TIMER0) |
Definition at line 495 of file timer_common.h.
#define TIMER0_DTOGEN TIMER_DTOGEN(TIMER0) |
Definition at line 492 of file timer_common.h.
#define TIMER0_DTTIME TIMER_DTTIME(TIMER0) |
Definition at line 490 of file timer_common.h.
Definition at line 465 of file timer_common.h.
Definition at line 466 of file timer_common.h.
Definition at line 468 of file timer_common.h.
Definition at line 467 of file timer_common.h.
#define TIMER0_ROUTE TIMER_ROUTE(TIMER0) |
Definition at line 472 of file timer_common.h.
#define TIMER0_STATUS TIMER_STATUS(TIMER0) |
Definition at line 464 of file timer_common.h.
Definition at line 469 of file timer_common.h.
#define TIMER0_TOPB TIMER_TOPB(TIMER0) |
Definition at line 470 of file timer_common.h.
#define TIMER1 TIMER1_BASE |
Definition at line 498 of file timer_common.h.
#define TIMER1_CC0_CCV TIMER_CC0_CCV(TIMER1) |
Definition at line 512 of file timer_common.h.
#define TIMER1_CC0_CCVB TIMER_CC0_CCVB(TIMER1) |
Definition at line 514 of file timer_common.h.
#define TIMER1_CC0_CCVP TIMER_CC0_CCVP(TIMER1) |
Definition at line 513 of file timer_common.h.
#define TIMER1_CC0_CTRL TIMER_CC0_CTRL(TIMER1) |
Definition at line 511 of file timer_common.h.
#define TIMER1_CC1_CCV TIMER_CC1_CCV(TIMER1) |
Definition at line 517 of file timer_common.h.
#define TIMER1_CC1_CCVB TIMER_CC1_CCVB(TIMER1) |
Definition at line 519 of file timer_common.h.
#define TIMER1_CC1_CCVP TIMER_CC1_CCVP(TIMER1) |
Definition at line 518 of file timer_common.h.
#define TIMER1_CC1_CTRL TIMER_CC1_CTRL(TIMER1) |
Definition at line 516 of file timer_common.h.
#define TIMER1_CC2_CCV TIMER_CC2_CCV(TIMER1) |
Definition at line 522 of file timer_common.h.
#define TIMER1_CC2_CCVB TIMER_CC2_CCVB(TIMER1) |
Definition at line 524 of file timer_common.h.
#define TIMER1_CC2_CCVP TIMER_CC2_CCVP(TIMER1) |
Definition at line 523 of file timer_common.h.
#define TIMER1_CC2_CTRL TIMER_CC2_CTRL(TIMER1) |
Definition at line 521 of file timer_common.h.
Definition at line 500 of file timer_common.h.
Definition at line 508 of file timer_common.h.
#define TIMER1_CTRL TIMER_CTRL(TIMER1) |
Definition at line 499 of file timer_common.h.
Definition at line 502 of file timer_common.h.
Definition at line 503 of file timer_common.h.
Definition at line 505 of file timer_common.h.
Definition at line 504 of file timer_common.h.
#define TIMER1_ROUTE TIMER_ROUTE(TIMER1) |
Definition at line 509 of file timer_common.h.
#define TIMER1_STATUS TIMER_STATUS(TIMER1) |
Definition at line 501 of file timer_common.h.
Definition at line 506 of file timer_common.h.
#define TIMER1_TOPB TIMER_TOPB(TIMER1) |
Definition at line 507 of file timer_common.h.
#define TIMER2 TIMER2_BASE |
Definition at line 527 of file timer_common.h.
#define TIMER2_CC0_CCV TIMER_CC0_CCV(TIMER2) |
Definition at line 541 of file timer_common.h.
#define TIMER2_CC0_CCVB TIMER_CC0_CCVB(TIMER2) |
Definition at line 543 of file timer_common.h.
#define TIMER2_CC0_CCVP TIMER_CC0_CCVP(TIMER2) |
Definition at line 542 of file timer_common.h.
#define TIMER2_CC0_CTRL TIMER_CC0_CTRL(TIMER2) |
Definition at line 540 of file timer_common.h.
#define TIMER2_CC1_CCV TIMER_CC1_CCV(TIMER2) |
Definition at line 546 of file timer_common.h.
#define TIMER2_CC1_CCVB TIMER_CC1_CCVB(TIMER2) |
Definition at line 548 of file timer_common.h.
#define TIMER2_CC1_CCVP TIMER_CC1_CCVP(TIMER2) |
Definition at line 547 of file timer_common.h.
#define TIMER2_CC1_CTRL TIMER_CC1_CTRL(TIMER2) |
Definition at line 545 of file timer_common.h.
#define TIMER2_CC2_CCV TIMER_CC2_CCV(TIMER2) |
Definition at line 551 of file timer_common.h.
#define TIMER2_CC2_CCVB TIMER_CC2_CCVB(TIMER2) |
Definition at line 553 of file timer_common.h.
#define TIMER2_CC2_CCVP TIMER_CC2_CCVP(TIMER2) |
Definition at line 552 of file timer_common.h.
#define TIMER2_CC2_CTRL TIMER_CC2_CTRL(TIMER2) |
Definition at line 550 of file timer_common.h.
Definition at line 529 of file timer_common.h.
Definition at line 537 of file timer_common.h.
#define TIMER2_CTRL TIMER_CTRL(TIMER2) |
Definition at line 528 of file timer_common.h.
Definition at line 531 of file timer_common.h.
Definition at line 532 of file timer_common.h.
Definition at line 534 of file timer_common.h.
Definition at line 533 of file timer_common.h.
#define TIMER2_ROUTE TIMER_ROUTE(TIMER2) |
Definition at line 538 of file timer_common.h.
#define TIMER2_STATUS TIMER_STATUS(TIMER2) |
Definition at line 530 of file timer_common.h.
Definition at line 535 of file timer_common.h.
#define TIMER2_TOPB TIMER_TOPB(TIMER2) |
Definition at line 536 of file timer_common.h.
#define TIMER3 TIMER3_BASE |
Definition at line 556 of file timer_common.h.
#define TIMER3_CC0_CCV TIMER_CC0_CCV(TIMER3) |
Definition at line 570 of file timer_common.h.
#define TIMER3_CC0_CCVB TIMER_CC0_CCVB(TIMER3) |
Definition at line 572 of file timer_common.h.
#define TIMER3_CC0_CCVP TIMER_CC0_CCVP(TIMER3) |
Definition at line 571 of file timer_common.h.
#define TIMER3_CC0_CTRL TIMER_CC0_CTRL(TIMER3) |
Definition at line 569 of file timer_common.h.
#define TIMER3_CC1_CCV TIMER_CC1_CCV(TIMER3) |
Definition at line 575 of file timer_common.h.
#define TIMER3_CC1_CCVB TIMER_CC1_CCVB(TIMER3) |
Definition at line 577 of file timer_common.h.
#define TIMER3_CC1_CCVP TIMER_CC1_CCVP(TIMER3) |
Definition at line 576 of file timer_common.h.
#define TIMER3_CC1_CTRL TIMER_CC1_CTRL(TIMER3) |
Definition at line 574 of file timer_common.h.
#define TIMER3_CC2_CCV TIMER_CC2_CCV(TIMER3) |
Definition at line 580 of file timer_common.h.
#define TIMER3_CC2_CCVB TIMER_CC2_CCVB(TIMER3) |
Definition at line 582 of file timer_common.h.
#define TIMER3_CC2_CCVP TIMER_CC2_CCVP(TIMER3) |
Definition at line 581 of file timer_common.h.
#define TIMER3_CC2_CTRL TIMER_CC2_CTRL(TIMER3) |
Definition at line 579 of file timer_common.h.
Definition at line 558 of file timer_common.h.
Definition at line 566 of file timer_common.h.
#define TIMER3_CTRL TIMER_CTRL(TIMER3) |
Definition at line 557 of file timer_common.h.
Definition at line 560 of file timer_common.h.
Definition at line 561 of file timer_common.h.
Definition at line 563 of file timer_common.h.
Definition at line 562 of file timer_common.h.
#define TIMER3_ROUTE TIMER_ROUTE(TIMER3) |
Definition at line 567 of file timer_common.h.
#define TIMER3_STATUS TIMER_STATUS(TIMER3) |
Definition at line 559 of file timer_common.h.
Definition at line 564 of file timer_common.h.
#define TIMER3_TOPB TIMER_TOPB(TIMER3) |
Definition at line 565 of file timer_common.h.
#define TIMER_CC0_CCV | ( | base | ) | TIMER_CCx_CCV(base, 0) |
Definition at line 47 of file timer_common.h.
#define TIMER_CC0_CCVB | ( | base | ) | TIMER_CCx_CCVB(base, 0) |
Definition at line 49 of file timer_common.h.
#define TIMER_CC0_CCVP | ( | base | ) | TIMER_CCx_CCVP(base, 0) |
Definition at line 48 of file timer_common.h.
#define TIMER_CC0_CTRL | ( | base | ) | TIMER_CCx_CTRL(base, 0) |
Definition at line 46 of file timer_common.h.
#define TIMER_CC1_CCV | ( | base | ) | TIMER_CCx_CCV(base, 1) |
Definition at line 52 of file timer_common.h.
#define TIMER_CC1_CCVB | ( | base | ) | TIMER_CCx_CCVB(base, 1) |
Definition at line 54 of file timer_common.h.
#define TIMER_CC1_CCVP | ( | base | ) | TIMER_CCx_CCVP(base, 1) |
Definition at line 53 of file timer_common.h.
#define TIMER_CC1_CTRL | ( | base | ) | TIMER_CCx_CTRL(base, 1) |
Definition at line 51 of file timer_common.h.
#define TIMER_CC2_CCV | ( | base | ) | TIMER_CCx_CCV(base, 2) |
Definition at line 57 of file timer_common.h.
#define TIMER_CC2_CCVB | ( | base | ) | TIMER_CCx_CCVB(base, 2) |
Definition at line 59 of file timer_common.h.
#define TIMER_CC2_CCVP | ( | base | ) | TIMER_CCx_CCVP(base, 2) |
Definition at line 58 of file timer_common.h.
#define TIMER_CC2_CTRL | ( | base | ) | TIMER_CCx_CTRL(base, 2) |
Definition at line 56 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA | ( | v | ) | (((v) << TIMER_CC_CTRL_CMOA_SHIFT) & TIMER_CC_CTRL_CMOA_MASK) |
Definition at line 310 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA_CLEAR 2 |
Definition at line 314 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA_MASK (0x3 << TIMER_CC_CTRL_CMOA_SHIFT) |
Definition at line 309 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA_NONE 0 |
Definition at line 312 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA_SET 3 |
Definition at line 315 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA_SHIFT (8) |
Definition at line 308 of file timer_common.h.
#define TIMER_CC_CTRL_CMOA_TOGGLE 1 |
Definition at line 313 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA | ( | v | ) | (((v) << TIMER_CC_CTRL_COFOA_SHIFT) & TIMER_CC_CTRL_COFOA_MASK) |
Definition at line 301 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA_CLEAR 2 |
Definition at line 305 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA_MASK (0x3 << TIMER_CC_CTRL_COFOA_SHIFT) |
Definition at line 300 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA_NONE 0 |
Definition at line 303 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA_SET 3 |
Definition at line 306 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA_SHIFT (10) |
Definition at line 299 of file timer_common.h.
#define TIMER_CC_CTRL_COFOA_TOGGLE 1 |
Definition at line 304 of file timer_common.h.
#define TIMER_CC_CTRL_COIST (1 << 4) |
Definition at line 317 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA | ( | v | ) | (((v) << TIMER_CC_CTRL_CUFOA_SHIFT) & TIMER_CC_CTRL_CUFOA_MASK) |
Definition at line 292 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA_CLEAR 2 |
Definition at line 296 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA_MASK (0x3 << TIMER_CC_CTRL_CUFOA_SHIFT) |
Definition at line 291 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA_NONE 0 |
Definition at line 294 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA_SET 3 |
Definition at line 297 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA_SHIFT (12) |
Definition at line 290 of file timer_common.h.
#define TIMER_CC_CTRL_CUFOA_TOGGLE 1 |
Definition at line 295 of file timer_common.h.
#define TIMER_CC_CTRL_FILT (1 << 21) |
Definition at line 268 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE | ( | v | ) | (((v) << TIMER_CC_CTRL_ICEDGE_SHIFT) & TIMER_CC_CTRL_ICEDGE_MASK) |
Definition at line 261 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE_BOTH 2 |
Definition at line 265 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE_FALLING 1 |
Definition at line 264 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE_MASK (0x3 << TIMER_CC_CTRL_ICEDGE_SHIFT) |
Definition at line 260 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE_NONE 3 |
Definition at line 266 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE_RISING 0 |
Definition at line 263 of file timer_common.h.
#define TIMER_CC_CTRL_ICEDGE_SHIFT (24) |
Definition at line 259 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL | ( | v | ) | (((v) << TIMER_CC_CTRL_ICEVCTRL_SHIFT) & TIMER_CC_CTRL_ICEVCTRL_MASK) |
Definition at line 247 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_EVERY_EDGE TIMER_CC_CTRL_ICEVCTRL_EVERYEDGE |
Definition at line 254 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_EVERY_SECOND_EDGE TIMER_CC_CTRL_ICEVCTRL_EVERYSECONDEDGE |
Definition at line 256 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_EVERYEDGE 0 |
Definition at line 249 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_EVERYSECONDEDGE 1 |
Definition at line 250 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_FALLING 3 |
Definition at line 252 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_MASK (0x3 << TIMER_CC_CTRL_ICEVCTRL_SHIFT) |
Definition at line 246 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_RISING 2 |
Definition at line 251 of file timer_common.h.
#define TIMER_CC_CTRL_ICEVCTRL_SHIFT (26) |
Definition at line 245 of file timer_common.h.
#define TIMER_CC_CTRL_INSEL (1 << 21) |
Definition at line 269 of file timer_common.h.
#define TIMER_CC_CTRL_MODE | ( | v | ) | (((v) << TIMER_CC_CTRL_MODE_SHIFT) & TIMER_CC_CTRL_MODE_MASK) |
Definition at line 322 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_INPUT_CAPTURE TIMER_CC_CTRL_MODE_INPUTCAPTURE |
Definition at line 329 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_INPUTCAPTURE 1 |
Definition at line 325 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_MASK (0x3 << TIMER_CC_CTRL_MODE_SHIFT) |
Definition at line 321 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_OFF 0 |
Definition at line 324 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_OUTPUT_CAPTURE TIMER_CC_CTRL_MODE_OUTPUTCAPTURE |
Definition at line 331 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_OUTPUTCOMPARE 2 |
Definition at line 326 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_PWM 3 |
Definition at line 327 of file timer_common.h.
#define TIMER_CC_CTRL_MODE_SHIFT (0) |
Definition at line 320 of file timer_common.h.
#define TIMER_CC_CTRL_OUTINV (1 << 2) |
Definition at line 318 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL | ( | v | ) | (((v) << TIMER_CC_CTRL_PRSSEL_SHIFT) & TIMER_CC_CTRL_PRSSEL_MASK) |
Definition at line 274 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_MASK (0xF << TIMER_CC_CTRL_PRSSEL_SHIFT) |
Definition at line 273 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH0 0 |
Definition at line 277 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH1 1 |
Definition at line 278 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH10 10 |
Definition at line 287 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH11 11 |
Definition at line 288 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH2 2 |
Definition at line 279 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH3 3 |
Definition at line 280 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH4 4 |
Definition at line 281 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH5 5 |
Definition at line 282 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH6 6 |
Definition at line 283 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH7 7 |
Definition at line 284 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH8 8 |
Definition at line 285 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCH9 9 |
Definition at line 286 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_PRSCHx | ( | x | ) | TIMER_CC_CTRL_PRSSEL(x) |
Definition at line 276 of file timer_common.h.
#define TIMER_CC_CTRL_PRSSEL_SHIFT (16) |
Definition at line 272 of file timer_common.h.
#define TIMER_CCx_CCV | ( | base, | |
x | |||
) | MMIO32((base) + 0x034 + (0x10 * (x))) |
Definition at line 42 of file timer_common.h.
#define TIMER_CCx_CCVB | ( | base, | |
x | |||
) | MMIO32((base) + 0x03C + (0x10 * (x))) |
Definition at line 44 of file timer_common.h.
#define TIMER_CCx_CCVP | ( | base, | |
x | |||
) | MMIO32((base) + 0x038 + (0x10 * (x))) |
Definition at line 43 of file timer_common.h.
#define TIMER_CCx_CTRL | ( | base, | |
x | |||
) | MMIO32((base) + 0x030 + (0x10 * (x))) |
Definition at line 41 of file timer_common.h.
#define TIMER_CMD | ( | base | ) | MMIO32((base) + 0x004) |
Definition at line 30 of file timer_common.h.
#define TIMER_CMD_START (1 << 0) |
Definition at line 141 of file timer_common.h.
#define TIMER_CMD_STOP (1 << 1) |
Definition at line 140 of file timer_common.h.
#define TIMER_CNT | ( | base | ) | MMIO32((base) + 0x024) |
Definition at line 38 of file timer_common.h.
#define TIMER_CTRL | ( | base | ) | MMIO32((base) + 0x000) |
Definition at line 29 of file timer_common.h.
#define TIMER_CTRL_ATI (1 << 28) |
Definition at line 71 of file timer_common.h.
#define TIMER_CTRL_CLKSEL | ( | v | ) | (((v) << TIMER_CTRL_CLKSEL_SHIFT) & TIMER_CTRL_CLKSEL_MASK) |
Definition at line 92 of file timer_common.h.
#define TIMER_CTRL_CLKSEL_CC1 1 |
Definition at line 95 of file timer_common.h.
#define TIMER_CTRL_CLKSEL_MASK (0x3 << TIMER_CTRL_CLKSEL_SHIFT) |
Definition at line 91 of file timer_common.h.
#define TIMER_CTRL_CLKSEL_PRESCHFPERCLK 0 |
Definition at line 94 of file timer_common.h.
#define TIMER_CTRL_CLKSEL_SHIFT (16) |
Definition at line 90 of file timer_common.h.
#define TIMER_CTRL_CLKSEL_TIMEROUF 2 |
Definition at line 96 of file timer_common.h.
#define TIMER_CTRL_DEBUGRUN (1 << 6) |
Definition at line 125 of file timer_common.h.
#define TIMER_CTRL_DMACLRACT (1 << 7) |
Definition at line 124 of file timer_common.h.
#define TIMER_CTRL_FALLA | ( | v | ) | (((v) << TIMER_CTRL_FALLA_SHIFT) & TIMER_CTRL_FALLA_MASK) |
Definition at line 102 of file timer_common.h.
#define TIMER_CTRL_FALLA_MASK (0x3 << TIMER_CTRL_FALLA_SHIFT) |
Definition at line 101 of file timer_common.h.
#define TIMER_CTRL_FALLA_NONE 0 |
Definition at line 104 of file timer_common.h.
#define TIMER_CTRL_FALLA_RELOADSTART 3 |
Definition at line 107 of file timer_common.h.
#define TIMER_CTRL_FALLA_SHIFT (10) |
Definition at line 100 of file timer_common.h.
#define TIMER_CTRL_FALLA_START 1 |
Definition at line 105 of file timer_common.h.
#define TIMER_CTRL_FALLA_STOP 2 |
Definition at line 106 of file timer_common.h.
#define TIMER_CTRL_MODE | ( | v | ) | (((v) << TIMER_CTRL_MODE_SHIFT) & TIMER_CTRL_MODE_MASK) |
Definition at line 132 of file timer_common.h.
#define TIMER_CTRL_MODE_DOWN 1 |
Definition at line 135 of file timer_common.h.
#define TIMER_CTRL_MODE_MASK (0x3 << TIMER_CTRL_MODE_SHIFT) |
Definition at line 131 of file timer_common.h.
#define TIMER_CTRL_MODE_QDEC 3 |
Definition at line 137 of file timer_common.h.
#define TIMER_CTRL_MODE_SHIFT (0) |
Definition at line 130 of file timer_common.h.
#define TIMER_CTRL_MODE_UP 0 |
Definition at line 134 of file timer_common.h.
#define TIMER_CTRL_MODE_UPDOWN 2 |
Definition at line 136 of file timer_common.h.
#define TIMER_CTRL_OSMEN (1 << 4) |
Definition at line 127 of file timer_common.h.
#define TIMER_CTRL_PRESC | ( | v | ) | (((v) << TIMER_CTRL_PRESC_SHIFT) & TIMER_CTRL_PRESC_MASK) |
Definition at line 75 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV1 0 |
Definition at line 77 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV1024 10 |
Definition at line 87 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV128 7 |
Definition at line 84 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV16 4 |
Definition at line 81 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV2 1 |
Definition at line 78 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV256 8 |
Definition at line 85 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV32 5 |
Definition at line 82 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV4 2 |
Definition at line 79 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV512 9 |
Definition at line 86 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV64 6 |
Definition at line 83 of file timer_common.h.
#define TIMER_CTRL_PRESC_DIV8 3 |
Definition at line 80 of file timer_common.h.
#define TIMER_CTRL_PRESC_MASK (0xF << TIMER_CTRL_PRESC_SHIFT) |
Definition at line 74 of file timer_common.h.
#define TIMER_CTRL_PRESC_NODIV TIMER_CTRL_PRESC_DIV1 |
Definition at line 88 of file timer_common.h.
#define TIMER_CTRL_PRESC_SHIFT (24) |
Definition at line 73 of file timer_common.h.
#define TIMER_CTRL_QDM (1 << 5) |
Definition at line 126 of file timer_common.h.
#define TIMER_CTRL_RISEA | ( | v | ) | (((v) << TIMER_CTRL_RISEA_SHIFT) & TIMER_CTRL_RISEA_MASK) |
Definition at line 111 of file timer_common.h.
#define TIMER_CTRL_RISEA_MASK (0x3 << TIMER_CTRL_RISEA_SHIFT) |
Definition at line 110 of file timer_common.h.
#define TIMER_CTRL_RISEA_NONE 0 |
Definition at line 113 of file timer_common.h.
#define TIMER_CTRL_RISEA_RELOADSTART 3 |
Definition at line 116 of file timer_common.h.
#define TIMER_CTRL_RISEA_SHIFT (8) |
Definition at line 109 of file timer_common.h.
#define TIMER_CTRL_RISEA_START 1 |
Definition at line 114 of file timer_common.h.
#define TIMER_CTRL_RISEA_STOP 2 |
Definition at line 115 of file timer_common.h.
#define TIMER_CTRL_RSSCOIST (1 << 29) |
Definition at line 70 of file timer_common.h.
#define TIMER_CTRL_SYNC (1 << 3) |
Definition at line 128 of file timer_common.h.
#define TIMER_CTRL_X2CNT (1 << 13) |
Definition at line 98 of file timer_common.h.
#define TIMER_DTCTRL | ( | base | ) | MMIO32((base) + 0x070) |
Definition at line 61 of file timer_common.h.
#define TIMER_DTCTRL_DTCINV (1 << 3) |
Definition at line 355 of file timer_common.h.
#define TIMER_DTCTRL_DTDAS (1 << 1) |
Definition at line 357 of file timer_common.h.
#define TIMER_DTCTRL_DTEN (1 << 0) |
Definition at line 358 of file timer_common.h.
#define TIMER_DTCTRL_DTIPOL (1 << 2) |
Definition at line 356 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSEN (1 << 24) |
Definition at line 335 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL | ( | v | ) | (((v) << TIMER_DTCTRL_DTPRSSEL_SHIFT) & TIMER_DTCTRL_DTPRSSEL_MASK) |
Definition at line 339 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_MASK (0xF << TIMER_DTCTRL_DTPRSSEL_SHIFT) |
Definition at line 338 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH0 0 |
Definition at line 342 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH1 1 |
Definition at line 343 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH10 10 |
Definition at line 352 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH11 11 |
Definition at line 353 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH2 2 |
Definition at line 344 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH3 3 |
Definition at line 345 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH4 4 |
Definition at line 346 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH5 5 |
Definition at line 347 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH6 6 |
Definition at line 348 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH7 7 |
Definition at line 349 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH8 8 |
Definition at line 350 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCH9 9 |
Definition at line 351 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_PRSCHx | ( | x | ) | TIMER_DTCTRL_DTPRSSEL(x) |
Definition at line 341 of file timer_common.h.
#define TIMER_DTCTRL_DTPRSSEL_SHIFT (4) |
Definition at line 337 of file timer_common.h.
#define TIMER_DTFAULT | ( | base | ) | MMIO32((base) + 0x080) |
Definition at line 65 of file timer_common.h.
#define TIMER_DTFAULT_DTDBGF (1 << 2) |
Definition at line 442 of file timer_common.h.
#define TIMER_DTFAULT_DTLOCKUPF (1 << 3) |
Definition at line 441 of file timer_common.h.
#define TIMER_DTFAULT_DTPRS0F (1 << 0) |
Definition at line 444 of file timer_common.h.
#define TIMER_DTFAULT_DTPRS1F (1 << 1) |
Definition at line 443 of file timer_common.h.
#define TIMER_DTFAULTC | ( | base | ) | MMIO32((base) + 0x084) |
Definition at line 66 of file timer_common.h.
#define TIMER_DTFAULTC_DTDBGFC (1 << 2) |
Definition at line 448 of file timer_common.h.
#define TIMER_DTFAULTC_DTPRS0FC (1 << 0) |
Definition at line 450 of file timer_common.h.
#define TIMER_DTFAULTC_DTPRS1FC (1 << 1) |
Definition at line 449 of file timer_common.h.
#define TIMER_DTFAULTC_TLOCKUPFC (1 << 3) |
Definition at line 447 of file timer_common.h.
#define TIMER_DTFC | ( | base | ) | MMIO32((base) + 0x078) |
Definition at line 63 of file timer_common.h.
#define TIMER_DTFC_DTDBGFEN (1 << 26) |
Definition at line 391 of file timer_common.h.
#define TIMER_DTFC_DTFA | ( | v | ) | (((v) << TIMER_DTFC_DTFA_SHIFT) & TIMER_DTFC_DTFA_MASK) |
Definition at line 397 of file timer_common.h.
#define TIMER_DTFC_DTFA_CLEAR 2 |
Definition at line 401 of file timer_common.h.
#define TIMER_DTFC_DTFA_INACTIVE 1 |
Definition at line 400 of file timer_common.h.
#define TIMER_DTFC_DTFA_MASK (0x3 << TIMER_DTFC_DTFA_SHIFT) |
Definition at line 396 of file timer_common.h.
#define TIMER_DTFC_DTFA_NONE 0 |
Definition at line 399 of file timer_common.h.
#define TIMER_DTFC_DTFA_SHIFT (16) |
Definition at line 395 of file timer_common.h.
#define TIMER_DTFC_DTFA_TRISTATE 3 |
Definition at line 402 of file timer_common.h.
#define TIMER_DTFC_DTLOCKUPFEN (1 << 27) |
Definition at line 390 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FEN (1 << 24) |
Definition at line 393 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL | ( | v | ) | (((v) << TIMER_DTFC_DTPRS0FSEL_SHIFT) & TIMER_DTFC_DTPRS0FSEL_MASK) |
Definition at line 420 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_MASK (0x3 << TIMER_DTFC_DTPRS0FSEL_SHIFT) |
Definition at line 419 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH0 0 |
Definition at line 423 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH1 1 |
Definition at line 424 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH2 2 |
Definition at line 425 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH3 3 |
Definition at line 426 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH4 4 |
Definition at line 427 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH5 5 |
Definition at line 428 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH6 6 |
Definition at line 429 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCH7 7 |
Definition at line 430 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_PRSCHx | ( | x | ) | TIMER_DTFC_DTPRS0FSEL(x) |
Definition at line 422 of file timer_common.h.
#define TIMER_DTFC_DTPRS0FSEL_SHIFT (8) |
Definition at line 418 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FEN (1 << 25) |
Definition at line 392 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL | ( | v | ) | (((v) << TIMER_DTFC_DTPRS1FSEL_SHIFT) & TIMER_DTFC_DTPRS1FSEL_MASK) |
Definition at line 406 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_MASK (0x3 << TIMER_DTFC_DTPRS1FSEL_SHIFT) |
Definition at line 405 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH0 0 |
Definition at line 409 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH1 1 |
Definition at line 410 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH2 2 |
Definition at line 411 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH3 3 |
Definition at line 412 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH4 4 |
Definition at line 413 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH5 5 |
Definition at line 414 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH6 6 |
Definition at line 415 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCH7 7 |
Definition at line 416 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_PRSCHx | ( | x | ) | TIMER_DTFC_DTPRS1FSEL(x) |
Definition at line 408 of file timer_common.h.
#define TIMER_DTFC_DTPRS1FSEL_SHIFT (8) |
Definition at line 404 of file timer_common.h.
#define TIMER_DTLOCK | ( | base | ) | MMIO32((base) + 0x088) |
Definition at line 67 of file timer_common.h.
#define TIMER_DTLOCK_LOCKKEY_LOCK (0x0000 << TIMER_DTLOCK_LOCKKEY_SHIFT) |
Definition at line 457 of file timer_common.h.
#define TIMER_DTLOCK_LOCKKEY_LOCKED (0x0001 << TIMER_DTLOCK_LOCKKEY_SHIFT) |
Definition at line 456 of file timer_common.h.
#define TIMER_DTLOCK_LOCKKEY_MASK (0xFFFF << TIMER_DTLOCK_LOCKKEY_SHIFT) |
Definition at line 454 of file timer_common.h.
#define TIMER_DTLOCK_LOCKKEY_SHIFT (0) |
Definition at line 453 of file timer_common.h.
#define TIMER_DTLOCK_LOCKKEY_UNLOCK (0xCE80 << TIMER_DTLOCK_LOCKKEY_SHIFT) |
Definition at line 458 of file timer_common.h.
#define TIMER_DTLOCK_LOCKKEY_UNLOCKED (0x0000 << TIMER_DTLOCK_LOCKKEY_SHIFT) |
Definition at line 455 of file timer_common.h.
#define TIMER_DTOGEN | ( | base | ) | MMIO32((base) + 0x07C) |
Definition at line 64 of file timer_common.h.
#define TIMER_DTOGEN_DTOGCC0EN (1 << 0) |
Definition at line 438 of file timer_common.h.
#define TIMER_DTOGEN_DTOGCC1EN (1 << 1) |
Definition at line 437 of file timer_common.h.
#define TIMER_DTOGEN_DTOGCC2EN (1 << 2) |
Definition at line 436 of file timer_common.h.
#define TIMER_DTOGEN_DTOGCDTI0EN (1 << 3) |
Definition at line 435 of file timer_common.h.
#define TIMER_DTOGEN_DTOGCDTI1EN (1 << 4) |
Definition at line 434 of file timer_common.h.
#define TIMER_DTOGEN_DTOGCDTI2EN (1 << 5) |
Definition at line 433 of file timer_common.h.
#define TIMER_DTTIME | ( | base | ) | MMIO32((base) + 0x074) |
Definition at line 62 of file timer_common.h.
#define TIMER_DTTIME_DTFALLT | ( | v | ) | (((v) << TIMER_DTTIME_DTFALLT_SHIFT) & TIMER_DTTIME_DTFALLT_MASK) |
Definition at line 363 of file timer_common.h.
#define TIMER_DTTIME_DTFALLT_MASK (0x3F << TIMER_DTTIME_DTFALLT_SHIFT) |
Definition at line 362 of file timer_common.h.
#define TIMER_DTTIME_DTFALLT_SHIFT (16) |
Definition at line 361 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC | ( | v | ) | (((v) << TIMER_DTTIME_DTPRESC_SHIFT) & TIMER_DTTIME_DTPRESC_MASK) |
Definition at line 374 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV1 0 |
Definition at line 376 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV1024 10 |
Definition at line 386 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV128 7 |
Definition at line 383 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV16 4 |
Definition at line 380 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV2 1 |
Definition at line 377 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV256 8 |
Definition at line 384 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV32 5 |
Definition at line 381 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV4 2 |
Definition at line 378 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV512 8 |
Definition at line 385 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV64 6 |
Definition at line 382 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_DIV8 3 |
Definition at line 379 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_MASK (0xF << TIMER_DTTIME_DTPRESC_SHIFT) |
Definition at line 373 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_NODIV TIMER_DTTIME_DTPRESC_DIV1 |
Definition at line 387 of file timer_common.h.
#define TIMER_DTTIME_DTPRESC_SHIFT (0) |
Definition at line 372 of file timer_common.h.
#define TIMER_DTTIME_DTRISET | ( | v | ) | (((v) << TIMER_DTTIME_DTRISET_SHIFT) & TIMER_DTTIME_DTRISET_MASK) |
Definition at line 368 of file timer_common.h.
#define TIMER_DTTIME_DTRISET_MASK (0x3F << TIMER_DTTIME_DTRISET_SHIFT) |
Definition at line 367 of file timer_common.h.
#define TIMER_DTTIME_DTRISET_SHIFT (8) |
Definition at line 366 of file timer_common.h.
#define TIMER_IEN | ( | base | ) | MMIO32((base) + 0x00C) |
Definition at line 32 of file timer_common.h.
#define TIMER_IEN_CC0 TIMER_IEN_CCx(0) |
Definition at line 170 of file timer_common.h.
#define TIMER_IEN_CC1 TIMER_IEN_CCx(1) |
Definition at line 171 of file timer_common.h.
#define TIMER_IEN_CC2 TIMER_IEN_CCx(2) |
Definition at line 172 of file timer_common.h.
#define TIMER_IEN_CCx | ( | x | ) | (1 << ((x) + 4)) |
Definition at line 169 of file timer_common.h.
#define TIMER_IEN_ICBOF0 TIMER_IEN_ICBOFx(0) |
Definition at line 165 of file timer_common.h.
#define TIMER_IEN_ICBOF1 TIMER_IEN_ICBOFx(1) |
Definition at line 166 of file timer_common.h.
#define TIMER_IEN_ICBOF2 TIMER_IEN_ICBOFx(2) |
Definition at line 167 of file timer_common.h.
#define TIMER_IEN_ICBOFx | ( | x | ) | (1 << ((x) + 8)) |
Definition at line 164 of file timer_common.h.
#define TIMER_IEN_OF (1 << 0) |
Definition at line 175 of file timer_common.h.
#define TIMER_IEN_UF (1 << 1) |
Definition at line 174 of file timer_common.h.
#define TIMER_IF | ( | base | ) | MMIO32((base) + 0x010) |
Definition at line 33 of file timer_common.h.
#define TIMER_IF_CC0 TIMER_IF_CCx(0) |
Definition at line 185 of file timer_common.h.
#define TIMER_IF_CC1 TIMER_IF_CCx(1) |
Definition at line 186 of file timer_common.h.
#define TIMER_IF_CC2 TIMER_IF_CCx(2) |
Definition at line 187 of file timer_common.h.
#define TIMER_IF_CCx | ( | x | ) | (1 << ((x) + 4)) |
Definition at line 184 of file timer_common.h.
#define TIMER_IF_ICBOF0 TIMER_IF_ICBOFx(0) |
Definition at line 180 of file timer_common.h.
#define TIMER_IF_ICBOF1 TIMER_IF_ICBOFx(1) |
Definition at line 181 of file timer_common.h.
#define TIMER_IF_ICBOF2 TIMER_IF_ICBOFx(2) |
Definition at line 182 of file timer_common.h.
#define TIMER_IF_ICBOFx | ( | x | ) | (1 << ((x) + 8)) |
Definition at line 179 of file timer_common.h.
#define TIMER_IF_OF (1 << 0) |
Definition at line 190 of file timer_common.h.
#define TIMER_IF_UF (1 << 1) |
Definition at line 189 of file timer_common.h.
#define TIMER_IFC | ( | base | ) | MMIO32((base) + 0x018) |
Definition at line 35 of file timer_common.h.
#define TIMER_IFC_CC0 TIMER_IFC_CCx(0) |
Definition at line 214 of file timer_common.h.
#define TIMER_IFC_CC1 TIMER_IFC_CCx(1) |
Definition at line 215 of file timer_common.h.
#define TIMER_IFC_CC2 TIMER_IFC_CCx(2) |
Definition at line 216 of file timer_common.h.
#define TIMER_IFC_CCx | ( | x | ) | (1 << ((x) + 4)) |
Definition at line 213 of file timer_common.h.
#define TIMER_IFC_ICBOF0 TIMER_IFC_ICBOFx(0) |
Definition at line 209 of file timer_common.h.
#define TIMER_IFC_ICBOF1 TIMER_IFC_ICBOFx(1) |
Definition at line 210 of file timer_common.h.
#define TIMER_IFC_ICBOF2 TIMER_IFC_ICBOFx(2) |
Definition at line 211 of file timer_common.h.
#define TIMER_IFC_ICBOFx | ( | x | ) | (1 << ((x) + 8)) |
Definition at line 208 of file timer_common.h.
#define TIMER_IFC_OF (1 << 0) |
Definition at line 219 of file timer_common.h.
#define TIMER_IFC_UF (1 << 1) |
Definition at line 218 of file timer_common.h.
#define TIMER_IFS | ( | base | ) | MMIO32((base) + 0x014) |
Definition at line 34 of file timer_common.h.
#define TIMER_IFS_CC0 TIMER_IFS_CCx(0) |
Definition at line 199 of file timer_common.h.
#define TIMER_IFS_CC1 TIMER_IFS_CCx(1) |
Definition at line 200 of file timer_common.h.
#define TIMER_IFS_CC2 TIMER_IFS_CCx(2) |
Definition at line 201 of file timer_common.h.
#define TIMER_IFS_CCx | ( | x | ) | (1 << ((x) + 4)) |
Definition at line 198 of file timer_common.h.
#define TIMER_IFS_ICBOF0 TIMER_IFS_ICBOFx(0) |
Definition at line 194 of file timer_common.h.
#define TIMER_IFS_ICBOF1 TIMER_IFS_ICBOFx(1) |
Definition at line 195 of file timer_common.h.
#define TIMER_IFS_ICBOF2 TIMER_IFS_ICBOFx(2) |
Definition at line 196 of file timer_common.h.
#define TIMER_IFS_ICBOFx | ( | x | ) | (1 << ((x) + 8)) |
Definition at line 193 of file timer_common.h.
#define TIMER_IFS_OF (1 << 0) |
Definition at line 204 of file timer_common.h.
#define TIMER_IFS_UF (1 << 1) |
Definition at line 203 of file timer_common.h.
#define TIMER_ROUTE | ( | base | ) | MMIO32((base) + 0x028) |
Definition at line 39 of file timer_common.h.
#define TIMER_ROUTE_CC0PEN TIMER_ROUTE_CCxPEN(0) |
Definition at line 240 of file timer_common.h.
#define TIMER_ROUTE_CC1PEN TIMER_ROUTE_CCxPEN(1) |
Definition at line 241 of file timer_common.h.
#define TIMER_ROUTE_CC2PEN TIMER_ROUTE_CCxPEN(2) |
Definition at line 242 of file timer_common.h.
#define TIMER_ROUTE_CCxPEN | ( | x | ) | (1 << (0 + (x))) |
Definition at line 239 of file timer_common.h.
#define TIMER_ROUTE_CDTI0PEN TIMER_ROUTE_CDTIxPEN(0) |
Definition at line 235 of file timer_common.h.
#define TIMER_ROUTE_CDTI1PEN TIMER_ROUTE_CDTIxPEN(1) |
Definition at line 236 of file timer_common.h.
#define TIMER_ROUTE_CDTI2PEN TIMER_ROUTE_CDTIxPEN(2) |
Definition at line 237 of file timer_common.h.
#define TIMER_ROUTE_CDTIxPEN | ( | x | ) | (1 << (8 + (x))) |
Definition at line 234 of file timer_common.h.
#define TIMER_ROUTE_LOCATION | ( | v | ) | (((v) << TIMER_ROUTE_LOCATION_SHIFT) & TIMER_ROUTE_LOCATION_MASK) |
Definition at line 224 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOC0 0 |
Definition at line 227 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOC1 1 |
Definition at line 228 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOC2 2 |
Definition at line 229 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOC3 3 |
Definition at line 230 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOC4 4 |
Definition at line 231 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOC5 5 |
Definition at line 232 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_LOCx | ( | x | ) | TIMER_ROUTE_LOCATION(x) |
Definition at line 226 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_MASK (0x7 << TIMER_ROUTE_LOCATION_SHIFT) |
Definition at line 223 of file timer_common.h.
#define TIMER_ROUTE_LOCATION_SHIFT (16) |
Definition at line 222 of file timer_common.h.
#define TIMER_STATUS | ( | base | ) | MMIO32((base) + 0x008) |
Definition at line 31 of file timer_common.h.
#define TIMER_STATUS_CCPOL0 TIMER_STATUS_CCPOLx(0) |
Definition at line 147 of file timer_common.h.
#define TIMER_STATUS_CCPOL1 TIMER_STATUS_CCPOLx(1) |
Definition at line 146 of file timer_common.h.
#define TIMER_STATUS_CCPOL2 TIMER_STATUS_CCPOLx(2) |
Definition at line 145 of file timer_common.h.
#define TIMER_STATUS_CCPOLx | ( | x | ) | (1 << ((x) + 24)) |
Definition at line 144 of file timer_common.h.
#define TIMER_STATUS_CCVBV0 TIMER_STATUS_CCVBVx(0) |
Definition at line 157 of file timer_common.h.
#define TIMER_STATUS_CCVBV1 TIMER_STATUS_CCVBVx(1) |
Definition at line 156 of file timer_common.h.
#define TIMER_STATUS_CCVBV2 TIMER_STATUS_CCVBVx(2) |
Definition at line 155 of file timer_common.h.
#define TIMER_STATUS_CCVBVx | ( | x | ) | (1 << ((x) + 8)) |
Definition at line 154 of file timer_common.h.
#define TIMER_STATUS_DIR (1 << 1) |
Definition at line 160 of file timer_common.h.
#define TIMER_STATUS_ICV0 TIMER_STATUS_ICVx(0) |
Definition at line 152 of file timer_common.h.
#define TIMER_STATUS_ICV1 TIMER_STATUS_ICVx(1) |
Definition at line 151 of file timer_common.h.
#define TIMER_STATUS_ICV2 TIMER_STATUS_ICVx(2) |
Definition at line 150 of file timer_common.h.
#define TIMER_STATUS_ICVx | ( | x | ) | (1 << ((x) + 16)) |
Definition at line 149 of file timer_common.h.
#define TIMER_STATUS_RUNNING (1 << 0) |
Definition at line 161 of file timer_common.h.
#define TIMER_STATUS_TOPBV (1 << 2) |
Definition at line 159 of file timer_common.h.
#define TIMER_TOP | ( | base | ) | MMIO32((base) + 0x01C) |
Definition at line 36 of file timer_common.h.
#define TIMER_TOPB | ( | base | ) | MMIO32((base) + 0x020) |
Definition at line 37 of file timer_common.h.
void timer_set_clock_prescaler | ( | uint32_t | timer, |
uint32_t | presc | ||
) |
Clock division factor.
[in] | timer | Timer (use TIMERx) |
[in] | presc | Factor (use TIMER_CTRL_PRESC_DIV*) |
Definition at line 52 of file timer_common.c.
References TIMER_CTRL, and TIMER_CTRL_PRESC.
void timer_set_top | ( | uint32_t | timer, |
uint32_t | top | ||
) |
Start timer top value the timer reload after it reaches top value.
[in] | timer | Timer (use TIMERx) |
[in] | top | Top value |
Definition at line 64 of file timer_common.c.
References TIMER_TOP.
void timer_start | ( | uint32_t | timer | ) |
Start timer.
[in] | timer | Timer (use TIMERx) |
Definition at line 33 of file timer_common.c.
References TIMER_CMD, and TIMER_CMD_START.
void timer_stop | ( | uint32_t | timer | ) |
Stop timer.
[in] | timer | Timer (use TIMERx) |
Definition at line 42 of file timer_common.c.
References TIMER_CMD, and TIMER_CMD_STOP.