Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Wignored-qualifiers warnings #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions drivers/aps6404/aps6404.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace {
static const pio_program* pio_prog[2] = {nullptr, nullptr};
static uint16_t pio_offset[2] = {0xffff, 0xffff};

const void pio_remove_exclusive_program(PIO pio) {
void pio_remove_exclusive_program(PIO pio) {
uint8_t pio_index = pio == pio0 ? 0 : 1;
const pio_program* current_program = pio_prog[pio_index];
uint16_t current_offset = pio_offset[pio_index];
Expand All @@ -79,7 +79,7 @@ const void pio_remove_exclusive_program(PIO pio) {
}
}

const uint16_t pio_change_exclusive_program(PIO pio, const pio_program* prog) {
uint16_t pio_change_exclusive_program(PIO pio, const pio_program* prog) {
pio_remove_exclusive_program(pio);
uint8_t pio_index = pio == pio0 ? 0 : 1;
pio_prog[pio_index] = prog;
Expand Down
4 changes: 2 additions & 2 deletions drivers/dv_display/swd_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ static float pio_clkdiv;

PIO swd_pio = pio0;

extern const uint16_t pio_change_exclusive_program(PIO pio, const pio_program* prog);
extern const void pio_remove_exclusive_program(PIO pio);
uint16_t pio_change_exclusive_program(PIO pio, const pio_program* prog);
void pio_remove_exclusive_program(PIO pio);

static void wait_for_idle() {
uint pull_offset = (pio_prog == &swd_raw_write_program) ? 2 :
Expand Down
Loading