1.1 --- a/pkg/landfall-examples/hw_info/hw_info.c Thu Nov 16 17:48:32 2023 +0100
1.2 +++ b/pkg/landfall-examples/hw_info/hw_info.c Thu Nov 16 22:03:51 2023 +0100
1.3 @@ -334,11 +334,11 @@
1.4 {
1.5 /* Read information from the clock and power management unit. */
1.6
1.7 - printf("%-5s %-10s %-7s %-6s %-12s %-12s %-24s %-12s %-3s\n"
1.8 - "%-5s %-10s %-7s %-6s %-12s %-12s %-24s %-12s %-3s\n",
1.9 + printf("%-10s %-15s %-7s %-6s %-12s %-12s %-24s %-12s %-3s\n"
1.10 + "%-10s %-15s %-7s %-6s %-12s %-12s %-24s %-12s %-3s\n",
1.11 "Id", "Clock", "Type", "Source", "Source Clock", "Source Freq.",
1.12 "Parameters", "Frequency", "On",
1.13 - sep(5), sep(10), sep(7), sep(6), sep(12), sep(12),
1.14 + sep(10), sep(15), sep(7), sep(6), sep(12), sep(12),
1.15 sep(24), sep(12), sep(3));
1.16
1.17 for (int i = 0; clocks[i].id != NULL; i++)
1.18 @@ -356,7 +356,7 @@
1.19 pos += result;
1.20 }
1.21
1.22 - printf("%-5s %-10s %-7s %-6d %-12s %-12lld %-24s %-12lld %-3s\n",
1.23 + printf("%-10s %-15s %-7s %-6d %-12s %-12lld %-24s %-12lld %-3s\n",
1.24 clocks[i].id,
1.25 clocks[i].name,
1.26 cpm_clock_type(cpm, clocks[i].clock),
1.27 @@ -1127,6 +1127,7 @@
1.28 uint32_t rtc_seconds = rtc_get_seconds(rtc);
1.29 uint32_t value = seconds * cpm_get_frequency(cpm, Clock_external) / 512;
1.30
1.31 + rtc_alarm_disable(rtc);
1.32 rtc_set_alarm_seconds(rtc, rtc_seconds + value);
1.33 rtc_hibernate(rtc);
1.34 }