From a32478ca78bd80e69f482d29d8ad4419ac410a6a Mon Sep 17 00:00:00 2001 From: klaute Date: Sat, 17 Sep 2016 20:50:47 +0200 Subject: [PATCH] First arduino impl. to drive the si5351 breakout board. Command control module moved to firmware folder. --- command_config.h => firmware/command_config.h | 0 command_ctrl.c => firmware/command_ctrl.c | 0 command_ctrl.h => firmware/command_ctrl.h | 0 command_functions.c => firmware/command_functions.c | 0 firmware/firmware.ino | 9 ++++++--- 5 files changed, 6 insertions(+), 3 deletions(-) rename command_config.h => firmware/command_config.h (100%) rename command_ctrl.c => firmware/command_ctrl.c (100%) rename command_ctrl.h => firmware/command_ctrl.h (100%) rename command_functions.c => firmware/command_functions.c (100%) diff --git a/command_config.h b/firmware/command_config.h similarity index 100% rename from command_config.h rename to firmware/command_config.h diff --git a/command_ctrl.c b/firmware/command_ctrl.c similarity index 100% rename from command_ctrl.c rename to firmware/command_ctrl.c diff --git a/command_ctrl.h b/firmware/command_ctrl.h similarity index 100% rename from command_ctrl.h rename to firmware/command_ctrl.h diff --git a/command_functions.c b/firmware/command_functions.c similarity index 100% rename from command_functions.c rename to firmware/command_functions.c diff --git a/firmware/firmware.ino b/firmware/firmware.ino index d3c0c9f..ebcc27d 100644 --- a/firmware/firmware.ino +++ b/firmware/firmware.ino @@ -1,12 +1,12 @@ /* */ -#include "si5351.h" +#include #include "Wire.h" -extern "C" { +/*extern "C" { #include "command_ctrl.h" -} +}*/ Si5351 si5351; @@ -22,6 +22,9 @@ void setup() // Set CLK1 to output 20 MHz si5351.set_freq(2000000000ULL, 0ULL, SI5351_CLK1); + + si5351.output_enable(SI5351_CLK0, 1); // enable clock output 0 + si5351.drive_strength(SI5351_CLK0, SI5351_DRIVE_2MA); // 2 4 6 8ma } void loop()