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

131 Commits

Author SHA1 Message Date
Marian Buschsieweke
de9b67bdc2
drivers/sht1x: Major refactoring
- Use RIOT's GPIO interface to access the sensor to increase portability
- Changed API to allow more than one sensor per board
- Added `sht1x_params.h` that specifies how the sensors is connected - each
  board can overwrite default settings by #defining SHT1X_PARAM_CLK and
  SHT1X_PARAM_DATA
- Changed arithmetic to use integer calculations only instead of floating point
  arithmetic
- Added support for checking the CRC sum
- Allow optional skipping of the CRC check to speed up measuring
- Added support for advanced features like reducing the resolution and skipping
  calibration to speed up measuring
- Allow specifying the supply voltage of sensor which heavily influences the
  temperature result (and use that information to calculate the correct
  temperature)
- Reset sensor on initialization to bring it in a well known state
- Support for the obscure heater feature. (Can be useful to check the
  temperature sensor?)
- Updated old SHT11 shell commands to the new driver interface, thus allowing
  more than one SHT10/11/15 sensor to be used
- Added new shell command to allow full configuration of all attached SHT1x
  sensors
- Removed old command for setting the SHT11 temperature offset, as this feature
  is implemented in the new configuration command
2018-06-27 08:58:00 +02:00
6bc494b928 boards: fix doxygen grouping 2018-06-11 19:12:02 +02:00
Marian Buschsieweke
a6f9a86597
drivers/cc110x: Moved cc110x_params.h from boards to driver
- Replaced magic numbers in the CC110X configuration of the MSBA2
   with SPI_DEV(x) and GPIO_PIN(x, y) macros
 - Adjusted implementation of `cc110x_params.h` to match the code of `at86rf2xx`
 - Made MSBA2's CC110X parameters the default configuration
