- main: no global vars

- changed data types in fifo


git-svn-id: http://moon:8086/svn/projects/HendiControl@39 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-03-02 16:07:39 +00:00
parent 0b22e8a084
commit 6998950021
3 changed files with 33 additions and 29 deletions
+6 -6
View File
@@ -39,11 +39,6 @@
#define TIMER_SW_DELAY_MS(dly) ((dly*TIMER_IRQ_CLOCK)/1000UL)
static uint8_t ledState = 0;
static int16_t adc_last = 0;
static int sw_in_last = 0;
static Fifo messageFifo;
FILE uart_file = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);
typedef enum _eSwitch
@@ -83,6 +78,12 @@ typedef enum _eState_t
int main(void)
{
uint8_t ledState = 0;
int16_t adc_last = 0;
int sw_in_last = 0;
size_t cmdStrSize = 0;
Fifo messageFifo;
cli();
wdt_reset();
wdt_disable();
@@ -109,7 +110,6 @@ int main(void)
i2c_send(0x60, I2C_WRITE, dac_cmd, res);
char cmdStr[16];
size_t cmdStrSize = 0;
PRINT_PROMPT;
// Start Timer