Skip to content

Commit

Permalink
Remove references to obsolete peripheral clock scaling functions
Browse files Browse the repository at this point in the history
  • Loading branch information
g-oikonomou committed May 17, 2015
1 parent ab4249a commit b406756
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
5 changes: 1 addition & 4 deletions cpu/cc26xx/dev/cc26xx-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ configure(void)
BOARD_IOID_UART_CTS, BOARD_IOID_UART_RTS);

/* Configure the UART for 115,200, 8-N-1 operation. */
ti_lib_uart_config_set_exp_clk(UART0_BASE,
ti_lib_sys_ctrl_peripheral_clock_get(
PRCM_PERIPH_UART0,
SYSCTRL_SYSBUS_ON),
ti_lib_uart_config_set_exp_clk(UART0_BASE, ti_lib_sys_ctrl_clock_get(),
CC26XX_UART_CONF_BAUD_RATE,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |
UART_CONFIG_PAR_NONE));
Expand Down
8 changes: 2 additions & 6 deletions platform/srf06-cc26xx/sensortag/board-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ board_i2c_wakeup()
ti_lib_hapi_reset_peripheral(PRCM_PERIPH_I2C0);

/* Enable and initialize the I2C master module */
ti_lib_i2c_master_init_exp_clk(I2C0_BASE,
ti_lib_sys_ctrl_peripheral_clock_get(
PRCM_PERIPH_I2C0, SYSCTRL_SYSBUS_ON),
ti_lib_i2c_master_init_exp_clk(I2C0_BASE, ti_lib_sys_ctrl_clock_get(),
true);
}
/*---------------------------------------------------------------------------*/
Expand Down Expand Up @@ -331,9 +329,7 @@ board_i2c_select(uint8_t new_interface, uint8_t address)
}

/* Enable and initialize the I2C master module */
ti_lib_i2c_master_init_exp_clk(I2C0_BASE,
ti_lib_sys_ctrl_peripheral_clock_get(
PRCM_PERIPH_I2C0, SYSCTRL_SYSBUS_ON),
ti_lib_i2c_master_init_exp_clk(I2C0_BASE, ti_lib_sys_ctrl_clock_get(),
true);
}
}
Expand Down
7 changes: 0 additions & 7 deletions platform/srf06-cc26xx/sensortag/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,6 @@ board_init()

power_domains_on();

/* Configure all clock domains to run at full speed */
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_SYSBUS, PRCM_CLOCK_DIV_1);
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_CPU, PRCM_CLOCK_DIV_1);
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_TIMER, PRCM_CLOCK_DIV_1);
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_SERIAL, PRCM_CLOCK_DIV_1);
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_PERIPH, PRCM_CLOCK_DIV_1);

/* Enable GPIO peripheral */
ti_lib_prcm_peripheral_run_enable(PRCM_PERIPH_GPIO);

Expand Down
5 changes: 0 additions & 5 deletions platform/srf06-cc26xx/srf06/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ board_init()
/* Turn on relevant PDs */
wakeup_handler();

/* Configure all clock domains to run at full speed */
ti_lib_prcm_clock_configure_set(PRCM_DOMAIN_SYSBUS | PRCM_DOMAIN_CPU |
PRCM_DOMAIN_TIMER | PRCM_DOMAIN_SERIAL |
PRCM_DOMAIN_PERIPH, PRCM_CLOCK_DIV_1);

/* Enable GPIO peripheral */
ti_lib_prcm_peripheral_run_enable(PRCM_PERIPH_GPIO);

Expand Down

0 comments on commit b406756

Please sign in to comment.