aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-03-14 18:37:56 -0400
committerPerry Hung <iperry@gmail.com>2011-03-14 22:52:06 -0400
commit334de50c49317f281d87f44e7b9278e08af19254 (patch)
tree2aa29c4f6aecb60c2f4ce5964d876745b1757d60 /wirish
parent9872b3975bd40c55652bb9dead5f54e2be9740d0 (diff)
downloadlibrambutan-334de50c49317f281d87f44e7b9278e08af19254.tar.gz
librambutan-334de50c49317f281d87f44e7b9278e08af19254.zip
Add rudimentary error handling for nack condition
Diffstat (limited to 'wirish')
-rw-r--r--wirish/wirish.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/wirish/wirish.c b/wirish/wirish.c
index 4c84d26..2b128f1 100644
--- a/wirish/wirish.c
+++ b/wirish/wirish.c
@@ -63,18 +63,18 @@ void init(void) {
/* Initialize the ADC for slow conversions, to allow for high
impedance inputs. */
- adc_init(ADC1, 0);
- adc_set_sample_rate(ADC1, ADC_SMPR_55_5);
-
- timer_init(TIMER1, 1);
- timer_init(TIMER2, 1);
- timer_init(TIMER3, 1);
- timer_init(TIMER4, 1);
-#ifdef STM32_HIGH_DENSITY
- timer_init(TIMER5, 1);
- timer_init(TIMER8, 1);
-#endif
- setupUSB();
+// adc_init(ADC1, 0);
+// adc_set_sample_rate(ADC1, ADC_SMPR_55_5);
+//
+// timer_init(TIMER1, 1);
+// timer_init(TIMER2, 1);
+// timer_init(TIMER3, 1);
+// timer_init(TIMER4, 1);
+//#ifdef STM32_HIGH_DENSITY
+// timer_init(TIMER5, 1);
+// timer_init(TIMER8, 1);
+//#endif
+// setupUSB();
/* include the board-specific init macro */
BOARD_INIT;