[sky9x] Rotary encoder should be enable

This commit is contained in:
bsongis
2012-09-24 06:28:14 +00:00
parent 22ee458db5
commit 51491381ce
+1 -2
View File
@@ -130,8 +130,7 @@ extern "C" void sam_boot( void ) ;
inline void config_free_pins()
{
#ifdef REVB
configure_pins( PIO_PB6 | PIO_PB14, PIN_ENABLE | PIN_INPUT | PIN_PORTB | PIN_PULLUP ) ;
configure_pins( PIO_PC19 | PIO_PC21, PIN_ENABLE | PIN_INPUT | PIN_PORTC | PIN_PULLUP ) ;
configure_pins( PIO_PB14, PIN_ENABLE | PIN_INPUT | PIN_PORTB | PIN_PULLUP ) ;
#else
register Pio * pioptr = PIOA ;
pioptr->PIO_PER = 0x03800000L ; // Enable bits A25,24,23