2017-02-09 13:18:44 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2016, Imagination Technologies Limited and/or its
|
|
|
|
* affiliated group companies.
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2017-06-22 15:43:17 +02:00
|
|
|
/**
|
|
|
|
* @ingroup cpu_mips32r2_common
|
|
|
|
* @ingroup drivers_periph_timer
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Implementation of the low-level timer driver
|
|
|
|
*
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
#include <mips/cpu.h>
|
|
|
|
#include <mips/m32c0.h>
|
|
|
|
#include <mips/regdef.h>
|
|
|
|
#include <mips/asm.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include <periph/timer.h>
|
|
|
|
#include "cpu_conf.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "sched.h"
|
|
|
|
#include "thread.h"
|
|
|
|
#include "board.h"
|
|
|
|
#include "irq.h"
|
|
|
|
#include "timex.h"
|
|
|
|
#include "div.h"
|
|
|
|
#include <sys/time.h>
|
|
|
|
|
2019-12-05 23:31:59 +01:00
|
|
|
#include "eic.h"
|
2016-11-07 14:28:47 +01:00
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
/*
|
|
|
|
* setting TIMER_ACCURACY_SHIFT lower will improve accuracy
|
|
|
|
* at the cost of more regular interrupts (hence less power efficient).
|
|
|
|
* */
|
|
|
|
#define TIMER_ACCURACY_SHIFT (10)
|
|
|
|
#define TIMER_ACCURACY (1 << TIMER_ACCURACY_SHIFT)
|
|
|
|
#define CHANNELS (3)
|
|
|
|
|
|
|
|
/* TICKS_PER_US must be set in the board file */
|
|
|
|
#ifndef TICKS_PER_US
|
|
|
|
#error "Please set TICK_PER_US in your board file"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The base MIPS count / compare timer is fixed frequency at core clock / 2
|
|
|
|
* and is pretty basic This timer is currently only supported in Vectored
|
2016-11-07 14:28:47 +01:00
|
|
|
* Interrupt Mode (VI), EIC mode is partially supported in non-vectored mode
|
|
|
|
* only.
|
2017-02-09 13:18:44 +01:00
|
|
|
*
|
|
|
|
* RIOT's xtimer expects the timer to operate at 1MHZ or any 2^n multiple or
|
|
|
|
* factor of this, thus we maintain a software timer which counts at 1MHz.
|
|
|
|
* This is not particularly power efficient and may add latency too.
|
|
|
|
*
|
|
|
|
* If other SoC specific timers are available which are more flexible then
|
|
|
|
* it is advised to use them, this timer is a fallback version
|
|
|
|
* that should work on all MIPS implementations.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
static timer_isr_ctx_t timer_isr_ctx;
|
|
|
|
volatile unsigned int counter;
|
|
|
|
volatile unsigned int compares[CHANNELS];
|
2019-12-05 23:31:59 +01:00
|
|
|
|
|
|
|
static void timer_isr(void)
|
|
|
|
{
|
|
|
|
IFS0CLR =_IFS0_CTIF_MASK;
|
|
|
|
|
|
|
|
uint32_t status = irq_disable();
|
|
|
|
counter += TIMER_ACCURACY;
|
|
|
|
irq_restore(status);
|
|
|
|
|
|
|
|
if (counter == compares[0]) {
|
|
|
|
/*
|
|
|
|
* The Xtimer code expects the ISR to take some time
|
|
|
|
* but our counter is a fake software one, so bump it a
|
|
|
|
* bit to give the impression some time elapsed in the ISR.
|
|
|
|
* Without this the callback ( _shoot(timer) on xtimer_core.c )
|
|
|
|
* never fires.
|
|
|
|
*/
|
|
|
|
counter += TIMER_ACCURACY;
|
|
|
|
timer_isr_ctx.cb(timer_isr_ctx.arg, 0);
|
2020-01-10 22:52:55 +01:00
|
|
|
mips32r2_isr_end();
|
2019-12-05 23:31:59 +01:00
|
|
|
}
|
|
|
|
if (counter == compares[1]) {
|
|
|
|
timer_isr_ctx.cb(timer_isr_ctx.arg, 1);
|
2020-01-10 22:52:55 +01:00
|
|
|
mips32r2_isr_end();
|
2019-12-05 23:31:59 +01:00
|
|
|
}
|
|
|
|
if (counter == compares[2]) {
|
|
|
|
timer_isr_ctx.cb(timer_isr_ctx.arg, 2);
|
2020-01-10 22:52:55 +01:00
|
|
|
mips32r2_isr_end();
|
2019-12-05 23:31:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
mips_setcompare(mips_getcount() + TICKS_PER_US * TIMER_ACCURACY);
|
|
|
|
}
|
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The mips toolchain C library does not implement gettimeofday()
|
|
|
|
*
|
|
|
|
* implement it here using the timer.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
int gettimeofday(struct timeval *__restrict __p, void *__restrict __tz)
|
|
|
|
{
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)__tz;
|
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
uint64_t now = counter * US_PER_MS;
|
|
|
|
__p->tv_sec = div_u64_by_1000000(now);
|
|
|
|
__p->tv_usec = now - (__p->tv_sec * US_PER_SEC);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int timer_init(tim_t dev, unsigned long freq, timer_cb_t cb, void *arg)
|
|
|
|
{
|
|
|
|
assert(dev == 0);
|
|
|
|
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
2016-11-07 14:28:47 +01:00
|
|
|
(void)freq; /* Cannot adjust Frequency */
|
2017-02-09 13:18:44 +01:00
|
|
|
|
|
|
|
timer_isr_ctx.cb = cb;
|
|
|
|
timer_isr_ctx.arg = arg;
|
|
|
|
|
|
|
|
/* Clear down soft counters */
|
|
|
|
memset((void *)compares, 0, sizeof(compares));
|
|
|
|
|
|
|
|
counter = (1 << TIMER_ACCURACY_SHIFT);
|
|
|
|
|
|
|
|
/* Set compare up */
|
|
|
|
mips_setcompare(mips_getcount() + TICKS_PER_US * TIMER_ACCURACY);
|
|
|
|
|
|
|
|
/* Start the timer if stopped */
|
|
|
|
mips32_bc_c0(C0_CAUSE, CR_DC);
|
|
|
|
|
|
|
|
/* Enable Timer Interrupts */
|
2019-12-05 23:31:59 +01:00
|
|
|
set_external_isr_cb(_CORE_TIMER_VECTOR, timer_isr);
|
|
|
|
eic_configure_priority(_CORE_TIMER_VECTOR, 1, 0);
|
|
|
|
eic_enable(_CORE_TIMER_VECTOR);
|
2017-02-09 13:18:44 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int timer_set(tim_t dev, int channel, unsigned int timeout)
|
|
|
|
{
|
|
|
|
assert(dev == 0);
|
|
|
|
assert(channel < CHANNELS);
|
|
|
|
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
timeout >>= TIMER_ACCURACY_SHIFT;
|
|
|
|
timeout <<= TIMER_ACCURACY_SHIFT;
|
|
|
|
|
2017-10-20 17:26:10 +02:00
|
|
|
uint32_t status = irq_disable();
|
2017-02-09 13:18:44 +01:00
|
|
|
compares[channel] = counter + timeout;
|
2017-10-20 17:26:10 +02:00
|
|
|
irq_restore(status);
|
2017-02-09 13:18:44 +01:00
|
|
|
|
2019-09-11 13:48:12 +02:00
|
|
|
return 0;
|
2017-02-09 13:18:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int timer_set_absolute(tim_t dev, int channel, unsigned int value)
|
|
|
|
{
|
|
|
|
assert(dev == 0);
|
|
|
|
assert(channel < CHANNELS);
|
|
|
|
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
value >>= TIMER_ACCURACY_SHIFT;
|
|
|
|
value <<= TIMER_ACCURACY_SHIFT;
|
|
|
|
|
2017-10-20 17:26:10 +02:00
|
|
|
uint32_t status = irq_disable();
|
2017-02-09 13:18:44 +01:00
|
|
|
compares[channel] = value;
|
2017-10-20 17:26:10 +02:00
|
|
|
irq_restore(status);
|
2017-02-09 13:18:44 +01:00
|
|
|
|
2019-09-11 13:48:12 +02:00
|
|
|
return 0;
|
2017-02-09 13:18:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int timer_clear(tim_t dev, int channel)
|
|
|
|
{
|
|
|
|
assert(dev == 0);
|
|
|
|
assert(channel < CHANNELS);
|
|
|
|
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
|
|
|
|
2017-10-20 17:26:10 +02:00
|
|
|
uint32_t status = irq_disable();
|
2017-02-09 13:18:44 +01:00
|
|
|
compares[channel] = 0;
|
2017-10-20 17:26:10 +02:00
|
|
|
irq_restore(status);
|
2017-02-09 13:18:44 +01:00
|
|
|
|
2019-09-11 13:48:12 +02:00
|
|
|
return 0;
|
2017-02-09 13:18:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int timer_read(tim_t dev)
|
|
|
|
{
|
|
|
|
assert(dev == 0);
|
|
|
|
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
|
|
|
|
2017-02-09 13:18:44 +01:00
|
|
|
return counter;
|
|
|
|
}
|
|
|
|
|
|
|
|
void timer_start(tim_t dev)
|
|
|
|
{
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
2017-02-09 13:18:44 +01:00
|
|
|
mips32_bc_c0(C0_CAUSE, CR_DC);
|
|
|
|
}
|
|
|
|
|
|
|
|
void timer_stop(tim_t dev)
|
|
|
|
{
|
build: fix unused parameter errors
cpu, sam0_common: fix unused parameter in periph/spi
cpu, kinetis_common: fix unused parameter in periph/spi
cpu, cc2538: fix unused param in periph/i2c
cpu, cc2538: fix unused param in periph/spi
cpu, sam3: fix unused param in periph/spi
cpu, stm32_common: fix unused param in periph/pm
cpu, stm32f3: fix unused params in periph/i2c
cpu, nrf5x_common: fix unused param in periph/gpio
cpu, nrf5x_common: fix unused param in periph/spi
cpu, lpc2387: fix unused params in periph/spi
cpu, cc2538: fix unused params in radio/netdev
cpu, cc2650: fix unused params in periph/uart
cpu, lm4f120: fix unused param in periph/spi
cpu, lm4f120: fix unused params in periph/timer
cpu, lm4f120: fix unused params in periph/uart
cpu, stm32_common: fix unused params in periph/dac
cpu, stm32l0: fix unused params in periph/i2c
cpu, msp430fxyz: fix unused params in periph/uart
cpu, mips: fix unused params
cpu, cc430: fix unused-params in periph/timer
cpu, msp430fxyz: fix unused params in periph/spi
drivers, cc2420: fix unused param
cpu, mips32r2_common: fix unused params in periph/timer
cpu, cc2538: fix unused-param in periph/i2c
cpu, mips32r2_common: fix unused-param in periph/timer
cpu, msp430fxyz: fix unused params in periph/timer
cpu, atmega_common: fix unused params in periph/spi
driver, nrfmin: fix unused params
cpu, cc2538_rf: fix unused params
driver, netdev_ieee802514: fix unused param
cpu, mip_pic32m: fix unused params
cpu, lpc2387: fix unused params in periph/pwm
tests/driver_sdcard_spi: fix unused params
cpu, sam3: fix unused param in periph/pwm
tests/driver_dynamixel: fix unused params, and style issues
cpu, cc430: fix unused param in periph/rtc
cpu, atmega_common: fix unused params in periph/i2c
2017-10-31 12:09:11 +01:00
|
|
|
(void)dev;
|
2017-02-09 13:18:44 +01:00
|
|
|
mips32_bs_c0(C0_CAUSE, CR_DC);
|
|
|
|
}
|