forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from eried/next
Updating firmware
- Loading branch information
Showing
20 changed files
with
156,173 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
153,118 changes: 153,118 additions & 0 deletions
153,118
docs/webinstaller/build/esp32cam_marauder.ino.map
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
docs/webinstaller/build/esp32cam_marauder.ino.partitions.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...s/plerup-espsoftwareserial- Implementation of the Arduino software serial for ESP8266.url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[InternetShortcut] | ||
URL=https://github.com/plerup/espsoftwareserial |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I got this library from : https://github.com/fustyles/Arduino/tree/master/ESP32-CAM_QRCode_Recognition/ESP32QRCodeReader_Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* This file is part of the OpenMV project. | ||
* Copyright (c) 2013-2017 Ibrahim Abdelkader <iabdalkader@openmv.io> & Kwabena W. Agyeman <kwagyeman@openmv.io> | ||
* This work is licensed under the MIT license, see the file LICENSE for details. | ||
*/ | ||
|
||
#include "collections.h" | ||
#define CHAR_BITS (sizeof(char) * 8) | ||
#define CHAR_MASK (CHAR_BITS - 1) | ||
#define CHAR_SHIFT IM_LOG2(CHAR_MASK) | ||
|
||
////////// | ||
// lifo // | ||
////////// | ||
|
||
void lifo_alloc(lifo_t *ptr, size_t size, size_t data_len) | ||
{ | ||
ptr->len = 0; | ||
ptr->size = size; | ||
ptr->data_len = data_len; | ||
ptr->data = (char *)ps_malloc(size * data_len); | ||
} | ||
|
||
void lifo_alloc_all(lifo_t *ptr, size_t *size, size_t data_len) | ||
{ | ||
ptr->data = (char *)ps_malloc(255); | ||
ptr->data_len = data_len; | ||
ptr->size = 255 / data_len; | ||
ptr->len = 0; | ||
*size = ptr->size; | ||
} | ||
|
||
void lifo_free(lifo_t *ptr) | ||
{ | ||
if (ptr->data) | ||
{ | ||
free(ptr->data); | ||
} | ||
} | ||
|
||
void lifo_clear(lifo_t *ptr) | ||
{ | ||
ptr->len = 0; | ||
} | ||
|
||
size_t lifo_size(lifo_t *ptr) | ||
{ | ||
return ptr->len; | ||
} | ||
|
||
bool lifo_is_not_empty(lifo_t *ptr) | ||
{ | ||
return ptr->len; | ||
} | ||
|
||
bool lifo_is_not_full(lifo_t *ptr) | ||
{ | ||
return ptr->len != ptr->size; | ||
} | ||
|
||
void lifo_enqueue(lifo_t *ptr, void *data) | ||
{ | ||
memcpy(ptr->data + (ptr->len * ptr->data_len), data, ptr->data_len); | ||
|
||
ptr->len += 1; | ||
} | ||
|
||
void lifo_dequeue(lifo_t *ptr, void *data) | ||
{ | ||
if (data) | ||
{ | ||
memcpy(data, ptr->data + ((ptr->len - 1) * ptr->data_len), ptr->data_len); | ||
} | ||
|
||
ptr->len -= 1; | ||
} | ||
|
||
void lifo_poke(lifo_t *ptr, void *data) | ||
{ | ||
memcpy(ptr->data + (ptr->len * ptr->data_len), data, ptr->data_len); | ||
} | ||
|
||
void lifo_peek(lifo_t *ptr, void *data) | ||
{ | ||
memcpy(data, ptr->data + ((ptr->len - 1) * ptr->data_len), ptr->data_len); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* This file is part of the OpenMV project. | ||
* Copyright (c) 2013-2017 Ibrahim Abdelkader <iabdalkader@openmv.io> & Kwabena W. Agyeman <kwagyeman@openmv.io> | ||
* This work is licensed under the MIT license, see the file LICENSE for details. | ||
*/ | ||
|
||
#ifndef __COLLECTIONS_H__ | ||
#define __COLLECTIONS_H__ | ||
#include <stdbool.h> | ||
#include <stddef.h> | ||
////////// | ||
// lifo // | ||
////////// | ||
|
||
typedef struct lifo | ||
{ | ||
size_t len, size, data_len; | ||
char *data; | ||
} | ||
__attribute__((aligned(8))) lifo_t; | ||
|
||
void lifo_alloc(lifo_t *ptr, size_t size, size_t data_len); | ||
void lifo_alloc_all(lifo_t *ptr, size_t *size, size_t data_len); | ||
void lifo_free(lifo_t *ptr); | ||
void lifo_clear(lifo_t *ptr); | ||
size_t lifo_size(lifo_t *ptr); | ||
bool lifo_is_not_empty(lifo_t *ptr); | ||
bool lifo_is_not_full(lifo_t *ptr); | ||
void lifo_enqueue(lifo_t *ptr, void *data); | ||
void lifo_dequeue(lifo_t *ptr, void *data); | ||
void lifo_poke(lifo_t *ptr, void *data); | ||
void lifo_peek(lifo_t *ptr, void *data); | ||
|
||
#endif /* __COLLECTIONS_H__ */ |
Oops, something went wrong.