mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
set the pin defaults properly to reduce current consumption on
sleeping M12s.
This commit is contained in:
parent
fb8bbf37cf
commit
299d8c6cbf
@ -70,6 +70,17 @@ int main(void) {
|
||||
PRINTF("trim xtal for M12\n\r");
|
||||
CRM->XTAL_CNTLbits.XTAL_CTUNE = (M12_CTUNE_4PF << 4) | M12_CTUNE;
|
||||
CRM->XTAL_CNTLbits.XTAL_FTUNE = M12_FTUNE;
|
||||
|
||||
/* configure pullups for low power */
|
||||
GPIO->FUNC_SEL.GPIO_63 = 3;
|
||||
GPIO->PAD_PU_SEL.GPIO_63 = 0;
|
||||
GPIO->FUNC_SEL.SS = 3;
|
||||
GPIO->PAD_PU_SEL.SS = 1;
|
||||
GPIO->FUNC_SEL.VREF2H = 3;
|
||||
GPIO->PAD_PU_SEL.VREF2H = 1;
|
||||
GPIO->FUNC_SEL.U1RTS = 3;
|
||||
GPIO->PAD_PU_SEL.U1RTS = 1;
|
||||
|
||||
} else {
|
||||
/* econotag I */
|
||||
PRINTF("trim xtal for Econotag I\n\r");
|
||||
|
Loading…
Reference in New Issue
Block a user