Hi Fabio,
Without commenting "ADCSRB = 0; //single shot" i can't compile project without errors.
I tried this solution:
#if defined(ADCSRB)
ADCSRB = 0; //single shot
#endif
And it works good.
Thanks!
AtmelStudio 7 atmega128 ChibiosHAL compile error
-
- Posts: 359
- Joined: Sat Jan 07, 2012 6:22 pm
- Location: Brazil
- Has thanked: 1 time
- Been thanked: 20 times
- Contact:
Re: AtmelStudio 7 atmega128 ChibiosHAL compile error
Yes, that register is not even required. Talking about the bits in ADCSRB, the documentation states:
Since we don't set ADATE, I just removed the ADCSRB access on the code. Btw, the equivalent of ADATE on ATmega128 is ADFR, which has the same bit number but different name probably because there is no way to configure it (no equivalent to ADCSRB).
Thanks again Bogdan, bring it on!
Fabio Utzig
If ADATE in ADCSRA is written to one, the value of these bits selects which source will trigger an ADC conversion. If ADATE is cleared, the ADTS2:0 settings will have no effect.
Since we don't set ADATE, I just removed the ADCSRB access on the code. Btw, the equivalent of ADATE on ATmega128 is ADFR, which has the same bit number but different name probably because there is no way to configure it (no equivalent to ADCSRB).
Thanks again Bogdan, bring it on!
Fabio Utzig
-
- Posts: 21
- Joined: Fri Apr 08, 2016 4:33 pm
- Location: Ukraine Lviv
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
Re: AtmelStudio 7 atmega128 ChibiosHAL compile error
Hi Fabio,
Thanks for the help.
When this fixes will come to Git repository, I will try them cheack as soon as possible.
Thanks!
Bogdan.
Thanks for the help.
When this fixes will come to Git repository, I will try them cheack as soon as possible.
Thanks!
Bogdan.
-
- Posts: 21
- Joined: Fri Apr 08, 2016 4:33 pm
- Location: Ukraine Lviv
- Has thanked: 2 times
- Been thanked: 3 times
- Contact:
Re: AtmelStudio 7 atmega128 ChibiosHAL compile error
Hi Fabio,
I had tried latest version from git repo branch 16.1.x. And oll loocks good
Thanks for the help.
Thanks!
Bogdan.
I had tried latest version from git repo branch 16.1.x. And oll loocks good
Thanks for the help.
Thanks!
Bogdan.
Who is online
Users browsing this forum: No registered users and 39 guests