mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-20 00:48:11 -07:00
Fix spelling across some project files (#3128)
* codespell across project Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
*
|
||||
* \author bkam
|
||||
*
|
||||
* \brief Funcitons to manage and set analog settings.
|
||||
* \brief Functions to manage and set analog settings.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -434,7 +434,7 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/*! Internal structure to be used in handling of S(PARAMETRS) only */
|
||||
/*! Internal structure to be used in handling of S(PARAMETERS) only */
|
||||
typedef struct {
|
||||
uint8_t pcb; /*!< PCB byte */
|
||||
rfalIsoDepSParameter sParam; /*!< S(PARAMETERS) */
|
||||
@@ -1053,7 +1053,7 @@ static ReturnCode isoDepDataExchangePCD(uint16_t* outActRxLen, bool* outIsChaini
|
||||
}
|
||||
return ERR_TIMEOUT; /* NFC Forum mandates timeout or transmission error depending on previous errors */
|
||||
}
|
||||
} else /* Unexcpected R-Block */
|
||||
} else /* Unexpected R-Block */
|
||||
{
|
||||
return ERR_PROTO;
|
||||
}
|
||||
@@ -1899,7 +1899,7 @@ static ReturnCode isoDepDataExchangePICC(void) {
|
||||
return ERR_BUSY;
|
||||
}
|
||||
|
||||
/* Rule E - R(ACK) with not current bn -> toogle bn */
|
||||
/* Rule E - R(ACK) with not current bn -> toggle bn */
|
||||
isoDep_ToggleBN(gIsoDep.blockNumber);
|
||||
|
||||
/* This block has been transmitted and acknowledged, perform WTX until next data is provided */
|
||||
@@ -2336,7 +2336,7 @@ ReturnCode rfalIsoDepPollAGetActivationStatus(void) {
|
||||
rfalSetGT(rfalGetFDTPoll());
|
||||
rfalFieldOnAndStartGT();
|
||||
|
||||
/* Send RATS retransmission */ /* PRQA S 4342 1 # MISRA 10.5 - Layout of enum rfalIsoDepFSxI is guaranteed whithin 4bit range */
|
||||
/* Send RATS retransmission */ /* PRQA S 4342 1 # MISRA 10.5 - Layout of enum rfalIsoDepFSxI is guaranteed within 4bit range */
|
||||
EXIT_ON_ERR(
|
||||
ret,
|
||||
rfalIsoDepStartRATS(
|
||||
|
||||
@@ -90,14 +90,14 @@ typedef struct {
|
||||
rfalNfcDevice* activeDev; /* Active device pointer */
|
||||
rfalNfcDiscoverParam disc; /* Discovery parameters */
|
||||
rfalNfcDevice devList[RFAL_NFC_MAX_DEVICES]; /*!< Location of device list */
|
||||
uint8_t devCnt; /* Decices found counter */
|
||||
uint8_t devCnt; /* Devices found counter */
|
||||
uint32_t discTmr; /* Discovery Total duration timer */
|
||||
ReturnCode dataExErr; /* Last Data Exchange error */
|
||||
bool discRestart; /* Restart discover after deactivation flag */
|
||||
bool isRxChaining; /* Flag indicating Other device is chaining */
|
||||
uint32_t lmMask; /* Listen Mode mask */
|
||||
bool isTechInit; /* Flag indicating technology has been set */
|
||||
bool isOperOngoing; /* Flag indicating opration is ongoing */
|
||||
bool isOperOngoing; /* Flag indicating operation is ongoing */
|
||||
|
||||
rfalNfcBuffer txBuf; /* Tx buffer for Data Exchange */
|
||||
rfalNfcBuffer rxBuf; /* Rx buffer for Data Exchange */
|
||||
@@ -674,7 +674,7 @@ ReturnCode rfalNfcDataExchangeStart(
|
||||
break;
|
||||
}
|
||||
|
||||
/* If a transceive has succesfully started flag Data Exchange as ongoing */
|
||||
/* If a transceive has successfuly started flag Data Exchange as ongoing */
|
||||
if(err == ERR_NONE) {
|
||||
gNfcDev.dataExErr = ERR_BUSY;
|
||||
gNfcDev.state = RFAL_NFC_STATE_DATAEXCHANGE;
|
||||
@@ -814,7 +814,7 @@ ReturnCode rfalNfcDataExchangeCustomStart(
|
||||
break;
|
||||
}
|
||||
|
||||
/* If a transceive has succesfully started flag Data Exchange as ongoing */
|
||||
/* If a transceive has successfuly started flag Data Exchange as ongoing */
|
||||
if(err == ERR_NONE) {
|
||||
gNfcDev.dataExErr = ERR_BUSY;
|
||||
gNfcDev.state = RFAL_NFC_STATE_DATAEXCHANGE;
|
||||
@@ -897,7 +897,7 @@ ReturnCode rfalNfcDataExchangeGetStatus(void) {
|
||||
sizeof(gNfcDev.rxBuf.rfBuf),
|
||||
&gNfcDev.rxLen));
|
||||
|
||||
/* If set Sleep was succesfull keep restore the Sleep request signal */
|
||||
/* If set Sleep was successful keep restore the Sleep request signal */
|
||||
gNfcDev.dataExErr = ERR_SLEEP_REQ;
|
||||
}
|
||||
#endif /* RFAL_FEATURE_LISTEN_MODE */
|
||||
@@ -924,7 +924,7 @@ static ReturnCode rfalNfcPollTechDetetection(void) {
|
||||
|
||||
err = ERR_NONE;
|
||||
|
||||
/* Supress warning when specific RFAL features have been disabled */
|
||||
/* Suppress warning when specific RFAL features have been disabled */
|
||||
NO_WARNING(err);
|
||||
|
||||
/*******************************************************************************/
|
||||
@@ -1154,7 +1154,7 @@ static ReturnCode rfalNfcPollCollResolution(void) {
|
||||
err = ERR_NONE;
|
||||
i = 0;
|
||||
|
||||
/* Supress warning when specific RFAL features have been disabled */
|
||||
/* Suppress warning when specific RFAL features have been disabled */
|
||||
NO_WARNING(err);
|
||||
NO_WARNING(devCnt);
|
||||
NO_WARNING(i);
|
||||
@@ -1415,7 +1415,7 @@ static ReturnCode rfalNfcPollActivation(uint8_t devIt) {
|
||||
|
||||
err = ERR_NONE;
|
||||
|
||||
/* Supress warning when specific RFAL features have been disabled */
|
||||
/* Suppress warning when specific RFAL features have been disabled */
|
||||
NO_WARNING(err);
|
||||
|
||||
if(devIt > gNfcDev.devCnt) {
|
||||
@@ -1428,7 +1428,7 @@ static ReturnCode rfalNfcPollActivation(uint8_t devIt) {
|
||||
/*******************************************************************************/
|
||||
#if RFAL_FEATURE_NFC_DEP
|
||||
case RFAL_NFC_LISTEN_TYPE_AP2P:
|
||||
/* Activation has already been perfomed (ATR_REQ) */
|
||||
/* Activation has already been performed (ATR_REQ) */
|
||||
|
||||
gNfcDev.devList[devIt].nfcid =
|
||||
gNfcDev.devList[devIt].proto.nfcDep.activation.Target.ATR_RES.NFCID3;
|
||||
@@ -1971,7 +1971,7 @@ static ReturnCode rfalNfcNfcDepActivate(
|
||||
uint16_t atrReqLen) {
|
||||
rfalNfcDepAtrParam initParam;
|
||||
|
||||
/* Supress warnings if Listen mode is disabled */
|
||||
/* Suppress warnings if Listen mode is disabled */
|
||||
NO_WARNING(atrReq);
|
||||
NO_WARNING(atrReqLen);
|
||||
|
||||
|
||||
@@ -509,7 +509,7 @@ ReturnCode rfalSt25tbPollerWriteBlock(uint8_t blockAddress, const rfalSt25tbBloc
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* If a transmission error occurred (maybe noise while commiting data) wait maximum programming time and verify data afterwards */
|
||||
/* If a transmission error occurred (maybe noise while committing data) wait maximum programming time and verify data afterwards */
|
||||
rfalSetGT((RFAL_ST25TB_FWT + RFAL_ST25TB_TW));
|
||||
rfalFieldOnAndStartGT();
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ ReturnCode rfalT4TPollerComposeCAPDU(const rfalT4tCApduParam* apduParam) {
|
||||
/* Check if Data is present */
|
||||
if(apduParam->LcFlag) {
|
||||
if(apduParam->Lc == 0U) {
|
||||
/* Extented field coding not supported */
|
||||
/* Extended field coding not supported */
|
||||
return ERR_PARAM;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
/*
|
||||
******************************************************************************
|
||||
* ENABLE SWITCHS
|
||||
* ENABLE SWITCHES
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
@@ -137,7 +137,7 @@ typedef struct {
|
||||
/*! Struct that holds counters to control the FIFO on Tx and Rx */
|
||||
typedef struct {
|
||||
uint16_t
|
||||
expWL; /*!< The amount of bytes expected to be Tx when a WL interrupt occours */
|
||||
expWL; /*!< The amount of bytes expected to be Tx when a WL interrupt occurs */
|
||||
uint16_t
|
||||
bytesTotal; /*!< Total bytes to be transmitted OR the total bytes received */
|
||||
uint16_t
|
||||
@@ -398,7 +398,7 @@ typedef union { /* PRQA S 0750 # MISRA 19.2 - Both members are of the same type
|
||||
* ISO15693 2000 8.4 t1 MIN = 4192/fc
|
||||
* ISO15693 2009 9.1 t1 MIN = 4320/fc
|
||||
* Digital 2.1 B.5 FDTV,LISTEN,MIN = 4310/fc
|
||||
* Set FDT Listen one step earlier than on the more recent spec versions for greater interoprability
|
||||
* Set FDT Listen one step earlier than on the more recent spec versions for greater interoperability
|
||||
*/
|
||||
#define RFAL_FDT_LISTEN_V_ADJUSTMENT 64U
|
||||
|
||||
@@ -1958,7 +1958,7 @@ static void rfalPrepareTransceive(void) {
|
||||
ST25R3916_IRQ_MASK_WU_F); /* Enable external Field interrupts to detect Link Loss and SENF_REQ auto responses */
|
||||
}
|
||||
|
||||
/* In Active comms enable also External Field interrupts and set RF Collsion Avoindance */
|
||||
/* In Active comms enable also External Field interrupts and set RF Collision Avoindance */
|
||||
if(rfalIsModeActiveComm(gRFAL.mode)) {
|
||||
maskInterrupts |=
|
||||
(ST25R3916_IRQ_MASK_EOF | ST25R3916_IRQ_MASK_EON | ST25R3916_IRQ_MASK_PPON2 |
|
||||
@@ -1990,7 +1990,7 @@ static void rfalTransceiveTx(void) {
|
||||
uint16_t tmp;
|
||||
ReturnCode ret;
|
||||
|
||||
/* Supress warning in case NFC-V feature is disabled */
|
||||
/* Suppress warning in case NFC-V feature is disabled */
|
||||
ret = ERR_NONE;
|
||||
NO_WARNING(ret);
|
||||
|
||||
@@ -2370,7 +2370,7 @@ static void rfalTransceiveRx(void) {
|
||||
}
|
||||
|
||||
if((irqs & ST25R3916_IRQ_MASK_RX_REST) != 0U) {
|
||||
/* RX_REST indicates that Receiver has been reseted due to EMD, therefore a RXS + RXE should *
|
||||
/* RX_REST indicates that Receiver has been reset due to EMD, therefore a RXS + RXE should *
|
||||
* follow if a good reception is followed within the valid initial timeout */
|
||||
|
||||
/* Check whether NRT has expired already, if so signal a timeout */
|
||||
@@ -2917,7 +2917,7 @@ ReturnCode rfalISO14443ATransceiveAnticollisionFrame(
|
||||
}
|
||||
|
||||
/*******************************************************************************/
|
||||
/* Set speficic Analog Config for Anticolission if needed */
|
||||
/* Set specific Analog Config for Anticolission if needed */
|
||||
rfalSetAnalogConfig(
|
||||
(RFAL_ANALOG_CONFIG_POLL | RFAL_ANALOG_CONFIG_TECH_NFCA |
|
||||
RFAL_ANALOG_CONFIG_BITRATE_COMMON | RFAL_ANALOG_CONFIG_ANTICOL));
|
||||
@@ -3030,7 +3030,7 @@ ReturnCode rfalISO15693TransceiveAnticollisionFrame(
|
||||
}
|
||||
|
||||
/*******************************************************************************/
|
||||
/* Set speficic Analog Config for Anticolission if needed */
|
||||
/* Set specific Analog Config for Anticolission if needed */
|
||||
rfalSetAnalogConfig(
|
||||
(RFAL_ANALOG_CONFIG_POLL | RFAL_ANALOG_CONFIG_TECH_NFCV |
|
||||
RFAL_ANALOG_CONFIG_BITRATE_COMMON | RFAL_ANALOG_CONFIG_ANTICOL));
|
||||
@@ -4053,7 +4053,7 @@ ReturnCode rfalListenSetState(rfalLmState newSt) {
|
||||
ST25R3916_REG_AUX_DISPLAY,
|
||||
ST25R3916_REG_AUX_DISPLAY_osc_ok,
|
||||
ST25R3916_REG_AUX_DISPLAY_osc_ok)) {
|
||||
/* Wait for Oscilator ready */
|
||||
/* Wait for Oscillator ready */
|
||||
if(st25r3916WaitForInterruptsTimed(
|
||||
ST25R3916_IRQ_MASK_OSC, ST25R3916_TOUT_OSC_STABLE) == 0U) {
|
||||
ret = ERR_IO;
|
||||
@@ -4074,7 +4074,7 @@ ReturnCode rfalListenSetState(rfalLmState newSt) {
|
||||
* Ensure that when upper layer calls SetState(IDLE), it restores initial
|
||||
* configuration and that check whether an external Field is still present */
|
||||
if((gRFAL.Lm.mdMask & RFAL_LM_MASK_ACTIVE_P2P) != 0U) {
|
||||
/* Ensure nfc_ar is reseted and back to only after Rx */
|
||||
/* Ensure nfc_ar is reset and back to only after Rx */
|
||||
st25r3916ExecuteCommand(ST25R3916_CMD_STOP);
|
||||
st25r3916ChangeRegisterBits(
|
||||
ST25R3916_REG_MODE,
|
||||
@@ -4443,7 +4443,7 @@ static uint16_t rfalWakeUpModeFilter(uint16_t curRef, uint16_t curVal, uint8_t w
|
||||
|
||||
/* Perform the averaging|filter as describded in ST25R3916 DS */
|
||||
|
||||
/* Avoid signed arithmetics by spliting in two cases */
|
||||
/* Avoid signed arithmetics by splitting in two cases */
|
||||
if(curVal > curRef) {
|
||||
newRef = curRef + ((curVal - curRef) / weight);
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ ReturnCode st25r3916Initialize(void) {
|
||||
void st25r3916Deinitialize(void) {
|
||||
st25r3916DisableInterrupts(ST25R3916_IRQ_MASK_ALL);
|
||||
|
||||
/* Disabe Tx and Rx, Keep OSC On */
|
||||
/* Disable Tx and Rx, Keep OSC On */
|
||||
st25r3916TxRxOff();
|
||||
|
||||
return;
|
||||
@@ -418,7 +418,7 @@ ReturnCode st25r3916CalibrateCapacitiveSensor(uint8_t* result) {
|
||||
ST25R3916_TOUT_CALIBRATE_CAP_SENSOR,
|
||||
&res);
|
||||
|
||||
/* Check wether the calibration was successull */
|
||||
/* Check whether the calibration was successull */
|
||||
if(((res & ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_end) !=
|
||||
ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_end) ||
|
||||
((res & ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_err) ==
|
||||
|
||||
@@ -117,7 +117,7 @@ struct st25r3916StreamConfig {
|
||||
#define ST25R3916_CMD_AM_MOD_STATE_CHANGE \
|
||||
0xD2U /*!< AM Modulation state change */
|
||||
#define ST25R3916_CMD_MEASURE_AMPLITUDE \
|
||||
0xD3U /*!< Measure singal amplitude on RFI inputs */
|
||||
0xD3U /*!< Measure signal amplitude on RFI inputs */
|
||||
#define ST25R3916_CMD_RESET_RXGAIN \
|
||||
0xD5U /*!< Reset RX Gain */
|
||||
#define ST25R3916_CMD_ADJUST_REGULATORS \
|
||||
@@ -299,7 +299,7 @@ ReturnCode st25r3916SetBitrate(uint8_t txrate, uint8_t rxrate);
|
||||
*
|
||||
* This function the power level is measured in maximum load conditions and
|
||||
* the regulated voltage reference is set to 250mV below this level.
|
||||
* Execution of this function lasts arround 5ms.
|
||||
* Execution of this function lasts around 5ms.
|
||||
*
|
||||
* The regulated voltages will be set to the result of Adjust Regulators
|
||||
*
|
||||
|
||||
@@ -1053,7 +1053,7 @@ ReturnCode st25r3916ReadRegister(uint8_t reg, uint8_t* val);
|
||||
* auto-increment feature. That is, after each read the address pointer
|
||||
* inside the ST25R3916 gets incremented automatically.
|
||||
*
|
||||
* \param[in] reg: Address of the frist register to read from.
|
||||
* \param[in] reg: Address of the first register to read from.
|
||||
* \param[in] values: pointer to a buffer where the result shall be written to.
|
||||
* \param[in] length: Number of registers to be read out.
|
||||
*
|
||||
@@ -1088,7 +1088,7 @@ ReturnCode st25r3916WriteRegister(uint8_t reg, uint8_t val);
|
||||
* auto-increment feature. That is, after each write the address pointer
|
||||
* inside the ST25R3916 gets incremented automatically.
|
||||
*
|
||||
* \param[in] reg: Address of the frist register to write.
|
||||
* \param[in] reg: Address of the first register to write.
|
||||
* \param[in] values: pointer to a buffer containing the values to be written.
|
||||
* \param[in] length: Number of values to be written.
|
||||
*
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
* \param[in] tmo : time in milliseconds until timeout occurs. If set to 0
|
||||
* the functions waits forever.
|
||||
*
|
||||
* \return : 0 if timeout occured otherwise a mask indicating the cleared
|
||||
* \return : 0 if timeout occurred otherwise a mask indicating the cleared
|
||||
* interrupts.
|
||||
*
|
||||
*****************************************************************************
|
||||
@@ -173,7 +173,7 @@ uint32_t st25r3916WaitForInterruptsTimed(uint32_t mask, uint16_t tmo);
|
||||
* \brief Get status for the given interrupt
|
||||
*
|
||||
* This function is used to check whether the interrupt given by \a mask
|
||||
* has occured. If yes the interrupt gets cleared. This function returns
|
||||
* has occurred. If yes the interrupt gets cleared. This function returns
|
||||
* only status bits which are inside \a mask.
|
||||
*
|
||||
* \param[in] mask : mask indicating the interrupt to check for.
|
||||
@@ -189,7 +189,7 @@ uint32_t st25r3916GetInterrupt(uint32_t mask);
|
||||
* \brief Init the 3916 interrupt
|
||||
*
|
||||
* This function is used to check whether the interrupt given by \a mask
|
||||
* has occured.
|
||||
* has occurred.
|
||||
*
|
||||
*****************************************************************************
|
||||
*/
|
||||
@@ -220,7 +220,7 @@ void st25r3916CheckForReceivedInterrupts(void);
|
||||
*****************************************************************************
|
||||
* \brief ISR Service routine
|
||||
*
|
||||
* This function modiefies the interupt
|
||||
* This function modiefies the interrupt
|
||||
*****************************************************************************
|
||||
*/
|
||||
void st25r3916Isr(void);
|
||||
|
||||
Reference in New Issue
Block a user