Core code cleanup (#206)
* add delay function * todo about delay_isr * remove arduino defines and fix all apps to use core-api/hal-api * delay for local target * remove warnings of task_equal * fix BSP_SD_Init * fix USBD_static * grio read constant pointer to gpio * add TODO about ISR context * const void* arg for pubsub api * mark unused functions * app pointers now pointed to constant apps * fix printf format * fix "unused" warnings in local target * fix const pin read in local target * fix int to pointer warnings in local target * power read mutex error fix * delete old makefile * add -werror Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
		| @@ -12,7 +12,7 @@ and also subscriber can set `void*` context pointer that pass into | ||||
| callback (you can see callback signature below). | ||||
| */ | ||||
|  | ||||
| typedef void (*PubSubCallback)(void*, void*); | ||||
| typedef void (*PubSubCallback)(const void*, void*); | ||||
| typedef struct PubSubType PubSub; | ||||
|  | ||||
| typedef struct { | ||||
|   | ||||
| @@ -23,7 +23,7 @@ static inline void gpio_write(GpioPin* gpio, bool state) { | ||||
| } | ||||
|  | ||||
| // read value from GPIO, false = LOW, true = HIGH | ||||
| static inline bool gpio_read(GpioPin* gpio) { | ||||
| static inline bool gpio_read(const GpioPin* gpio) { | ||||
|     return hal_gpio_read(gpio); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -17,7 +17,6 @@ extern "C" { | ||||
| #endif | ||||
|  | ||||
| #include <stdio.h> | ||||
| #include "flipper_arduino.h" | ||||
|  | ||||
| void set_exitcode(uint32_t _exitcode); | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| #include "flipper.h" | ||||
| #include "api-hal-task.h" | ||||
|  | ||||
| // TODO: this file contains printf, that not implemented on uC target | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user