Skip to content

feat: adds note-c platform mutexes#4

Merged
Bucknalla merged 15 commits intomainfrom
alex-add-mutexes
Oct 8, 2025
Merged

feat: adds note-c platform mutexes#4
Bucknalla merged 15 commits intomainfrom
alex-add-mutexes

Conversation

@Bucknalla
Copy link
Copy Markdown
Collaborator

No description provided.

@Bucknalla Bucknalla requested a review from zfields October 6, 2025 18:31
Comment thread src/notecard_platform.c Outdated
Comment thread src/notecard_platform.c Outdated
Comment thread src/notecard_platform.c Outdated
Comment thread src/notecard_platform.c
Comment thread src/notecard_platform.c Outdated
@Bucknalla Bucknalla requested a review from zfields October 6, 2025 21:15
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread include/notecard.h Outdated
Comment thread src/notecard_platform.c Outdated
Comment thread src/notecard_platform.c Outdated
Comment thread src/notecard_platform.c Outdated
Comment thread src/notecard_platform.c Outdated
Bucknalla and others added 8 commits October 8, 2025 15:38
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
Comment thread README.md Outdated
Comment thread src/notecard_platform.c Outdated
//=============================================================================

#ifdef CONFIG_NOTECARD_I2C_MUTEX
static void notecard_platform_lock_i2c(void)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void notecard_platform_lock_i2c(void)
static void notecard_platform_i2c_lock(void)

Comment thread src/notecard_platform.c Outdated
}
}

static void notecard_platform_unlock_i2c(void)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void notecard_platform_unlock_i2c(void)
static void notecard_platform_i2c_unlock(void)

Comment thread src/notecard_platform.c Outdated
}
#endif

static void notecard_platform_lock_note(void)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void notecard_platform_lock_note(void)
static void notecard_platform_note_lock(void)

Comment thread src/notecard_platform.c Outdated
}
}

static void notecard_platform_unlock_note(void)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static void notecard_platform_unlock_note(void)
static void notecard_platform_note_unlock(void)

Comment thread src/notecard_platform.c Outdated
Comment on lines +497 to +498
NoteSetFnNoteMutex(notecard_platform_lock_note,
notecard_platform_unlock_note);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NoteSetFnNoteMutex(notecard_platform_lock_note,
notecard_platform_unlock_note);
NoteSetFnNoteMutex(notecard_platform_note_lock,
notecard_platform_note_unlock);

Comment thread src/notecard_platform.c Outdated
Comment on lines +502 to +503
NoteSetFnI2CMutex(notecard_platform_lock_i2c,
notecard_platform_unlock_i2c);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
NoteSetFnI2CMutex(notecard_platform_lock_i2c,
notecard_platform_unlock_i2c);
NoteSetFnI2CMutex(notecard_platform_i2c_lock,
notecard_platform_i2c_unlock);

Comment thread src/notecard_platform.c Outdated
#ifdef CONFIG_NOTECARD_I2C_MUTEX
void notecard_i2c_lock(void)
{
notecard_platform_lock_i2c();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
notecard_platform_lock_i2c();
notecard_platform_i2c_lock();

Comment thread src/notecard_platform.c Outdated

void notecard_i2c_unlock(void)
{
notecard_platform_unlock_i2c();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
notecard_platform_unlock_i2c();
notecard_platform_i2c_unlock();

Bucknalla and others added 2 commits October 8, 2025 16:49
Co-authored-by: Zachary J. Fields <zachary_fields@yahoo.com>
@Bucknalla Bucknalla merged commit b5a0d67 into main Oct 8, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants