From: beutel Date: Wed, 4 Jul 2007 22:02:45 +0000 (+0000) Subject: turn off bluetooth power on init X-Git-Tag: release_tools_1_2_4_1~77 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=1e770c4d1f97e512a0ba2efad5f120e392dd3302;p=tinyos-2.x.git turn off bluetooth power on init --- diff --git a/tos/platforms/btnode3/MotePlatformP.nc b/tos/platforms/btnode3/MotePlatformP.nc index d15773ca..93cf70a1 100644 --- a/tos/platforms/btnode3/MotePlatformP.nc +++ b/tos/platforms/btnode3/MotePlatformP.nc @@ -23,9 +23,11 @@ module MotePlatformP implementation { command error_t PlatformInit.init() { - // Pull C I/O port pins high to initialize LED's and radio and IO power + // Pull C I/O port pins low to initialize LED's to off + // Turn in cc1000 and IO power + // Turn off bluetooth power // Set port C as output only - PORTC = 0xff; + PORTC = 0xb0; DDRC = 0xff; // TODO: release Bluetooth reset pin @@ -33,6 +35,7 @@ implementation { //btnode3: set latch_select PB5 for now PORTB = 0x20; DDRB = 0x20; + // Prevent sourcing current // call SerialIdPin.makeI0xffnput();