-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
44 lines (38 loc) · 732 Bytes
/
main.c
File metadata and controls
44 lines (38 loc) · 732 Bytes
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
#include "naglowki_include.h"
#include "inicjalizacja.h"
#include "timery.h"
#include "LED.h"
#include "silniki.h"
#include "ADC.h"
#include "NVIC.h"
#include "USART.h"
#include "dane.h"
#include "I2C.h"
#include "sensory.h"
void opoznij();
int main(void)
{
inicjalizacja_zasilania();
opoznij(); //oczekiwanie a¿ sie ustabilizuje napiecie
inicjalizacja_silniki();
inicjalizacja_dane();
inicjalizacja_LED();
inicjalizacja_SysTick();
inicjalizacja_ADC();
inicjalizacja_USART();
inicjalizacja_I2C();
inicjalizacja_sensory();
inicjalizacja_TIM2();
inicjalizacja_TIM4();
inicjalizacja_TIM3();
inicjalizacja_NVIC();
while(1)
{
}
}
void opoznij()
{
uint16_t i;
for (i = 0; i < 65535; i++)
asm("nop");
}