summaryrefslogtreecommitdiff
path: root/firmware/src/picc/main_openpicc.c
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-12-19 11:28:26 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-12-19 11:28:26 +0000
commit10171996455103f2b4e0adce75966b0a130734c8 (patch)
tree0fa8a921a6fdf576fa2d1abe7942ccd7bc3c4b7f /firmware/src/picc/main_openpicc.c
parent2b28edee6805407541a223a317beb3a0b391aad3 (diff)
introduce constant DA_BASELINE for DAC default value
git-svn-id: https://svn.openpcd.org:2342/trunk@291 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'firmware/src/picc/main_openpicc.c')
-rw-r--r--firmware/src/picc/main_openpicc.c6
1 files 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;
personal git repositories of Harald Welte. Your mileage may vary