From fb772a913b5de299a1f896f0c1b168136bb9c6e6 Mon Sep 17 00:00:00 2001 From: smckown Date: Thu, 11 Sep 2008 22:38:32 +0000 Subject: [PATCH] Add pin initialization for bq2403x and cp210x --- tos/chips/bq2403x/BQ2403XP.nc | 5 +++++ tos/chips/cp210x/CP210XP.nc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tos/chips/bq2403x/BQ2403XP.nc b/tos/chips/bq2403x/BQ2403XP.nc index 77ed42ce..0c23a04d 100644 --- a/tos/chips/bq2403x/BQ2403XP.nc +++ b/tos/chips/bq2403x/BQ2403XP.nc @@ -128,6 +128,11 @@ implementation { command error_t Init.init() { + call BQstat1.makeInput(); + call BQstat2.makeInput(); + call ACPGn.makeInput(); + call USBPGn.makeInput(); + update(); lastState = state; return SUCCESS; diff --git a/tos/chips/cp210x/CP210XP.nc b/tos/chips/cp210x/CP210XP.nc index ce45bb57..17908a12 100644 --- a/tos/chips/cp210x/CP210XP.nc +++ b/tos/chips/cp210x/CP210XP.nc @@ -68,6 +68,8 @@ implementation { command error_t Init.init() { + call USB_SUSPENDn.makeInput(); + update(); return SUCCESS; } -- 2.39.2