mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/driver_dac_dds: Parametrize configured DAC device
The set default is good enough for single-channel board, but whenever DAC_DDS_CHAN is not zero (or even when a board has more), this may need changing.
This commit is contained in:
parent
b392d76592
commit
a79de40263
@ -39,6 +39,10 @@
|
||||
#define DAC_DDS_CHAN 0
|
||||
#endif
|
||||
|
||||
#ifndef DAC_DDS_DAC
|
||||
#define DAC_DDS_DAC DAC_DDS_PARAM_DAC
|
||||
#endif
|
||||
|
||||
#ifndef ENABLE_GREETING
|
||||
#define ENABLE_GREETING 1
|
||||
#endif
|
||||
@ -310,7 +314,7 @@ static const shell_command_t shell_commands[] = {
|
||||
|
||||
int main(void)
|
||||
{
|
||||
dac_init(DAC_DDS_PARAM_DAC);
|
||||
dac_init(DAC_DDS_DAC);
|
||||
_dac_init();
|
||||
|
||||
/* start the shell */
|
||||
|
Loading…
Reference in New Issue
Block a user