Skip to content

Commit

Permalink
Merge pull request #15985 from MrKevinWeiss/pr/umorse/kconfig
Browse files Browse the repository at this point in the history
pkg/umorse: Add Kconfig support
  • Loading branch information
leandrolanzieri committed Feb 22, 2021
2 parents e0211f4 + 991970a commit 9fb93af
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .murdock
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ tests/mtd_mapper tests/driver_o* tests/driver_p* tests/driver_q*
tests/driver_r* tests/driver_s* tests/driver_t* tests/driver_u*
tests/driver_v*"}
: ${TEST_KCONFIG_native:="examples/hello-world tests/periph_* tests/sys_crypto
tests/test_tools tests/prng_* tests/xtimer_* tests/ztimer_* tests/driver_ws281x
tests/posix_sleep"}
tests/prng_* tests/xtimer_* tests/ztimer_* tests/driver_ws281x
tests/posix_sleep tests/pkg_umorse"}

: ${TEST_WITH_CONFIG_SUPPORTED:="examples/suit_update tests/driver_at86rf2xx_aes"}

Expand Down
1 change: 1 addition & 0 deletions pkg/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ menu "Packages"
rsource "driver_bme680/Kconfig"
rsource "semtech-loramac/Kconfig"
rsource "tinydtls/Kconfig"
rsource "umorse/Kconfig"
rsource "wakaama/Kconfig"

endmenu # Packages
10 changes: 10 additions & 0 deletions pkg/umorse/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2021 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#

config PACKAGE_UMORSE
bool "uMorse - Morse code encoder"
depends on MODULE_POSIX_SLEEP
4 changes: 2 additions & 2 deletions tests/pkg_umorse/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
include ../Makefile.tests_common

USEMODULE += xtimer

USEPKG += umorse

USEMODULE += ztimer

UMORSE_DELAY_DIT ?= 120
CFLAGS += -DUMORSE_DELAY_DIT=$(UMORSE_DELAY_DIT)

Expand Down
6 changes: 6 additions & 0 deletions tests/pkg_umorse/app.config.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_MODULE_POSIX_SLEEP=y
CONFIG_MODULE_ZTIMER=y
CONFIG_MODULE_ZTIMER_PERIPH_TIMER=y
CONFIG_MODULE_ZTIMER_USEC=y
CONFIG_MODULE_ZTIMER_MSEC=y
CONFIG_PACKAGE_UMORSE=y
6 changes: 3 additions & 3 deletions tests/pkg_umorse/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

#include "board.h"
#include "led.h"
#include "ztimer.h"
#include "periph_conf.h"
#include "xtimer.h"
#define UMORSE_MSLEEP(m) xtimer_msleep(m)

#include "umorse.h"
#include "print.h"

#define CODE_LEN (64U)
#define UMORSE_MSLEEP(m) ztimer_sleep(ZTIMER_MSEC, m);
#define CODE_LEN (64U)

void blink_dit(void *args, uint8_t flags)
{
Expand Down

0 comments on commit 9fb93af

Please sign in to comment.