mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-05-16 05:12:29 -04:00
Fix some compile-time warnings.
This commit is contained in:
parent
373e4d8274
commit
121e9cf5de
2 changed files with 8 additions and 8 deletions
|
@ -12,7 +12,7 @@ typedef int32_t mtime_t;
|
|||
|
||||
volatile ticks_t _clock;
|
||||
|
||||
inline ticks_t timer_clock(void) {
|
||||
static inline ticks_t timer_clock(void) {
|
||||
ticks_t result;
|
||||
|
||||
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
|
||||
|
@ -31,7 +31,7 @@ inline void cpu_relax(void) {
|
|||
// Do nothing!
|
||||
}
|
||||
|
||||
inline void delay_ms(unsigned long ms) {
|
||||
static inline void delay_ms(unsigned long ms) {
|
||||
ticks_t start = timer_clock();
|
||||
unsigned long n_ticks = ms_to_ticks(ms);
|
||||
while (timer_clock() - start < n_ticks) {
|
||||
|
@ -40,4 +40,4 @@ inline void delay_ms(unsigned long ms) {
|
|||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue