mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-27 16:54:15 +01:00
Fix the soft timing in pios_delay. Also disable LED printing messages.
This commit is contained in:
parent
dd5a71c48d
commit
ea5b733ac8
@ -99,16 +99,14 @@ int32_t PIOS_DELAY_WaitmS(uint32_t mS)
|
||||
|
||||
uint32_t PIOS_DELAY_GetRaw()
|
||||
{
|
||||
// struct timespec time;
|
||||
// uint32_t raw_us;
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
uint32_t raw_us = clock();
|
||||
return raw_us;
|
||||
}
|
||||
|
||||
uint32_t PIOS_DELAY_DiffuS(uint32_t rapec)
|
||||
uint32_t PIOS_DELAY_DiffuS(uint32_t ref)
|
||||
{
|
||||
return 0;
|
||||
uint32_t diff_clock = clock() - ref;
|
||||
uint32_t diff_us = diff_clock; // (CLOCKS_PER_SEC / 1000);
|
||||
return diff_us;
|
||||
}
|
||||
#endif
|
||||
|
@ -39,7 +39,7 @@ static uint8_t LED_GPIO[PIOS_LED_NUM];
|
||||
|
||||
|
||||
static inline void PIOS_SetLED(uint32_t LED,uint8_t stat) {
|
||||
printf("PIOS: LED %i status %i\n",LED,stat);
|
||||
// printf("PIOS: LED %i status %i\n",LED,stat);
|
||||
LED_GPIO[LED]=stat;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user