Calibrate PN532_UART and ARYGON drivers.
This commit is contained in:
parent
93de7fcd5c
commit
601081d50a
2 changed files with 4 additions and 6 deletions
|
@ -177,9 +177,8 @@ arygon_connect (const nfc_device_desc_t * pndd)
|
||||||
CHIP_DATA (pnd)->io = &arygon_tama_io;
|
CHIP_DATA (pnd)->io = &arygon_tama_io;
|
||||||
// Timer stops only after 5 bits are received => 5*128 cycles
|
// Timer stops only after 5 bits are received => 5*128 cycles
|
||||||
// When sent ...ZY (cmd ends with logical 0):
|
// When sent ...ZY (cmd ends with logical 0):
|
||||||
// TODO: calibration
|
// 46: empirical tuning
|
||||||
// 50: empirical tuning
|
CHIP_DATA (pnd)->timer_correction_zy = 46 - (5 * 128);
|
||||||
CHIP_DATA (pnd)->timer_correction_zy = 50 - (5 * 128);
|
|
||||||
// When sent ...YY (cmd ends with logical 1):
|
// When sent ...YY (cmd ends with logical 1):
|
||||||
// a ...ZY signal finishes 64us later than a ...YY signal
|
// a ...ZY signal finishes 64us later than a ...YY signal
|
||||||
CHIP_DATA (pnd)->timer_correction_yy = CHIP_DATA (pnd)->timer_correction_zy + 64;
|
CHIP_DATA (pnd)->timer_correction_yy = CHIP_DATA (pnd)->timer_correction_zy + 64;
|
||||||
|
|
|
@ -162,9 +162,8 @@ pn532_uart_connect (const nfc_device_desc_t * pndd)
|
||||||
CHIP_DATA(pnd)->io = &pn532_uart_io;
|
CHIP_DATA(pnd)->io = &pn532_uart_io;
|
||||||
// Timer stops only after 5 bits are received => 5*128 cycles
|
// Timer stops only after 5 bits are received => 5*128 cycles
|
||||||
// When sent ...ZY (cmd ends with logical 0):
|
// When sent ...ZY (cmd ends with logical 0):
|
||||||
// TODO: calibration
|
// 48: empirical tuning
|
||||||
// 50: empirical tuning
|
CHIP_DATA (pnd)->timer_correction_zy = 48 - (5 * 128);
|
||||||
CHIP_DATA (pnd)->timer_correction_zy = 50 - (5 * 128);
|
|
||||||
// When sent ...YY (cmd ends with logical 1):
|
// When sent ...YY (cmd ends with logical 1):
|
||||||
// a ...ZY signal finishes 64us later than a ...YY signal
|
// a ...ZY signal finishes 64us later than a ...YY signal
|
||||||
CHIP_DATA (pnd)->timer_correction_yy = CHIP_DATA (pnd)->timer_correction_zy + 64;
|
CHIP_DATA (pnd)->timer_correction_yy = CHIP_DATA (pnd)->timer_correction_zy + 64;
|
||||||
|
|
Loading…
Reference in a new issue