Fix compiler warnings
mad.c:131: warning: no previous prototype for 'nxp_crc' mad.c:147: warning: no previous prototype for 'sector_0x00_crc8' mad.c:162: warning: no previous prototype for 'sector_0x10_crc8'
This commit is contained in:
parent
78fea850c9
commit
f0a1247693
1 changed files with 3 additions and 3 deletions
|
@ -126,7 +126,7 @@ mad_new (uint8_t version)
|
||||||
/*
|
/*
|
||||||
* Compute CRC.
|
* Compute CRC.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
nxp_crc (uint8_t *crc, const uint8_t value)
|
nxp_crc (uint8_t *crc, const uint8_t value)
|
||||||
{
|
{
|
||||||
/* x^8 + x^4 + x^3 + x^2 + 1 => 0x11d */
|
/* x^8 + x^4 + x^3 + x^2 + 1 => 0x11d */
|
||||||
|
@ -142,7 +142,7 @@ nxp_crc (uint8_t *crc, const uint8_t value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t
|
static uint8_t
|
||||||
sector_0x00_crc8 (Mad mad)
|
sector_0x00_crc8 (Mad mad)
|
||||||
{
|
{
|
||||||
uint8_t crc = CRC_PRESET;
|
uint8_t crc = CRC_PRESET;
|
||||||
|
@ -157,7 +157,7 @@ sector_0x00_crc8 (Mad mad)
|
||||||
return crc;
|
return crc;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t
|
static uint8_t
|
||||||
sector_0x10_crc8 (Mad mad)
|
sector_0x10_crc8 (Mad mad)
|
||||||
{
|
{
|
||||||
uint8_t crc = CRC_PRESET;
|
uint8_t crc = CRC_PRESET;
|
||||||
|
|
Loading…
Reference in a new issue