-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
36 lines (28 loc) · 877 Bytes
/
main.c
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
#include <stdio.h>
#include <math.h>
#include <zephyr/kernel.h>
#include <zephyr/init.h>
#include "buzzer.h"
#include "display.h"
#include "dracula.h"
#include "rfid.h"
#include "ui.h"
K_THREAD_STACK_DEFINE(rfid_stack, RFID_THREAD_STACK_SIZE);
struct k_thread rfid_thread_data;
k_tid_t rfid_thread_id;
int main()
{
printk("Dracula!\n");
buzzer_send(STARTUP);
rfid_thread_id = k_thread_create(&rfid_thread_data, rfid_stack,
K_THREAD_STACK_SIZEOF(rfid_stack),
rfid_main,
NULL, NULL, NULL,
RFID_THREAD_PRIORITY, 0, K_NO_WAIT);
printk("Initialisation done.\n");
display_clear(0x00);
ui_splash();
// display_string("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0, 0);
dracula_main();
return 0;
}