12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef __SX12XXEIGER_H__
- #define __SX12XXEIGER_H__
- #include <stdint.h>
- #include <stdbool.h>
- #define USE_USB 1
- #if defined( STM32F4XX ) || defined( STM32F2XX ) || defined( STM32F429_439xx )
- #define BACKUP_REG_BOOTLOADER RTC_BKP_DR0
- #else
- #define BACKUP_REG_BOOTLOADER BKP_DR1
- #endif
- #define FW_VERSION "2.1.0"
- #define SK_NAME "SX12xxEiger"
- typedef enum
- {
- SX_OK,
- SX_ERROR,
- SX_BUSY,
- SX_EMPTY,
- SX_DONE,
- SX_TIMEOUT,
- SX_UNSUPPORTED,
- SX_WAIT,
- SX_CLOSE,
- SX_YES,
- SX_NO,
- }tReturnCodes;
- extern volatile uint32_t TickCounter;
- #ifdef __GNUC__
- #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
- #endif
- void BoardInit( void );
- void Delay ( uint32_t delay );
- void LongDelay ( uint8_t delay );
- uint32_t randr( uint32_t min, uint32_t max );
- #endif
|