init device with nfc detection
This commit is contained in:
parent
246dea8a44
commit
4b82e80d7a
@ -110,29 +110,25 @@ void device_reboot()
|
|||||||
void device_init()
|
void device_init()
|
||||||
{
|
{
|
||||||
|
|
||||||
hw_init(HIGH_FREQUENCY);
|
hw_init(LOW_FREQUENCY);
|
||||||
isLowFreq = 0;
|
isLowFreq = 0;
|
||||||
|
|
||||||
nfc_init();
|
haveNFC = nfc_init();
|
||||||
// haveNFC = nfc_init();
|
|
||||||
|
|
||||||
// if (haveNFC)
|
if (haveNFC)
|
||||||
// {
|
{
|
||||||
// printf1(TAG_NFC, "Have NFC\r\n");
|
printf1(TAG_NFC, "Have NFC\r\n");
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// printf1(TAG_NFC, "Have NO NFC\r\n");
|
printf1(TAG_NFC, "Have NO NFC\r\n");
|
||||||
// hw_init(HIGH_FREQUENCY);
|
hw_init(HIGH_FREQUENCY);
|
||||||
//
|
isLowFreq = 0;
|
||||||
// isLowFreq = 0;
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
usbhid_init();
|
usbhid_init();
|
||||||
|
|
||||||
ctaphid_init();
|
ctaphid_init();
|
||||||
|
ctap_init();
|
||||||
ctap_init( 1 );
|
|
||||||
|
|
||||||
#if BOOT_TO_DFU
|
#if BOOT_TO_DFU
|
||||||
flash_option_bytes_init(1);
|
flash_option_bytes_init(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user