-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.h
38 lines (29 loc) · 886 Bytes
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __COMMON_H
#define __COMMON_H
/*
Questo file contiene tutte le dichiarazioni comuni ai diversi
file. Le variabili sono successivamente dichiarate dentro sample.c
*/
#include "inttypes.h"
/*SystemFrequency defined in file system_LPC17xx.c initialized during SystemInit()*/
extern uint32_t SystemFrequency;
extern unsigned char led_value;
//IRQ priorities
#define PRIO_0 0U
#define PRIO_1 1U
#define PRIO_2 2U
#define PRIO_3 3U
#define PRIO_4 4U
#define PRIO_5 5U
#define N 6
typedef enum {
STATE_IDLE,
STATE_RESET
} state_t;
extern volatile state_t state;
// Get Current Ticks
uint32_t Sys_GetTick(void);
/******************************************************************************
** End Of File
******************************************************************************/
#endif // __COMMON_H