Skip to content

Commit

Permalink
Fix redundant-decls
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Feb 25, 2022
1 parent 31377c0 commit e0e7e1b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion firmware/src/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

uint8_t raw_adc[ADC_LAST_CHANNEL]; //*< an array for raw measurements
volatile cbuf0_t cbuf_adc0;
uint8_t ma_adc0(void);
uint8_t avg_adc0;

/**
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ typedef struct cbuf
} cbuf0_t;

extern volatile cbuf0_t cbuf_adc0;
extern uint8_t ma_adc0(void);
uint8_t ma_adc0(void);
extern uint8_t avg_adc0;

#endif /* ifndef ADC_H */
5 changes: 0 additions & 5 deletions firmware/src/machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifdef CAN_ON
#include "can.h"
#include "can_app.h"
extern const uint8_t can_filter[];
#endif

typedef enum state_machine{
Expand Down Expand Up @@ -111,8 +110,4 @@ extern uint8_t check_pwm_fault_times;
extern uint8_t led_clk_div;
extern control_t control;

// ISRs
ISR(TIMER2_COMPA_vect);
ISR(PCINT2_vect);

#endif /* ifndef MACHINE_H */
6 changes: 3 additions & 3 deletions firmware/src/watchdog.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

#ifndef WATCHDOG_H
#define WATCHDOG_H
#define WATCHDOG_H

#include <avr/io.h>
#include <avr/wdt.h>
Expand All @@ -30,8 +30,8 @@ void wdt_first(void)
//http://www.atmel.com/webdoc/AVRLibcReferenceManual/FAQ_1faq_softreset.html
}

/**
* @brief inicializa o watchdog em 8s
/**
* @brief inicializa o watchdog em 8s
*/
void wdt_init(void)
{
Expand Down

0 comments on commit e0e7e1b

Please sign in to comment.