Commit 2fd05d3f authored by Adam Wujek's avatar Adam Wujek 💬

userspace/libwr: clean up of pio.c

removed:
shw_pio_configure_all
kept for debugging:
shw_pio_toggle_pin
parent ca5c04cb
......@@ -59,7 +59,6 @@ void shw_set_fp_led(int led, int state);
int shw_pio_mmap_init();
void shw_pio_toggle_pin(pio_pin_t* pin, uint32_t udelay);
void shw_pio_configure_all();
void shw_pio_configure(const pio_pin_t *pin);
static inline void shw_pio_set(const pio_pin_t *pin, int state)
......
......@@ -27,7 +27,7 @@ volatile uint8_t *_sys_base;
void pmc_enable_clock(int clock)
static void pmc_enable_clock(int clock)
{
_writel(_sys_base + AT91C_BASE_PMC_RAW - AT91C_BASE_SYS_RAW + 0x10, (1<<clock)); // fucking atmel headers
// printf("ClkStat: %x\n", _readl(_sys_base + AT91C_BASE_PMC_RAW - AT91C_BASE_SYS_RAW + 0x18));
......@@ -97,18 +97,6 @@ void shw_pio_toggle_pin(pio_pin_t* pin, uint32_t udelay)
}
}
void shw_pio_configure_all()
{
int i;
const shw_io_t* all_io=(shw_io_t*)_all_shw_io;
for(i=0;i<NUM_SHW_IO_ID;i++)
{
if(all_io[i].type==SHW_CPU_PIO)
shw_pio_configure(all_io[i].ptr);
}
}
void shw_pio_configure(const pio_pin_t *pin)
{
uint32_t mask = (1<<pin->pin);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment