mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
Cleanups
This commit is contained in:
@@ -2,4 +2,4 @@ SFLAGS += -Iliba/include
|
||||
|
||||
liba/src/external/sqlite/mem5.o: CFLAGS += -w
|
||||
|
||||
objs += $(addprefix liba/src/, assert.o errno.o malloc.o memcpy.o memset.o external/sqlite/mem5.o)
|
||||
objs += $(addprefix liba/src/, assert.o errno.o malloc.o memcpy.o memset.o strlen.o external/sqlite/mem5.o)
|
||||
|
||||
@@ -10,7 +10,6 @@ LIBA_BEGIN_DECLS
|
||||
|
||||
void * memcpy(void * dst, const void * src, size_t n);
|
||||
void * memset(void * b, int c, size_t len);
|
||||
|
||||
size_t strlen(const char * s);
|
||||
|
||||
LIBA_END_DECLS
|
||||
|
||||
8
liba/src/strlen.c
Normal file
8
liba/src/strlen.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <string.h>
|
||||
|
||||
size_t strlen(const char * s) {
|
||||
const char * str = s;
|
||||
while (*str)
|
||||
str++;
|
||||
return str - s;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ void fx92kbd_initialize(fx92kbd_t * controller) {
|
||||
}
|
||||
|
||||
//FIXME!
|
||||
static int delay(int usec) {
|
||||
static void delay(int usec) {
|
||||
for (int i=0; i<usec; i++) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@ static void row_write(uint8_t row) {
|
||||
}
|
||||
}
|
||||
|
||||
static uint16_t column_read() {
|
||||
uint16_t output_value = 0;
|
||||
static uint8_t column_read() {
|
||||
uint8_t output_value = 0;
|
||||
size_t column_length = sizeof(column_pins)/sizeof(column_pins[0]);
|
||||
for (int i=0; i<column_length; i++) {
|
||||
gpio_pin_t pin = column_pins[i];
|
||||
|
||||
@@ -275,7 +275,7 @@ static void init_rgb_layers() {
|
||||
|
||||
LTDC_LPFCR(LTDC_LAYER1) = LTDC_PF_L8;
|
||||
|
||||
LTDC_LCFBAR(LTDC_LAYER1) = Platform.framebuffer_address;
|
||||
LTDC_LCFBAR(LTDC_LAYER1) = (uint32_t)Platform.framebuffer_address;
|
||||
|
||||
LTDC_LCFBLR(LTDC_LAYER1) =
|
||||
LTDC_CFBLL(Platform.framebuffer_width + 3) | // Number of bytes per lines in the framebuffer. 240 * 4 (RGBA888). +3, per doc;
|
||||
|
||||
@@ -9,7 +9,6 @@ void CreateFromString(char * string) {
|
||||
YY_BUFFER_STATE buf;
|
||||
poincare_expression_yylex_init(&scanner);
|
||||
buf = poincare_expression_yy_scan_string(string, scanner);
|
||||
void * selector = 0;
|
||||
Expression * expression = 0;
|
||||
poincare_expression_yyparse(scanner, &expression);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user