Added "static inline" to functions that were only used once, and reduced code usage by 6 bytes for each occurance.
This commit is contained in:
@@ -45,7 +45,7 @@ bool dcc_communication_enabled(
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void init(
|
static inline void init(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
/* Initialize the Clock Prescaler for ATmega48/88/168 */
|
/* Initialize the Clock Prescaler for ATmega48/88/168 */
|
||||||
@@ -100,7 +100,7 @@ void init(
|
|||||||
|
|
||||||
static uint8_t NPDU_Timer;
|
static uint8_t NPDU_Timer;
|
||||||
|
|
||||||
static void NDPU_Timers(
|
static inline void NDPU_Timers(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
if (NPDU_Timer) {
|
if (NPDU_Timer) {
|
||||||
@@ -111,14 +111,14 @@ static void NDPU_Timers(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void NPDU_LED_On(
|
static inline void NPDU_LED_On(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
BIT_CLEAR(PORTD, PD5);
|
BIT_CLEAR(PORTD, PD5);
|
||||||
NPDU_Timer = 20;
|
NPDU_Timer = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
void task_milliseconds(
|
static inline void task_milliseconds(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
while (Timer_Milliseconds) {
|
while (Timer_Milliseconds) {
|
||||||
@@ -131,7 +131,7 @@ void task_milliseconds(
|
|||||||
|
|
||||||
static uint8_t Address_Switch;
|
static uint8_t Address_Switch;
|
||||||
|
|
||||||
void input_switch_read(
|
static inline void input_switch_read(
|
||||||
void)
|
void)
|
||||||
{
|
{
|
||||||
uint8_t value;
|
uint8_t value;
|
||||||
|
|||||||
Reference in New Issue
Block a user