-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationpico_multicore
Description
In both the SDK, and the SDK reference, the multicore doorbell check functions have been incorrectly documented as checking the opposite core than it should be checking.
pico-sdk/src/rp2_common/pico_multicore/include/pico/multicore.h
Lines 380 to 396 in a1438df
| /*! \brief Determine if the given doorbell is active on the other core | |
| * \ingroup multicore_doorbell | |
| * \param doorbell_num the doorbell number | |
| */ | |
| static inline bool multicore_doorbell_is_set_current_core(uint doorbell_num) { | |
| check_doorbell_num_param(doorbell_num); | |
| return sio_hw->doorbell_in_set & (1u << doorbell_num); | |
| } | |
| /*! \brief Determine if the given doorbell is active on the this core | |
| * \ingroup multicore_doorbell | |
| * \param doorbell_num the doorbell number | |
| */ | |
| static inline bool multicore_doorbell_is_set_other_core(uint doorbell_num) { | |
| check_doorbell_num_param(doorbell_num); | |
| return sio_hw->doorbell_out_set & (1u << doorbell_num); | |
| } |
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationpico_multicore