mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2026-03-14 21:19:43 +01:00
Fix some returns
This commit is contained in:
parent
da91b86c15
commit
6e1b122c36
3 changed files with 5 additions and 3 deletions
|
|
@ -66,6 +66,7 @@ static inline generic_bitset_t *bitset_write_word(generic_bitset_t *bitset, uint
|
|||
if (word_num < bitset_word_size(bitset)) {
|
||||
bitset->words[word_num] = value;
|
||||
}
|
||||
return bitset;
|
||||
}
|
||||
|
||||
static inline uint32_t bitset_read_word(const generic_bitset_t *bitset, uint word_num) {
|
||||
|
|
|
|||
|
|
@ -95,8 +95,9 @@ void rtc_disable_alarm(void);
|
|||
*
|
||||
* \param src_hz The frequency of the external clock source
|
||||
* \param gpio_pin The input pin providing the external clock (GP20 or GP22)
|
||||
* \return true if it is possible to run the RTC from the external clock frequency, false otherwise.
|
||||
*/
|
||||
void rtc_run_from_external_source(uint src_hz, uint gpio_pin);
|
||||
bool rtc_run_from_external_source(uint32_t src_hz, uint gpio_pin);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,6 +189,6 @@ void rtc_disable_alarm(void) {
|
|||
}
|
||||
}
|
||||
|
||||
void rtc_run_from_external_source(uint src_hz, uint gpio_pin) {
|
||||
clock_configure_gpin(clk_rtc, gpio_pin, src_hz, 46875);
|
||||
bool rtc_run_from_external_source(uint32_t src_hz, uint gpio_pin) {
|
||||
return clock_configure_gpin(clk_rtc, gpio_pin, src_hz, 46875);
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue