have device showing up as fido

This commit is contained in:
Conor Patrick
2018-05-31 21:57:12 -04:00
parent 593e74407d
commit cefdd4b071
4 changed files with 1199 additions and 431 deletions

View File

@@ -143,7 +143,7 @@ CFLAGS += -DFLOAT_ABI_HARD
CFLAGS += -DNRF52840_XXAA
CFLAGS += -mcpu=cortex-m4
CFLAGS += -mthumb -mabi=aapcs
CFLAGS += -Wall -Werror
CFLAGS += -Wall
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
# keep every function in a separate section, this allows linker to discard unused ones
CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing

21
nrf52840/list.py Normal file
View File

@@ -0,0 +1,21 @@
from fido2.hid import CtapHidDevice
from fido2.client import Fido2Client
from fido2.pyu2f import hidtransport
import sys
from random import randint
import array
# Locate a device
#for d in CtapHidDevice.list_devices():
#print(d)
selector = hidtransport.HidUsageSelector
for d in hidtransport.hid.Enumerate():
print('1',d)
if selector(d):
try:
dev = hidtransport.hid.Open(d['path'])
print('2',dev)
except OSError:
# Insufficient permissions to access device
pass

File diff suppressed because it is too large Load Diff

View File

@@ -1339,7 +1339,7 @@
#endif
// <o> GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
#ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 4
#endif
// <o> GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
@@ -1641,7 +1641,7 @@
// <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
//==========================================================
#ifndef NRFX_CLOCK_ENABLED
#define NRFX_CLOCK_ENABLED 0
#define NRFX_CLOCK_ENABLED 1
#endif
// <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
@@ -1863,7 +1863,7 @@
// <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
//==========================================================
#ifndef NRFX_GPIOTE_ENABLED
#define NRFX_GPIOTE_ENABLED 0
#define NRFX_GPIOTE_ENABLED 1
#endif
// <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
#ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
@@ -2366,7 +2366,7 @@
// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
//==========================================================
#ifndef NRFX_POWER_ENABLED
#define NRFX_POWER_ENABLED 0
#define NRFX_POWER_ENABLED 1
#endif
// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority