diff options
Diffstat (limited to 'src/arch/msp430fr5969lp')
-rw-r--r-- | src/arch/msp430fr5969lp/arch.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc index b475c5f..b5b23b6 100644 --- a/src/arch/msp430fr5969lp/arch.cc +++ b/src/arch/msp430fr5969lp/arch.cc @@ -93,15 +93,15 @@ extern void loop(); volatile char run_loop = 0; #endif -void Arch::delay_us(unsigned char const us) +void Arch::delay_us(unsigned int const us) { - for (int i = 0; i < us/10; i++) { + for (unsigned int i = 0; i < us/10; i++) { __delay_cycles(160); } } -void Arch::delay_ms(unsigned char const ms) +void Arch::delay_ms(unsigned int const ms) { - for (int i = 0; i < ms; i++) { + for (unsigned int i = 0; i < ms; i++) { __delay_cycles(16000); } } |