Search found 17 matches

by orion
Tue Nov 06, 2018 10:59 pm
Forum: AVR Support
Topic: AVR tickless mode
Replies: 3
Views: 80932

Re: AVR tickless mode

The tickless implementation for the AVR port is not very flexible right now, IMO, for these reasons:
⋅ As you mentioned, the tick resolution is not configurable since it is hardcoded in os/hal/ports/AVR/MEGA/LLD/TIMv1/hal_st_lld.c to a frequency given by F_CPU/1024
⋅ Because of ...
by orion
Fri Oct 26, 2018 11:01 am
Forum: AVR Support
Topic: AVR ICU module calling width_cb instead of period_cb
Replies: 8
Views: 36396

Re: AVR ICU module calling width_cb instead of period_cb

Hi Theo,

Is there any news on this issue on the AVR port of the ICU module?

Thanks.
by orion
Fri Dec 22, 2017 7:04 pm
Forum: AVR Support
Topic: GPT interrupt handling in AVR taking too long
Replies: 2
Views: 29618

Re: GPT interrupt handling in AVR taking too long

OK, I'll finish working on it and upload the code.
by orion
Sun Dec 03, 2017 4:28 pm
Forum: AVR Support
Topic: compile error: CH_DBG_TRACE_MASK not defined
Replies: 4
Views: 69853

Re: compile error: CH_DBG_TRACE_MASK not defined

Theo,

Sorry to hear about your father. Take your time. This problem is not a pressing one. Cheers,

Hermano
by orion
Tue Nov 28, 2017 10:15 pm
Forum: AVR Support
Topic: GPT interrupt handling in AVR taking too long
Replies: 2
Views: 29618

GPT interrupt handling in AVR taking too long

Hi folks,

I've been reading the code for the GPT module for the AVR port. This is one of the modules using timers in an ATMega chip. This module takes a frequency and a period parameter. From what I understand, the first parameter sets the frequency in Hz for the timer clock and the second the ...
by orion
Tue Nov 28, 2017 7:03 pm
Forum: AVR Support
Topic: compile error: CH_DBG_TRACE_MASK not defined
Replies: 4
Views: 69853

compile error: CH_DBG_TRACE_MASK not defined

Hi there,

Since last weekend, when trying to compile one of the AVR test or demo applications in the trunk branch, I get an error similar to the one below;

Compiling chsys.c
In file included from ../../../../os/rt/include/ch.h:91:0,
from .&#46 ...
by orion
Sun Nov 26, 2017 10:47 am
Forum: AVR Support
Topic: Supporting other prescaling factors in the PWM module
Replies: 14
Views: 59913

Re: Supporting other prescaling factors in the PWM module

Sorry, forgot to make it compatible with patch. Below is the correct version.
by orion
Thu Nov 23, 2017 8:22 pm
Forum: AVR Support
Topic: Supporting other prescaling factors in the PWM module
Replies: 14
Views: 59913

Re: Supporting other prescaling factors in the PWM module

OK, I've pretty much finished it.

Attached is the patch to make the AVR port of the PWM module work with different prescaler factors for all timers. Furthermore, if a 16-bit timer is being used (i.e., all except timer2), one can also set the pwm period, and that will be loaded in the ICR. Since I ...
by orion
Thu Nov 23, 2017 6:20 pm
Forum: AVR Support
Topic: Supporting other prescaling factors in the PWM module
Replies: 14
Views: 59913

Re: Supporting other prescaling factors in the PWM module

Should I post the patch here or should I push to the subversion repository?
by orion
Thu Nov 23, 2017 10:11 am
Forum: AVR Support
Topic: Supporting other prescaling factors in the PWM module
Replies: 14
Views: 59913

Re: Supporting other prescaling factors in the PWM module

OK, will work on it.

Cheers.