1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

4448 Commits

Author SHA1 Message Date
Oleg Hahm
20dc7b0b00 timex: remove redundant struct timex_t declaration
timex_t is available as a typedef, declaring it as `struct timex_t` in
addition is not necessary.
2014-10-28 14:25:34 +01:00
Oleg Hahm
4b3fa4925a timex: update copyrights 2014-10-28 14:25:34 +01:00
Oleg Hahm
67f82fcee0 timex: replace print by a to_str function
Instead of printing the timestamp, it's more flexible to convert it into
a string.
2014-10-28 14:25:34 +01:00
Oleg Hahm
8c4a874161 timex: make functions static inline
This commit makes all one- or two-liners in timex a static inline
function, defined in the header file.
2014-10-28 14:25:34 +01:00
fe2284454d Merge pull request #1651 from Kijewski/ringbuffer-use-memcpy
sys:ringbuffer: memcpy and static inline
2014-10-28 13:03:12 +01:00
René Kijewski
9cccf6bf8e sys:ringbuffer: use memcpy in ringbuffer_get 2014-10-28 12:22:00 +01:00
René Kijewski
c0914ec451 sys:ringbuffer: static inline ringbuffer_init 2014-10-28 12:21:46 +01:00
Ian Martin
81dea364a5 cpu/cc2538: sbrk() checks if the requested memory is really available. 2014-10-27 20:00:52 -04:00
Oleg Hahm
93ac114bc3 core: move thread_yield*() to thread.[ch]
Although it might conceptionally rather belong to the scheduler, the
yield functions are prefixed with thread_ and thus, belong there.
2014-10-28 00:56:37 +01:00
Oleg Hahm
6f53cd484d core: make sched_runqueue public
Reverting b604832, because thread_yield() needs to access this
information.
2014-10-28 00:56:14 +01:00
Oleg Hahm
6b4ac47708 Merge pull request #1877 from LudwigOrtmann/adc_legacy
ADC legacy
2014-10-27 18:42:08 +01:00
Oleg Hahm
d8bad332bf Merge pull request #1881 from LudwigOrtmann/purge_feuerware_radio
boards, sys: purge feuerware_radios
2014-10-27 18:16:00 +01:00
cbab2efe7e core: hwtimer: use disable/restoreIRQ 2014-10-27 17:44:33 +01:00
41e1305517 Merge pull request #1882 from LudwigOrtmann/disableIRQ-type
core,sys: fix storage types for irq API usage
2014-10-27 16:36:49 +01:00
Ludwig Ortmann
c540c8a3a9 cpu/mc1322x: fix mc1322x-adc.h cpp compatability 2014-10-27 16:36:43 +01:00
Ludwig Ortmann
5dbab29df0 cpu/mc1322x: fix mc1322x-adc.h license 2014-10-27 16:34:24 +01:00
Ludwig Ortmann
035dbce58d drivers/adc_legacy: add copyright, author 2014-10-27 16:33:49 +01:00
Ludwig Ortmann
eceb656c49 core,sys: fix storage types for irq API usage
* should not have any effect as long as `unsigned` and `int` are compatible
* also fix two cosmetic `unsigned int` -> `unsigned` for consistency
2014-10-27 16:25:23 +01:00
Ludwig Ortmann
975412e16d boards, sys: purge feuerware_radios
* `feuerware_radios` is unused, remove from `radio.h` header
* FEUERWARE_CONF_NUM_RADIOS is superfluous without it, remove all occurrences
2014-10-27 14:49:25 +01:00
René Kijewski
765c88d08a make: allow drivers to implement features
This change allows drivers (or any module for that matter) to provide
features. This is e.g. useful if a board does not have a transceiver,
but your application uses `USEMODULE += some_driver`, which implements
the transceiver interface.

The line `FEATURES_PROVIDED += some_feature` should go to the guarded
block in `{sys,drivers}/Makefile.include`.
2014-10-26 23:54:10 +01:00
René Kijewski
938d7d441b make: expose used features with -DFEATURE_ABC
All used feature requests (both in `FEATURES_REQUIRED` and
`FEATURES_OPTIONAL`) that could be satisfied get exposed to C with
`-DFEATURE_ABC`.
2014-10-26 23:27:43 +01:00
René Kijewski
162850b332 make: Implement optional features
Fixes #1876

This PR introduces `FEATURES_OPTIONAL` which can be used to tell the
Make system, that the application would like to use some feature, but
the build should proceed even if the selected board cannot provide the
optional feature.

`make buildtest` and `make info-supported-boards` heed this variable
when examining the list of supported boards.

