1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

Merge pull request #17605 from benpicco/drivers/dose-include

drivers/dose: include board.h
This commit is contained in:
Francisco 2022-02-04 06:40:45 +01:00 committed by GitHub
commit 8db513a8f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include <assert.h>
#include <string.h>
#include "board.h"
#include "dose.h"
#include "random.h"
#include "irq.h"
@ -33,6 +34,10 @@
#define ENABLE_DEBUG 0
#include "debug.h"
#if !defined(DOSE_TIMER_DEV) && IS_ACTIVE(MODULE_DOSE_WATCHDOG)
#error "DOSE_TIMER_DEV needs to be set by the board"
#endif
static uint16_t crc16_update(uint16_t crc, uint8_t octet);
static dose_signal_t state_transit_blocked(dose_t *ctx, dose_signal_t signal);
static dose_signal_t state_transit_idle(dose_t *ctx, dose_signal_t signal);

View File

@ -170,8 +170,6 @@ typedef enum {
*/
#if DOXYGEN
#define DOSE_TIMER_DEV TIMER_DEV(…)
#elif !defined(DOSE_TIMER_DEV) && IS_ACTIVE(MODULE_DOSE_WATCHDOG)
#error "DOSE_TIMER_DEV needs to be set by the board"
#endif
/**