Skip to content

Commit

Permalink
fixup! sys/new_delete: add malloc/free based new/delete implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jan 5, 2022
1 parent 5fb5974 commit cef86b8
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion pkg/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
menu "Packages"

rsource "arduino_adafruit_sensor/Kconfig"
rsource "arduino_lis3dh/Kconfig"
rsource "arduino_adafruit_lis3dh/Kconfig"
rsource "arduino_sdi_12/Kconfig"
rsource "c25519/Kconfig"
rsource "cayenne-lpp/Kconfig"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,27 @@
# directory for more details.
#

config PACKAGE_ARDUINO_LIS3DH
bool "Arduino Adafruit LIS3DH package"
config PACKAGE_ARDUINO_ADAFRUIT_LIS3DH
bool "Arduino Adafruit LIS3DH driver package"
depends on TEST_KCONFIG
select PACKAGE_ARDUINO_ADAFRUIT_SENSOR
help
Arduino driver package for the Adafruit Adafruit LIS3DH
Triple-Axis Accelerometer breakout with ST LIS3DH sensor

choice MODULE_ARDUINO_LIS3DH
bool "Device Interface"
depends on PACKAGE_ARDUINO_LIS3DH
depends on PACKAGE_ARDUINO_ADAFRUIT_LIS3DH
help
The driver supports LIS3DH connected either via SPI or
I2C bus.

config MODULE_ARDUINO_LIS3DH_I2C
config MODULE_ARDUINO_ADAFRUIT_LIS3DH_I2C
bool "I2C"
depends on HAS_PERIPH_I2C
select MODULE_PERIPH_I2C

config MODULE_ARDUINO_LIS3DH_SPI
config MODULE_ARDUINO_ADAFRUIT_LIS3DH_SPI
bool "SPI"
depends on HAS_PERIPH_SPI
select MODULE_PERIPH_SPI
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG_NAME=arduino_lis3dh
PKG_NAME=arduino_adafruit_lis3dh
PKG_URL=https://github.com/adafruit/Adafruit_LIS3DH.git
PKG_VERSION=0f4cda36805570ca87f91d811227edff2958053b
PKG_LICENSE=BSD
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions pkg/arduino_adafruit_lis3dh/Makefile.include
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
PSEUDOMODULES += arduino_adafruit_lis3dh_i2c
PSEUDOMODULES += arduino_adafruit_lis3dh_spi

INCLUDES += -I$(PKGDIRBASE)/arduino_adafruit_lis3dh
7 changes: 7 additions & 0 deletions pkg/arduino_adafruit_lis3dh/doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* @defgroup pkg_arduino_lis3dh Arduino Library for Adafruit LIS3DH breakout module
* @ingroup pkg
* @brief Arduino driver package for the Adafruit Adafruit LIS3DH
* Triple-Axis Accelerometer breakout with ST LIS3DH sensor
* @see https://github.com/adafruit/Adafruit_LIS3DH.git
*/
4 changes: 0 additions & 4 deletions pkg/arduino_lis3dh/Makefile.include

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/arduino_lis3dh/doc.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include ../Makefile.tests_common

DRIVER ?= arduino_lis3dh_i2c
DRIVER ?= arduino_adafruit_lis3dh_i2c

USEPKG += arduino_lis3dh
USEPKG += arduino_adafruit_lis3dh
USEMODULE += $(DRIVER)

include $(RIOTBASE)/Makefile.include
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# this file enables modules defined in Kconfig. Do not use this file for
# application configuration. This is only needed during migration.
CONFIG_PACKAGE_ARDUINO_LIS3DH=y
CONFIG_PACKAGE_ARDUINO_ADAFRUIT_LIS3DH=y
File renamed without changes.

0 comments on commit cef86b8

Please sign in to comment.