solo1/targets/efm32boot/inc/app.h

46 wiersze
673 B
C
Czysty Zwykły widok Historia

2018-07-14 19:55:57 +00:00
/*
* app.h
*
* Created on: Jun 26, 2018
* Author: conor
*/
#ifndef SRC_APP_H_
#define SRC_APP_H_
2018-08-09 23:39:50 +00:00
#include <stdint.h>
2018-07-14 19:55:57 +00:00
#define IS_BOOTLOADER
2018-07-15 16:24:32 +00:00
#define DEBUG_LEVEL 0
2018-08-09 23:39:50 +00:00
//#define PRINTING_USE_VCOM
2018-07-14 19:55:57 +00:00
2018-08-09 23:39:50 +00:00
//#define USING_DEV_BOARD
2018-07-14 19:55:57 +00:00
#define BRIDGE_TO_WALLET
2018-08-09 23:39:50 +00:00
#define JUMP_LOC 0x4000
2018-07-15 03:03:25 +00:00
2018-08-09 23:39:50 +00:00
#ifdef USING_DEV_BOARD
2018-07-15 03:03:25 +00:00
#define PUSH_BUTTON gpioPortF,6
2018-08-09 23:39:50 +00:00
#else
#define PUSH_BUTTON gpioPortD,13
#endif
2018-07-15 03:03:25 +00:00
2018-07-15 16:24:32 +00:00
//#define DISABLE_CTAPHID_PING
2018-07-15 03:03:25 +00:00
#define DISABLE_CTAPHID_WINK
#define DISABLE_CTAPHID_CBOR
2018-07-14 19:55:57 +00:00
void printing_init();
2018-07-15 03:03:25 +00:00
int bootloader_bridge(uint8_t klen, uint8_t * keyh);
int is_authorized_to_boot();
2018-07-14 19:55:57 +00:00
2018-08-09 23:39:50 +00:00
#define LED_INIT_VALUE 0x101000
2018-07-15 05:23:38 +00:00
extern uint8_t REBOOT_FLAG;
2018-07-14 19:55:57 +00:00
#endif /* SRC_APP_H_ */