mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 01:46:26 +00:00
Enable SWO debug output during system initialization and not as part of GPIO driver initialization. After the modification the logger output becomes available earlier during the boot process. Also, it's not necessary anymore to build full GPIO driver only to enable SWO. This may be critical when building small images. Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
33 lines
928 B
C
33 lines
928 B
C
/*
|
|
* Copyright (c) 2018 Christian Taedcke
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/** @file
|
|
* @brief Silabs EFM32PG12B MCU pin definitions.
|
|
*
|
|
* This file contains pin configuration data required by different MCU
|
|
* modules to correctly configure GPIO controller.
|
|
*/
|
|
|
|
#ifndef _SILABS_EFM32PG12B_SOC_PINMAP_H_
|
|
#define _SILABS_EFM32PG12B_SOC_PINMAP_H_
|
|
|
|
#include <soc.h>
|
|
#include <em_gpio.h>
|
|
|
|
/* Serial Wire Output (SWO) */
|
|
#if (DT_GPIO_GECKO_SWO_LOCATION == 0)
|
|
#define PIN_SWO {gpioPortF, 2, gpioModePushPull, 1}
|
|
#elif (DT_GPIO_GECKO_SWO_LOCATION == 1)
|
|
#define PIN_SWO {gpioPortB, 13, gpioModePushPull, 1}
|
|
#elif (DT_GPIO_GECKO_SWO_LOCATION == 2)
|
|
#define PIN_SWO {gpioPortD, 15, gpioModePushPull, 1}
|
|
#elif (DT_GPIO_GECKO_SWO_LOCATION == 3)
|
|
#define PIN_SWO {gpioPortC, 11, gpioModePushPull, 1}
|
|
#elif (DT_GPIO_GECKO_SWO_LOCATION >= 4)
|
|
#error ("Invalid SWO pin location")
|
|
#endif
|
|
|
|
#endif /* _SILABS_EFM32PG12B_SOC_PINMAP_H_ */
|