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:
@@ -80,12 +80,10 @@ void render_carrier(CanvasApi* canvas, State* state) {
|
||||
canvas->draw_str(canvas, 2, 37, "? /\\ freq | \\/ duty cycle");
|
||||
{
|
||||
char buf[24];
|
||||
sprintf(buf, "frequency: %d Hz", state->carrier_freq);
|
||||
sprintf(buf, "frequency: %u Hz", state->carrier_freq);
|
||||
canvas->draw_str(canvas, 2, 50, buf);
|
||||
sprintf(
|
||||
buf,
|
||||
"duty cycle: %d/1000",
|
||||
(uint32_t)(duty_cycles[state->carrier_duty_cycle_id] * 1000));
|
||||
buf, "duty cycle: %d/1000", (int)(duty_cycles[state->carrier_duty_cycle_id] * 1000));
|
||||
canvas->draw_str(canvas, 2, 62, buf);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user