system info HAL Driver

This commit is contained in:
Thomas Kuschel 2022-07-16 00:49:51 +02:00
parent c3d3f229a6
commit 02ffadd86a
2 changed files with 3 additions and 3 deletions

View File

@ -833,8 +833,8 @@ void print_system_info(void) {
printf("CMSIS V%u.%u\n", __CM_CMSIS_VERSION_MAIN, __CM_CMSIS_VERSION_SUB);
printf("STM32L4 CMSIS Device V%u.%u.%u.%u\n", __STM32L4_CMSIS_VERSION_MAIN,
__STM32L4_CMSIS_VERSION_SUB1,__STM32L4_CMSIS_VERSION_SUB2,__STM32L4_CMSIS_VERSION_RC);
printf("STM32L4xx HAL Driver V%u.%u.%u.%u\n", STM32L4XX_HAL_VERSION_MAIN,
STM32L4XX_HAL_VERSION_SUB1, STM32L4XX_HAL_VERSION_SUB2, STM32L4XX_HAL_VERSION_RC);
printf("HAL Driver V%hu.%hu.%hu.%hu\n", (uint8_t)(HAL_GetHalVersion()>>24), (uint8_t)(HAL_GetHalVersion()>>16),
(uint8_t)(HAL_GetHalVersion()>>8), (uint8_t) HAL_GetHalVersion());
printf("Si5351 STM32-driver V%u.%u.%u\n", __SI5351__, __SI5351_MINOR__, __SI5351_PATCHLEVEL__);
printf("GNU Compiler Collection V%u.%u.%u\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__

View File

@ -48,7 +48,7 @@ void ringbuf_test(void) {
ringbuf_destroy(rb1);
malloc_stats();
printf("rb1 after destroy is: 0x%08X\n", rb1);
printf("rb1 after destroy is: 0x%08X\n", (unsigned int) rb1);
}