# drivers/timer/tc_regs.h File Reference

Timer counter register interface. More...

`#include <chip/memory-map.h>`
`#include <io.h>`

Include dependency graph for tc_regs.h:

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

Go to the source code of this file.

## Defines
#define | tc_read_reg(port, reg) mmio_read32((port) + TC_##reg)
| Read GPIO register reg on port.
#define | tc_write_reg(port, reg, value) mmio_write32((port) + TC_##reg, value)
| Write value to GPIO register reg on port.

## Detailed Description

Timer counter register interface.

- Compiler: IAR EWAVR32 and GNU GCC for AVR32
- Supported devices: All devices
- AppNote:

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file tc_regs.h.

## Define Documentation

#define tc_read_reg | ( | port,
|  | reg |  | ) | mmio_read32((port) + TC_##reg)

Read GPIO register reg on port.

Definition at line 75 of file tc_regs.h.

Referenced by timer_irq_handler().

#define tc_write_reg | ( | port,
|  | reg,
|  | value |  | ) | mmio_write32((port) + TC_##reg, value)

Write value to GPIO register reg on port.

Definition at line 78 of file tc_regs.h.

Referenced by timer_init(), timer_irq_handler(), and timer_set_alarm().