diff options
Diffstat (limited to 'software/rda1846dongle/rda1846dongle.c')
-rw-r--r-- | software/rda1846dongle/rda1846dongle.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/software/rda1846dongle/rda1846dongle.c b/software/rda1846dongle/rda1846dongle.c index 757356d..310e2ad 100644 --- a/software/rda1846dongle/rda1846dongle.c +++ b/software/rda1846dongle/rda1846dongle.c @@ -29,6 +29,7 @@ * along with mur.sat. If not, see <http://www.gnu.org/licenses/>. * */ + #include <avr/io.h> #include <avr/wdt.h> #include <avr/interrupt.h> @@ -129,7 +130,7 @@ static void handle_cmd(uint8_t cmd) case '!': reset2bootloader(); break; case 'r': rda1846_soft_reset(); printf("soft resetting RDA1846.\r\n"); break; - case 'i': rda1846_init(); printf("initializing RDA1846.\r\n"); break; + case 'i': rda1846_reg_init(); printf("initializing RDA1846.\r\n"); break; case 'F': set_default_freq(); break; case 'g': rda1846_gpio_off(); printf("GPIO off\r\n"); break; @@ -139,6 +140,7 @@ static void handle_cmd(uint8_t cmd) case 's': print_status(); break; case 'd': print_dtmf(); break; case 'D': rda1846_dump_register(); break; + case 'p': rda1846_powerdown(); break; case 'P': rda1846_wakeup(); break; @@ -160,8 +162,10 @@ int main(void) cpu_init(); led_init(); usbio_init(); - sei(); + rda1846_init(); + + sei(); for(;;) { int16_t BytesReceived = usbio_bytes_received(); while(BytesReceived > 0) { |