From 10171996455103f2b4e0adce75966b0a130734c8 Mon Sep 17 00:00:00 2001 From: laforge Date: Tue, 19 Dec 2006 11:28:26 +0000 Subject: introduce constant DA_BASELINE for DAC default value git-svn-id: https://svn.openpcd.org:2342/trunk@291 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/picc/main_openpicc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/src/picc/main_openpicc.c b/firmware/src/picc/main_openpicc.c index 2b2e56a..74700f8 100644 --- a/firmware/src/picc/main_openpicc.c +++ b/firmware/src/picc/main_openpicc.c @@ -45,6 +45,8 @@ static u_int8_t pwm_freq_idx = 0; static u_int8_t load_mod = 0; +#define DA_BASELINE 192 + void _init_func(void) { /* low-level hardware initialization */ @@ -64,7 +66,7 @@ void _init_func(void) opicc_usbapi_init(); AT91F_PIO_CfgInput(AT91C_BASE_PIOA, OPENPICC_PIO_BOOTLDR); - da_comp_carr(64); + da_comp_carr(DA_BASELINE); } static void help(void) @@ -86,7 +88,7 @@ static void help(void) int _main_dbgu(char key) { - static u_int8_t poti = 64; + static u_int8_t poti = DA_BASELINE; static u_int8_t pll_inh = 1; static u_int8_t ssc_mode = 1; static u_int8_t sync_enabled = 0; -- cgit v1.2.3