If a word is present in `FEATURES_REQUIRED` and `FEATURES_OPTIONAL`,
then `FEATURES_OPTIONAL` takes precedence.
2014-10-26 23:18:58 +01:00
Ludwig Ortmann
324a57a914 cpu/mc1322x: rename adc header to mc1322x-adc 2014-10-25 17:11:18 +02:00
Ludwig Ortmann
d42d226d66 cpu: use adc_legacy.h where appropriate 2014-10-25 17:09:22 +02:00
Ludwig Ortmann
c59dd9787f drivers: mark adc.h as legacy 2014-10-25 17:04:29 +02:00
Ludwig Ortmann
7476ce8abf doc: mark legacy adc API as deprecated 2014-10-25 16:36:10 +02:00
Christian Mehlis
b7fc0df5d3 Merge pull request #1875 from LudwigOrtmann/doxygen-periph-modules
doc: make peripheral interfaces modules
2014-10-25 16:17:51 +02:00
Ludwig Ortmann
5523ec67f3 doc: make peripheral interfaces modules
also remove `@file` parameters
2014-10-25 15:37:04 +02:00
Ian Martin
34086fc6c6 cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in(). 2014-10-24 14:36:06 -04:00
Ludwig Ortmann
0f36f8c09c Merge pull request #1873 from LudwigOrtmann/doxygen-periph
doxygen: add predefines for periph headers
2014-10-24 08:02:30 -07:00
Ludwig Ortmann
8f76622ebf doc: add doxygen predefines for periph headers 2014-10-24 16:57:50 +02:00
Hauke Petersen
e6e37e0371 Merge pull request #1864 from haukepetersen/add_board_openmote
boards: added support for OpenMote
2014-10-24 16:50:29 +02:00
Oleg Hahm
c33e1b5dad Merge pull request #1844 from OlegHahm/doxygen_cleanup
Doxygen cleanup
2014-10-24 16:04:01 +02:00
PeterKietzmann
7aec98c57d Added a function for the slave to print received data. 2014-10-24 15:43:01 +02:00
Hauke Petersen
616ff64929 Merge pull request #1771 from PeterKietzmann/correct_stm32f4_spi_return_values
cpu/stm32f4: Changed SPI return values to API definitions
2014-10-24 15:37:22 +02:00
Hauke Petersen
c6d0e282fd examples: blacklisted openmote for riot_and_cpp 2014-10-24 15:34:15 +02:00
Hauke Petersen
a0ac86ed16 boards: added support for OpenMote 2014-10-24 15:34:12 +02:00
Hauke Petersen
ffea9fc4e8 cpu/cc2538: added linkerscript for cc2538sf53 2014-10-24 15:25:44 +02:00
Hauke Petersen
eb6891c14a Merge pull request #1863 from haukepetersen/fix_cc2538_gpiodefs
cpu/cc2538: adjusted GPIO register definitions
2014-10-24 15:17:04 +02:00
Thomas Eichinger
ede33a6364 cpu/stm32f1: fix i2c read for N=2 bytes 2014-10-24 14:48:31 +02:00
Hauke Petersen
6889fd1f89 cpu/cc2538: adjusted GPIO register definitions 2014-10-24 14:43:52 +02:00
Ludwig Ortmann
ac150e9a3b Merge pull request #1840 from LudwigOrtmann/cppcheck-selecta
Travis + cppcheck: let cppcheck fail for new files
2014-10-24 05:40:40 -07:00
Hauke Petersen
9051c7be4b Merge pull request #1861 from haukepetersen/fix_cc2538_irqvector
cpu/cc2538: cleaned up IRQ vector definition
2014-10-24 14:40:10 +02:00
Thomas Eichinger
2e9d4cbba4 Merge pull request #1862 from haukepetersen/fix_cc2538_includecleanup
cpu/cc2538: centralized all cpu specific includes
2014-10-24 14:23:43 +02:00
Thomas Eichinger
414be5257d cpu/stm32f1: fix i2c master read for N>2 bytes
This fixes reading more than 2 bytes from the slave device.
In the current implementation the last byte was not read from
data register and the termination sequence buggy.
2014-10-24 14:08:27 +02:00
Hauke Petersen
ca20603d54 cpu/cc2538: made ISR names configurable by a board 2014-10-24 14:00:53 +02:00
Hauke Petersen
eee159ee74 board/cc2538dk: made ISR functions configurable 2014-10-24 14:00:53 +02:00
Hauke Petersen
24ac5a7e94 cpu/cc2538: cleaned up IRQ vector definition 2014-10-24 14:00:47 +02:00
Ludwig Ortmann
6a5026803c Merge pull request #1842 from fnack/cc110x_ng_rename
drivers/cc110x_ng: rename driver to cc110x_legacy
2014-10-24 03:07:37 -07:00
Ludwig Ortmann
f8b8ef3bab Travis: let cppcheck fail for new files
Change Travis configuration for cppcheck to fail on new files and keep on
warning about existing ones.
2014-10-24 11:43:00 +02:00