mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-21 23:31:11 +00:00
Cristiano De Alti
1bdec853e1
Prevent interger overflow on the AVR
Compiling examples/er-rest-example for the avr-raven gives: integer overflow in expression [-Woverflow] On the AVR int is 16 bit and some calculations may overflow. This happens for example with multiplications involving CLOCK_SECOND where all the operands are of type int. Casting one of the operands to clock_time_t forces the arithmetic to clock_time_t without increasing the size of the program (the calculation is performed at compile time).
…
The Contiki Operating System
Contiki is an open source operating system that runs on tiny low-power microcontrollers and makes it possible to develop applications that make efficient use of the hardware while providing standardized low-power wireless communication for a range of hardware platforms.
Contiki is used in numerous commercial and non-commercial systems, such as city sound monitoring, street lights, networked electrical power meters, industrial monitoring, radiation monitoring, construction site monitoring, alarm systems, remote house monitoring, and so on.
For more information, see the Contiki website:
Description
Languages
C
83.7%
Java
11.7%
Python
1.8%
C++
0.7%
Assembly
0.6%
Other
1.3%