blob: 03a52b547d48fa165c1bbe6966323eb48f272837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "boot.h"
#include "progman.h"
#include "string.h"
#define DEFAULT_EXEC_STATUS 0x4000
struct exec_status *status = EXEC_STATUS;
void boot_init() {
*status = DEFAULT_EXEC_STATUS;
// TODO other stuff
}
int8_t authenticate(const char *pwd) {
return !memcmp(PWD_ADDR, pwd, PWD_SIZE);
}
void set_pwd(const char *pwd) {
memcpy(PWD_ADDR, pwd, PWD_SIZE);
}
|