2018-05-21 22:59:46 +02:00
3d4d9c7902 boards/*: instead of cpp-style, use C-style comments 2018-02-06 16:59:58 +01:00
Hauke Petersen
b7943900fc boards/msba2-based: move shared code to common/msba2 2017-11-30 10:26:35 +01:00
ae51dc55d0 boards: adapt to reorganized CPU Makefile.features 2017-11-02 12:59:46 +01:00
167bd30453 all: fix my email address 2017-10-20 15:02:41 +02:00
56fa737d83 boards: makefiles indentation cleanup 2017-09-22 14:53:01 +02:00
02e055fc81 make: include cpu Makefile.features from board Makefile.features 2017-09-14 13:15:52 +02:00
882bcff048 boards: replace @brief with @name when necessary 2017-04-13 12:10:30 +02:00
a3497539c2 boards: fix PWM doxygen doc in periph_conf 2017-02-16 17:59:21 +01:00
ebc35a0613 boards: fix doxygen @brief in periph.conf 2017-01-27 10:31:56 +01:00
Hauke Petersen
10b0013315 cpu/lpc2387+boards: adapted to new SPI API
- adapted the SPI driver
- adapted all boards using the CPU
2017-01-25 16:46:05 +01:00
Oleg Hahm
7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Hauke Petersen
4605292fe8 boards/msba2: adapted PWM configuration slightly 2017-01-17 10:50:02 +01:00
10e9336c78 boards: adapt to automatically included boards/$board/Makefile.dep 2016-09-29 15:41:12 +02:00
Oleg Hahm
10f5f1aa33 make: introduce netif_default pseudomodule
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
2016-03-24 16:47:30 +01:00
Hauke Petersen
a2d78b465d boards/msba2: unified LED defines 2016-03-15 16:24:49 +01:00
b704d774f9 board: msba2: fix msba2-common module name 2016-03-05 20:41:30 +01:00
Hauke Petersen
9988f00d7b boards: fixed some PWM definitions 2016-02-12 16:10:01 +01:00
Joakim Nohlgård
7835ab2be7 make: Move BOARD and CPU includes to Makefile.modules 2016-02-10 16:37:03 +01:00
Hauke Petersen
db25206a58 boards: use default values for STDIO defines 2016-01-05 12:08:31 +01:00
Hauke Petersen
ac2b9f2524 boards: changed module name to 'board' 2015-12-07 17:53:22 +01:00
Hauke Petersen
eb46b6b80d boards/msba2: adjusted to UART changes 2015-10-27 14:59:38 +01:00
Hauke Petersen
528e832c90 boards: cleaned up entries in Makefile.features 2015-10-21 16:45:21 +02:00
63acf0bb19 boards: msba2: add cc110x support 2015-09-23 18:56:00 +02:00
cbb7750202 boards: msba2: add xtimer tuning values, remove HW_TIMER define 2015-09-16 10:58:55 +02:00
Hauke Petersen
a052f5515f boards/msba2: added periph timer configuration 2015-09-04 15:32:50 +02:00
3b94a0d497 lpc2387/msba2/avsextrem: fix doxygen warnings 2015-08-14 16:50:41 +02:00
4dd63dd24e cpu: lpc2387: add periph/spi support 2015-08-14 16:50:41 +02:00
bd76626fb5 cpu: lpc2387: add periph/uart driver 2015-08-14 16:50:41 +02:00
3c5f31eb95 cpu: lpc2387: add periph/gpio imlementation 2015-08-14 16:50:41 +02:00
Hauke Petersen
bff1d7e73e boards: remove feature 'transceiver' 2015-08-06 12:13:54 +02:00
da20bb9053 boards: msba2: remove cc110x_legacy support 2015-08-06 12:13:18 +02:00
BigDaddyD
b6bd067863 boards: removed leading underscores from macros
* also added a trailing underscore to header guards for consistency

Commit for PR 2623, repairing header file include guards.
This PR is intended to fix the include guards in files under RIOT/boards

SQUASH ME: fix underscore removal overdos

SQUASH ME: consistent macro naming

SQUASH ME: missed that one

SQUASH ME: fixed overdo

SQUASH ME: consistency
2015-06-24 15:54:36 +02:00
Tom Van den Eynde
087b3e6b85 boards/msba2: split FEATURES_PROVIDED over multiple lines 2015-03-20 00:13:13 +01:00
Philipp Rosenkranz
02d0c88284 tests/travis: split buildtests into MCU groups. 2015-02-22 15:04:52 +01:00
Oleg Hahm
d798539f86 make: boards: add feature config to Makefiles 2014-12-22 20:34:40 +01:00
Oleg Hahm
60cd0d357d periph_rtc: streamline lpc2387 and cc430 naming 2014-12-16 17:02:44 +01:00
Oleg Hahm
498edb1854 cc430: lpc2387: switch to new periph/rtc interface
Removes the old interface.
2014-12-16 17:02:44 +01:00
Oleg Hahm
000450c894 Merge pull request #2117 from OlegHahm/doxygen_eliminate_warnings
Doxygen eliminate warnings pt. 2
2014-12-04 17:18:42 +01:00
Martin
bfaacbbd38 cpu/arm_common: c++: initial support for c++ added _kill (weak) and weak attribute for _kill_r
boards/msba2: provided c++ feature (cpp)
2014-12-03 07:30:29 +01:00
Oleg Hahm
ae8dd90884 doc: added missing closing doxygen brackets 2014-11-30 21:16:41 +01:00
BytesGalore
fc56535dd3 boards: add extern "C" to header files 2014-10-31 11:27:59 +01:00
Oleg Hahm
3c0d91720b Revert "boards: introduced a HAS_RADIO define"
This reverts commit 4238f40429.
2014-10-30 23:13:52 +01:00
Oleg Hahm
4238f40429 boards: introduced a HAS_RADIO define 2014-10-30 17:52:37 +01:00
Ludwig Ortmann
d78c101b08 Merge pull request #1880 from fnack/cc110x_rename
drivers/cc110x: rename driver to cc110x_legacy_csma
2014-10-28 09:54:41 -07:00
Fabian Nack
53b0ad2be5 drivers - cc110x: rename cc110x to cc110x_legacy_csma 2014-10-28 16:18:50 +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
Oleg Hahm
c33e1b5dad Merge pull request #1844 from OlegHahm/doxygen_cleanup
Doxygen cleanup
2014-10-24 16:04:01 +02:00
Fabian Nack
07fff37efe drivers - cc110x_ng: rename ng driver to legacy 2014-10-24 09:55:31 +02:00
Oleg Hahm
481d4f2ee3 doc: fix ambiguous file name warnings
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Ludwig Ortmann
b3ecfd0a6e make: introduce and use periph_pwm feature 2014-10-16 19:35:41 +02:00
René Kijewski
f49bd3e660 make: add Makefile.features telling the BOARDs' features
Please see #1715.
Closes #1715.

This PR implements the new Makefile variables "FEATURES_PROVIDED" and
"FEATURES_REQUIRED". A board *can* have a new file `Makefile.features`
which looks like:

```make
FEATURES_PROVIDED = transceiver
```

An application can have a corresponding line

```make
FEATURES_REQUIRED = transceiver
```

If the selected BOARD does not fulfil the requirements of the
application, then a *warning* is issued at compile time.

This change only includes the feature "transceiver", further features
are expected to be listed in further PRs. The requirement "transceiver"
is automatically added if the application uses the module
"defaulttransceiver".

`make buildtest` understands the new feature listing, so the user won't
need to add boards to `BOARD_BLACKLIST` manually.

Part of the change are the added Make targets
* `info-features-missing`, which prints the required features
  `\setminus` the provided features. The output is empty if there are no
  features missing.
* `info-boards-features-missing`, the same as `info-features-missing`
  but as a table for all boards, but heeded `BOARD_WHITELIST` and
  `BOARD_BLACKLIST`.

Applications don't have to use this new feature. This change does not
break existing Makefile.
2014-10-06 17:42:11 +02:00
Ludwig Ortmann
b7992922ce fix license headers in non-.c files 2014-08-23 16:16:26 +02:00
Hauke Petersen
9a90eae1ba cpu: adjusted pwm driver impl for lpc2387 2014-08-07 16:14:09 +02:00
Ludwig Ortmann
d55da67fb6 Merge pull request #1329 from LudwigOrtmann/riot_license
RIOT default license header change
2014-07-31 23:12:47 +02:00
Ludwig Ortmann
5fdce06b3b doc: use lgplv2.1-short license header instead of lgplv2-short-v1 2014-07-31 22:57:20 +02:00
Ludwig Ortmann
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
Cenk Gündoğan
7ca2e874e1 converting tabs to spaces in boards (#1439)
This PR converts tabs to white spaces.
The statement I used for the conversion:
'''find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;'''
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:34:28 +02:00
Ludwig Ortmann
b6846e31fc doc: fix most occurences of FU as an author
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
Hauke Petersen
749d6a7446 Merge pull request #1318 from haukepetersen/msba2_pwm
cpu: added low-level PWM driver for the lpc2387
2014-06-22 13:07:48 +02:00
René Kijewski
467b41ad49 make: easifier usage of module subdirectories
Many modules have subdirectories. Often these subdirectories should only
be included under certain circumstances. Modules that use submodules
currently need to use this pattern:

```make
DIRS = …

all: $(BINDIR)$(MODULE).a
   @for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;

include $(RIOTBASE)/Makefile.base

clean::
   @for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
```

This PR moves the `all:` and `clean::` boilerplate into `Makefile.base`.
2014-06-17 15:49:32 +02:00
Hauke Petersen
b588d48a63 boards: added periph_conf.h for msba2 and avsextrem 2014-06-11 19:54:21 +02:00
Oleg Hahm
4ddc9539fd documentation: unified descriptive text for boards 2014-05-24 15:03:06 +02:00
Jan S
ba907471f3 fixed printf specifiers 2014-05-15 17:42:57 +02:00
Thomas Eichinger
c6bf3f1ab1 boards: fix license headers to LGPL
harmonises license headers in msb-430, msba2-common,
msba2 and wsn430-common

fixes #1160
2014-05-15 09:04:09 +02:00
Ludwig Ortmann
088b15783b license: %s/FeuerWare/RIOT/g 2014-05-13 17:10:48 +02:00
René Kijewski
a8064fd97c Automatically remove dups in $(USEMODULE) 2014-04-29 00:06:19 +02:00
René Kijewski
300d6b3e35 Make: exterminate 'clean' buildtarget
Closes #993.

We do not need to descend into the modules to know what to do on
`make clean BOARD=blub`. We can just invoke `rm -rf bin/blub`.

This PR only keeps the descending into the USEPKGs, since they might
want to delete cached/downloaded/extracted data.
2014-04-09 23:07:52 +02:00
Ludwig Ortmann
8ac4f3332d core cpu: add defaulttransceiver pseudomodule
update examples/default
2014-03-18 10:18:15 +01:00
Ludwig Ortmann
9b61d95545 make: don't ignore failures in for loops
Add `|| exit 1` to all constructs like `@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;`, so that compilation stops on the first error.
2014-03-12 11:09:04 +01:00
Ludwig Ortmann
2525920426 remove trailing whitespace and newlines 2014-02-11 18:45:06 +01:00
Oleg Hahm
26ca054abd moved board dependent cc110x stub 2014-02-05 18:57:54 +01:00
Oleg Hahm
717cab33ae moved pllfeed inline function to header
Also removed useless copyright header.
2014-01-20 19:38:01 +01:00
Oleg Hahm
c7d985d371 removed redundant include pathes from Makefiles 2014-01-05 16:11:08 +01:00
Oleg Hahm
55f31a4829 simplify include structure for boards
* do not overwrite CFLAGS in boards Makefile
2014-01-05 16:11:07 +01:00
Oleg Hahm
1e665b49de build everything in the project directory 2014-01-05 16:11:07 +01:00
Oleg Hahm
903ec54a43 making include directives consistent 2013-12-19 15:31:37 +01:00
Hauke Petersen
c629229e8d Added the boards folder to the doxygen tree
- added boards to riot.doxyfile
- fixed group definitions for all boards
2013-12-16 14:00:37 +01:00
Oleg Hahm
232e205137 moved boards into subdirectory 2013-11-06 10:11:57 -08:00