Skip to content

Instantly share code, notes, and snippets.

View kaspar030's full-sized avatar

Kaspar Schleiser kaspar030

  • Berlin, Germany
  • 09:46 (UTC +02:00)
View GitHub Profile
diff --git a/cpu/efm32/periph/timer.c b/cpu/efm32/periph/timer.c
index 08fd27f17b..b3700eaf67 100644
--- a/cpu/efm32/periph/timer.c
+++ b/cpu/efm32/periph/timer.c
@@ -169,12 +169,7 @@ int timer_set_absolute(tim_t dev, int channel, unsigned int value)
return -1;
}
- /* this accounts for some timer being 16-bit and others 32-bit */
- if (value > TIMER_TopGet(tim)) {
/*
* Copyright (C) 2020 Kaspar Schleiser <kaspar@schleiser.de>
* 2020 Freie Universität Berlin
* 2020 Inria
*
* 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.
*/
diff --git a/cpu/cortexm_common/thread_arch.c b/cpu/cortexm_common/thread_arch.c
index c2f91d4bbe..b3d57f486c 100644
--- a/cpu/cortexm_common/thread_arch.c
+++ b/cpu/cortexm_common/thread_arch.c
@@ -305,6 +305,7 @@ void __attribute__((naked)) __attribute__((used)) isr_pendsv(void) {
/* save context by pushing unsaved registers to the stack */
/* {r0-r3,r12,LR,PC,xPSR,s0-s15,FPSCR} are saved automatically on exception entry */
".thumb_func \n"
+ ".syntax unified \n"
This file has been truncated, but you can view the full file.
<!--
-*- coding: utf-8 -*-
-*- mode: python -*-
elf_diff
Copyright (C) 2019 Noseglasses (shinynoseglasses@gmail.com)
This program is free software: you can redistribute it and/or modify it under it under
This file has been truncated, but you can view the full file.
<!--
-*- coding: utf-8 -*-
-*- mode: python -*-
elf_diff
Copyright (C) 2019 Noseglasses (shinynoseglasses@gmail.com)
This program is free software: you can redistribute it and/or modify it under it under
diff --git a/drivers/include/srf04.h b/drivers/include/srf04.h
index 3856b34f0f..6e985e9851 100644
--- a/drivers/include/srf04.h
+++ b/drivers/include/srf04.h
@@ -54,7 +54,7 @@ typedef struct {
*/
typedef struct {
srf04_params_t p; /**< GPIO Ports of device */
- int distance; /**< raw time of flight distance */
+ int32_t distance; /**< raw time of flight distance */
<!--
-*- coding: utf-8 -*-
-*- mode: python -*-
elf_diff
Copyright (C) 2019 Noseglasses (shinynoseglasses@gmail.com)
This program is free software: you can redistribute it and/or modify it under it under
[kaspar@ng riotdocker (master)]$ REPO=https://github.com/aabadie/RIOT sh bench.sh breeze c59f4af054dda14f344b79f05adc748ccac1779b
-- testing https://github.com/aabadie/RIOT commit c59f4af054dda14f344b79f05adc748ccac1779b
Cleaning cache...
^[[CStatistics cleared
Cleared cache
get_jobs warmup...
[35s] 447/447 jobs done (447 passed, 0 failed.) ETA: 0s
first run...
[5m:37s] 1525/1525 jobs done (1525 passed, 0 failed.) ETA: 0s
ccache stats:
[kaspar@ng riotdocker (master)]$ REPO=https://github.com/aabadie/RIOT sh bench.sh breeze def5f80998fdeb63030f709d818f40584518fd28
-- testing https://github.com/aabadie/RIOT commit def5f80998fdeb63030f709d818f40584518fd28
Cleaning cache...
Statistics cleared
Cleared cache
get_jobs warmup...
[35s] 447/447 jobs done (447 passed, 0 failed.) ETA: 0s
first run...
[5m:17s] 1525/1525 jobs done (1525 passed, 0 failed.) ETA: 0s
ccache stats:
diff --git a/tests/thread_msg_seq/main.c b/tests/thread_msg_seq/main.c
index d830323815..3b93f7cfb2 100644
--- a/tests/thread_msg_seq/main.c
+++ b/tests/thread_msg_seq/main.c
@@ -57,14 +57,13 @@ int main(void)
p_main = sched_active_pid;
p1 = thread_create(t1_stack, sizeof(t1_stack), THREAD_PRIORITY_MAIN - 1,
- THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST,
- sub_thread, "nr1", "nr1");