Use the logging module (CC2538 SoC)
DIECFG2_DIE_REV_OFS)
#define DIECFG2_AES_EN 0x00000002
#define DIECFG2_PKA_EN 0x00000001
+/*---------------------------------------------------------------------------*/
+/* Log configuration */
+#include "sys/log.h"
+#define LOG_MODULE "CC2538 SoC"
+#define LOG_LEVEL LOG_LEVEL_INFO
/*----------------------------------------------------------------------------*/
uint8_t
soc_get_rev(void)
@@ -93,8 +98,8 @@ soc_print_info(void)
uint8_t rev = soc_get_rev();
uint32_t features = soc_get_features();
- printf("CC2538: ID: 0x%04lx, rev.: PG%d.%d, Flash: %lu KiB, SRAM: %lu KiB, "
- "AES/SHA: %u, ECC/RSA: %u\n"
+ LOG_DBG("CC2538: ID: 0x%04lx, rev.: PG%d.%d, Flash: %lu KiB, "
+ "SRAM: %lu KiB, AES/SHA: %u, ECC/RSA: %u\n"
"System clock: %lu Hz\n"
"I/O clock: %lu Hz\n"
"Reset cause: %s\n",
