[En-Nut-Discussion] Compilation of the trunk is currently broken! (spi_vscodec.c)

Ole Reinhardt ole.reinhardt at embedded-it.de
Sun Aug 30 12:38:26 CEST 2009


Hi all,

currently compilation of the trunk fails at least for ethernut3 with the
following errors:

home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c: In function
‘VsDecoderSetBass’:
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:224: error:
‘VS_BASS_REG’ undeclared (first use in this function)
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:224: error:
(Each undeclared identifier is reported only once
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:224: error:
for each function it appears in.)
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:225: error:
‘VS_ST_AMPLITUDE_LSB’ undeclared (first use in this function)
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:225: error:
‘VS_ST_FREQLIMIT_LSB’ undeclared (first use in this function)
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:226: error:
‘VS_SB_AMPLITUDE_LSB’ undeclared (first use in this function)
/home/ole/work/NutOS/ethernut/trunk/nut/dev/spi_vscodec.c:226: error:
‘VS_SB_FREQLIMIT_LSB’ undeclared (first use in this function)

It's because VS_HAS_BAS_REG is not defined for a platform where no VS
codec is selected. In this case the vs chip is set to "AUDIO0_VSAUTO"
where this value is not declared.

I think VsDecoderSetBass(...) should also only be declared if
VS_HAS_BAS_REG is definded, right? Please somebody who is working on
this driver fix this issue. Thanks!

Bye,

Ole


-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT                                                 |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list