Added basic driver example use code to the library documentation.
Made the USARTStream global public and documented in the SerialStream module, allowing for the serial USART stream to be accessed via its handle rather than via the implicit stdout and stdin streams.
This commit is contained in:
parent
39ac72f2d1
commit
2073b96d82
18 changed files with 266 additions and 23 deletions
|
@ -50,10 +50,10 @@ int8_t Temperature_GetTemperature(void)
|
|||
if (Temp_ADC > pgm_read_word(&Temperature_Lookup[0]))
|
||||
return TEMP_MIN_TEMP;
|
||||
|
||||
for (uint16_t Index = 0; Index < TEMP_TABLE_SIZE; Index++)
|
||||
for (uint16_t Index = 0; Index < (sizeof(Temperature_Lookup) / sizeof(Temperature_Lookup[0])); Index++)
|
||||
{
|
||||
if (Temp_ADC > pgm_read_word(&Temperature_Lookup[Index]))
|
||||
return (Index + TEMP_TABLE_OFFSET);
|
||||
return (Index + TEMP_TABLE_OFFSET_DEGREES);
|
||||
}
|
||||
|
||||
return TEMP_MAX_TEMP;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue