1 /* board.h - Board-specific hooks */ 2 3 /* 4 * Copyright (c) 2017 Intel Corporation 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #if !defined(NODE_ADDR) 10 #define NODE_ADDR 0x0b0c 11 #endif 12 13 void board_button_1_pressed(void); 14 uint16_t board_set_target(void); 15 void board_play(const char *str); 16 17 #if defined(CONFIG_BOARD_BBC_MICROBIT) 18 int board_init(uint16_t *addr); 19 void board_play_tune(const char *str); 20 void board_heartbeat(uint8_t hops, uint16_t feat); 21 void board_other_dev_pressed(uint16_t addr); 22 void board_attention(bool attention); 23 #else board_init(uint16_t * addr)24static inline int board_init(uint16_t *addr) 25 { 26 *addr = NODE_ADDR; 27 return 0; 28 } 29 board_play_tune(const char * str)30static inline void board_play_tune(const char *str) 31 { 32 } 33 board_heartbeat(uint8_t hops,uint16_t feat)34void board_heartbeat(uint8_t hops, uint16_t feat) 35 { 36 } 37 board_other_dev_pressed(uint16_t addr)38void board_other_dev_pressed(uint16_t addr) 39 { 40 } 41 board_attention(bool attention)42void board_attention(bool attention) 43 { 44 } 45 #endif 46