[riot-devel] Use fixed size types in 'hwtimer_arch' function signatures

Martine Lenders mlenders at inf.fu-berlin.de
Wed Feb 12 10:10:58 CET 2014

I think that this is dependent on the use-case. For the timer it may be a
good idea, as for example type definitions in the network stack. Where I
see a problem with fixed type sizes in data that comes from certain
periphirals, though (e.g. network hardware addresses, which are currently
16-bit fixed size in the transceiver module, though the cc1100 chip e.g.
uses 8-bit addresses, IEEE 802.15.4 uses 64-bit AND 16-bit addresses, and
when we want to have Ethernet support sometime we have to deal with 48-bit


2014-02-12 9:57 GMT+01:00 ROUSSEL Kévin <Kevin.Roussel at inria.fr>:

> Hello,
> While working on the MSP430 hwtimer implementations, I came to wonder
> whether we should use fixed size type (i.e.: uint32_t or uint8_t) instead
> of ambiguous types like long or short.
> It seems to me fixed bit sizes would be preferable, since we work on
> various architectures for which long or short may not mean the same number
> of bits. What do you think?
> --
>      Kévin Roussel
>      Doctorant, projet LAR
>      Équipe MADYNES, INRIA Nancy Grand-Est / LORIA
>      Tél. : +33 3 54 95 86 27
>      Kevin.Roussel at inria.fr
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> http://lists.riot-os.org/mailman/listinfo/devel
-------------- n?chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20140212/b6be4204/attachment.html>

More information about the devel mailing list