Deutsch   English   Français   Italiano  
<utrna6$113rn$3@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.misty.com!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho <Pancho.Jones@proton.me>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Need help with PI PICO...
Date: Mon, 25 Mar 2024 11:31:16 +0000
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <utrna6$113rn$3@dont-email.me>
References: <utn4f2$3p985$1@dont-email.me>
 <20240323183723.b2902fb94d75422b924c1bc7@eircom.net>
 <utnkjj$3t5m0$1@dont-email.me>
 <20240324072346.81064ff46570e669982a1f4e@eircom.net>
 <utp1sm$acjh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 25 Mar 2024 12:31:18 +0100
Injection-Info: dont-email.me; posting-host="973cd90b6f4210e572765eee0a91721c";
	logging-data="1085303"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18tCgWKs3qyzhzgs7JGm3Jxd/KYXOt/5eg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZbNKMDvv77YckVfsCsg7X4jFbTI=
In-Reply-To: <utp1sm$acjh$1@dont-email.me>
Content-Language: en-GB
Bytes: 1894

On 24/03/2024 11:13, The Natural Philosopher wrote:

> However on trawling the internet I discovered a conversation  with 
> someone else *on here* (c.s.r-pi) last year, who was finding that 
> *sleep_us(x)* was highly inconsistent for certain (small) values of x. 
> Sometimes taking a day to end.
> 
> Further investigation reveals that in fact it really is a 'sleep' with 
> the processor being put in low power mode and requiring an interrupt to 
> 'wake it up'.
> 

Why not use threads/timers, wait on a lock/semaphore rather than sleep.

But looking at PICO code samples, they commonly use sleep, so I'd be 
surprised if it was that bad.