Tags: tock/libtock-c
Tags
Tagged commit with original libtock-c API libtock-c has a long and organic history, resulting in an inconsistent API. Pull request #370 is a large-scale rewrite which creates standards for libtock-c and conforms the existing library. As this is a large API churn, and there is a long gap since the last formal release, we have tagged the final commit prior to merging the updated API, here. github.com//pull/370
Merge #296 296: Change `make size` to display family size information, rather than individual size listings r=ppannuto a=bradjc before: ``` $ make RISCV=1 Application size report for target cortex-m0: text data bss dec hex filename 1664 196 2400 4260 10a4 build/cortex-m0/cortex-m0.elf Application size report for target cortex-m3: text data bss dec hex filename 1456 196 2400 4052 fd4 build/cortex-m3/cortex-m3.elf Application size report for target cortex-m4: text data bss dec hex filename 1456 196 2400 4052 fd4 build/cortex-m4/cortex-m4.elf Application size report for target cortex-m7: text data bss dec hex filename 1456 196 2400 4052 fd4 build/cortex-m7/cortex-m7.elf Application size report for target rv32imac.0x20040060.0x80002800: text data bss dec hex filename 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x20040060.0x80002800.elf Application size report for target rv32imac.0x403B0060.0x3FCC0000: text data bss dec hex filename 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x403B0060.0x3FCC0000.elf Application size report for target rv32imc.0x41000060.0x42008000: text data bss dec hex filename 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x41000060.0x42008000.elf Application size report for target rv32imc.0x00080060.0x40008000: text data bss dec hex filename 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x00080060.0x40008000.elf Application size report for target rv32imc.0x20030080.0x10005000: text data bss dec hex filename 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20030080.0x10005000.elf Application size report for target rv32imc.0x20030880.0x10008000: text data bss dec hex filename 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20030880.0x10008000.elf Application size report for target rv32imc.0x20032080.0x10008000: text data bss dec hex filename 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20032080.0x10008000.elf Application size report for target rv32imc.0x20034080.0x10008000: text data bss dec hex filename 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20034080.0x10008000.elf Application size report for target rv32imac.0x40430060.0x80004000: text data bss dec hex filename 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x40430060.0x80004000.elf Application size report for target rv32imac.0x40440060.0x80007000: text data bss dec hex filename 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x40440060.0x80007000.elf ``` after: ``` $make RISCV=1 Application size report for arch family cortex-m: text data bss dec hex filename 1664 196 2400 4260 10a4 build/cortex-m0/cortex-m0.elf 1456 196 2400 4052 fd4 build/cortex-m3/cortex-m3.elf 1456 196 2400 4052 fd4 build/cortex-m4/cortex-m4.elf 1456 196 2400 4052 fd4 build/cortex-m7/cortex-m7.elf 6032 784 9600 16416 4020 (TOTALS) Application size report for arch family rv32i: text data bss dec hex filename 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x20040060.0x80002800.elf 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x403B0060.0x3FCC0000.elf 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x41000060.0x42008000.elf 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x00080060.0x40008000.elf 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20030080.0x10005000.elf 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20030880.0x10008000.elf 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20032080.0x10008000.elf 1752 108 2404 4264 10a8 build/rv32imc/rv32imc.0x20034080.0x10008000.elf 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x40430060.0x80004000.elf 1704 108 2404 4216 1078 build/rv32imac/rv32imac.0x40440060.0x80007000.elf 17328 1080 24040 42448 a5d0 (TOTALS) ``` Co-authored-by: Brad Campbell <bradjc5@gmail.com>
Merge #257 257: support: use deprecated instead of warning attribute r=ppannuto a=luismarques Clang support for the warning attribute has just landed but it isn't compatible with this kind of usage, as it requires that the original declaration be annotated with the same attribute. The warning attribute is also meant not to trigger when the use of the warned about symbol is eliminated through code optimizations, which isn't the point here. We can use the deprecated attribute instead, solving these issues. Co-authored-by: Luís Marques <luismarques@lowrisc.org>
Merge #194 194: libtock: Use __asm__ instead of asm r=ppannuto a=alistair23 The GCC documentation states: "When writing code that can be compiled with -ansi and the various -std options, use __asm__ instead of asm" Switch to use __asm__ to be more flexible. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Co-authored-by: Alistair Francis <alistair.francis@wdc.com>
Merge #85 85: Imix app: dont print error for enoack r=ppannuto a=hudson-ayers Currently, the Imix test app will print `Error sending packet -13` if a receiving device is not also active nearby and acking packets sent by the sender. This is a result of the 15.4 stack now correctly returning ENOACK when packets are transmitted successfully but not Acked (tock/tock#758). This PR fixes the Imix app to not indicate an error if TOCK_ENOACK is returned when sending a 15.4 packet. It also removes the "kernel" comment to reflect that LED(0) is no longer the led labeled "kernel" as that LED is no longer accessible from userspace. Co-authored-by: Hudson Ayers <hayers@stanford.edu>