[sky9x] Rotary encoder should be enable
This commit is contained in:
@@ -130,8 +130,7 @@ extern "C" void sam_boot( void ) ;
|
|||||||
inline void config_free_pins()
|
inline void config_free_pins()
|
||||||
{
|
{
|
||||||
#ifdef REVB
|
#ifdef REVB
|
||||||
configure_pins( PIO_PB6 | PIO_PB14, PIN_ENABLE | PIN_INPUT | PIN_PORTB | PIN_PULLUP ) ;
|
configure_pins( PIO_PB14, PIN_ENABLE | PIN_INPUT | PIN_PORTB | PIN_PULLUP ) ;
|
||||||
configure_pins( PIO_PC19 | PIO_PC21, PIN_ENABLE | PIN_INPUT | PIN_PORTC | PIN_PULLUP ) ;
|
|
||||||
#else
|
#else
|
||||||
register Pio * pioptr = PIOA ;
|
register Pio * pioptr = PIOA ;
|
||||||
pioptr->PIO_PER = 0x03800000L ; // Enable bits A25,24,23
|
pioptr->PIO_PER = 0x03800000L ; // Enable bits A25,24,23
|
||||||
|
|||||||
Reference in New Issue
Block a user