Contiki-NG
Loading...
Searching...
No Matches
board-buttons.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026, RISE Research Institutes of Sweden AB
3 * All rights reserved.
4 *
5 * Author: Joakim Eriksson <joakim.eriksson@ri.se>
6 *
7 * SPDX-License-Identifier: BSD-3-Clause
8 */
9
10/**
11 * \file
12 * Board-specific button initialization for Seeed XIAO nRF54L15
13 */
14
15#include "contiki.h"
16#include "dev/button-hal.h"
17
18/* Stub implementations to avoid nrfx v2.x API dependency */
19#include <stddef.h>
20
21/* Provide empty button list */
22button_hal_button_t *button_hal_buttons[] = { NULL };
23unsigned char button_hal_button_cnt = 0;
24
25/* Stub for v2.x API compatibility */
26/*---------------------------------------------------------------------------*/
27void
28nrfx_gpiote_in_event_enable(unsigned int pin, unsigned char enable)
29{
30 /* Stub - no buttons to enable */
31}
32/*---------------------------------------------------------------------------*/
Header file for the button HAL.
struct button_hal_button_s button_hal_button_t
A logical representation of a user button.
Definition button-hal.h:145