/* * Copyright (c) 2016-2017, Texas Instruments Incorporated * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include #include #include #include static int ti_cc32xx_init(struct device *arg) { ARG_UNUSED(arg); /* Note: This function also performs CC3220 Initialization */ MAP_PRCMCC3200MCUInit(); #ifdef CONFIG_UART_CC32XX /* * Enable Peripheral Clocks, ensuring UART can wake the processor from * idle (after ARM wfi instruction) */ MAP_PRCMPeripheralClkEnable(PRCM_UARTA0, PRCM_RUN_MODE_CLK | PRCM_SLP_MODE_CLK); #endif return 0; } SYS_INIT(ti_cc32xx_init, PRE_KERNEL_1, 0);