Chip-specific system clock management functions.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | sysclk_init (void) |
Function to initialize the clock and disable clock for not required modules. More... | |
void | sysclk_enable_module (enum power_red_id port, uint8_t id) |
Enable the clock to peripheral id on port port. More... | |
void | sysclk_disable_module (enum power_red_id port, uint8_t id) |
Disable the clock to peripheral id on port port. More... | |
void sysclk_disable_module | ( | enum power_red_id | port, |
uint8_t | id | ||
) |
Disable the clock to peripheral id on port port.
port | ID of the port to which the module is connected (one of the power_red_id *definitions). |
id | The ID (bit mask) of the peripheral module to be disabled. |
References cpu_irq_restore(), and cpu_irq_save().
Referenced by sysclk_disable_peripheral_clock(), and sysclk_get_peripheral_bus_hz().
void sysclk_enable_module | ( | enum power_red_id | port, |
uint8_t | id | ||
) |
Enable the clock to peripheral id on port port.
port | ID of the port to which the module is connected (one of the power_red_id *definitions). |
id | The ID (bitmask) of the peripheral module to be enabled. |
References cpu_irq_restore(), and cpu_irq_save().
Referenced by run_loopback_syncmode_test(), spi_master_init(), spi_slave_init(), sysclk_enable_peripheral_clock(), usart_enable_module_clock(), and usart_spi_init().