summaryrefslogtreecommitdiff
path: root/src/arch/atmega2560/driver/counter.cc
blob: d6cde460b310bc1e3083ebc9aee5bdf69cf67f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright 2021 Daniel Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#include "driver/counter.h"

Counter counter;

ISR(TIMER3_OVF_vect)
{
	if (counter.overflow < 255) {
		counter.overflow++;
	}
}