2 * fw/board_hulusb.h - Busware HUL Board-specific functions (for boot loader and application)
4 * Written 2017 by Filzmaier Josef
5 * Based on fw/board_rzusb written and Copyright 2016 Stefan Schmidt
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #ifndef BOARD_HULUSB_H
14 #define BOARD_HULUSB_H
19 #define LED_RED_PORT A
20 #define LED_GREEN_PORT A
22 #define LED_GREEN_BIT 4
23 #define LED_PORT LED_RED_PORT
24 #define LED_BIT LED_RED_BIT
26 #define nRST_RF_PORT B
43 #define SR_TX_AUTO_CRC_ON 0x04, 0x20, 5
44 #define SR_CHANNEL 0x08, 0x1f, 0
46 #define RG_CC_CTRL_1 (0x14)
48 #define SPI_WAIT_DONE() while ((SPSR & (1 << SPIF)) == 0)
52 void board_init(void);
54 void led_red(bool on);
55 void led_green(bool on);
62 void printStatus(void);
63 #define PRINT_STATUS() printStatus()
66 #endif /* !BOARD_HULUSB_H */