summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/arch/arduino-nano/driver/timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/arch/arduino-nano/driver/timer.h b/include/arch/arduino-nano/driver/timer.h
index 98ef20e..87acfea 100644
--- a/include/arch/arduino-nano/driver/timer.h
+++ b/include/arch/arduino-nano/driver/timer.h
@@ -12,12 +12,12 @@ class Timer {
public:
Timer() {}
- inline void setup_khz(unsigned char const frequency) {
+ inline void setup_khz(uint16_t const frequency) {
OCR0A = frequency ? 255 / frequency : 1;
TCCR0A = _BV(WGM01);
prescaler = _BV(CS01) | _BV(CS00);
}
- inline void setup_hz(unsigned char const frequency) {
+ inline void setup_hz(uint16_t const frequency) {
OCR0A = frequency ? 255 / frequency : 1;
TCCR0A = _BV(WGM01);
prescaler = _BV(CS02) | _BV(CS00);