Commit 6712ada7 authored by Snorre Nilssen Vestli's avatar Snorre Nilssen Vestli

global variables are now static when possible

parent ea909cd0
......@@ -12,9 +12,9 @@
#define ADC_ONTIME_SELECT 0
#define ADC_OFFTIME_SELECT 1
uint16_t adc_buf_ontime[SMOOOTH], adc_buf_offtime[SMOOOTH];
uint8_t adc_val_ontime = 0, adc_val_offtime = 255;
uint8_t adc_ontime_iterator, adc_offtime_iterator, adc_channel_select;
static uint16_t adc_buf_ontime[SMOOOTH], adc_buf_offtime[SMOOOTH];
static uint8_t adc_val_ontime = 0, adc_val_offtime = 255;
static uint8_t adc_ontime_iterator, adc_offtime_iterator, adc_channel_select;
void adc_init( void )
{
......
......@@ -8,7 +8,6 @@
#include "gpio.h"
#include "../config/gpio_config.h"
uint8_t gpio_offtime = 0, gpio_ontime = 0;
void gpio_init( void )
{
......
......@@ -11,8 +11,8 @@
#include "../drivers/adc.h"
#include "../drivers/gpio.h"
uint16_t pulse_limit, deadtime;
uint16_t ontime_base, offtime_base;
static uint16_t pulse_limit, deadtime;
static uint16_t ontime_base, offtime_base;
void optic_init( void )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment