Re: STM32 share EXTI can not work properly, need some fix below

Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org>
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
>>>>> "Nathan" == Nathan Moore <[email protected]> writes:

    >> 
    >> 
    >> Follows the Nut/OS coding rules (we never use '1 == x', always 'x ==
    >> 1')
    >> 
    >> 
    Nathan> Why is that?  While (x == 1) seems more natural (1 == x) is
    Nathan> safer since the accidental (1 = x) will generate a compiler
That was also my reasoning.
However recent gcc already generates a warning with "if (x = 1)", but more
complex expressions in the if clause will not.

In the meantime I switched again to the NutOs style.

Bye
-- 
Uwe Bonnes                bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.