-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
80 lines (54 loc) · 1.38 KB
/
main.h
File metadata and controls
80 lines (54 loc) · 1.38 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef __MAIN_H
#define __MAIN_H
#include <stdio.h>
#include <stdlib.h>
#include "pico/stdio_usb.h"
#include "pico/stdio/driver.h"
#include "pico/stdlib.h"
#include <stdint.h>
#include <string.h>
#include <math.h>
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
#define Abs_Ternaire(a) ((a<0)?-a:a)
#define Min_Ternaire(a,b) ((a<b)?a:b)
#define Max_Ternaire(a,b) ((a>b)?a:b)
#define sizetab(a) sizeof(a)/sizeof(a[0])
#include "hardware/adc.h"
#include "hardware/flash.h"
#include "hardware/gpio.h"
#include "hardware/timer.h"
#include "hardware/watchdog.h"
#include "hardware/pio.h"
#include "hardware/dma.h"
#include "pico/binary_info.h"
#include "pico/bootrom.h"
#include "pico/cyw43_arch.h"
#include "hardware/structs/ssi.h"
#include "hardware/structs/ioqspi.h"
#include "hardware/sync.h"
#include "ADC.h"
#include "Hex_Decodeur.h"
#include "Interpreteur.h"
#include "Leds_RGB.h"
#include "Leds_RGB_Anim.h"
#include "Test_Funcs.h"
#include "user.h"
#include "BT/BT.h"
#include "BT/BT_Stdio.h"
#include "btstack_run_loop.h"
#include "btstack_event.h"
#include "btstack.h"
#include "Flash/Flash.h"
#include "Flash/Flash_Mem_Orga.h"
#include "Flash/Log_File.h"
#include "Flash/Setup_File.h"
#include "BT.h"
extern uint32_t Timer_ms1;
#define Timer_us1 timer_hw->timelr
#define RGB1_PIN 3
#define RGB2_PIN 7
#define RGB3_PIN 11
#define RGB4_PIN 15
#endif /* MAIN_H */