diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-08-07 10:18:25 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-08-07 10:18:25 +0200 |
commit | f6a842b1b064c83d42dfd626e888f79e4c1633e8 (patch) | |
tree | 5fb6088e10bd7fec2855a4c2a4914812e33a1be3 /src/arch/msp430fr5969lp/arch.cc | |
parent | 353aa77910b3a9eeb8282539b17c76c7c7ec0dc7 (diff) |
Support optional SoftI2C pullups on MSP430
Diffstat (limited to 'src/arch/msp430fr5969lp/arch.cc')
-rw-r--r-- | src/arch/msp430fr5969lp/arch.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/arch.cc b/src/arch/msp430fr5969lp/arch.cc index 9ea49b7..ddb84a4 100644 --- a/src/arch/msp430fr5969lp/arch.cc +++ b/src/arch/msp430fr5969lp/arch.cc @@ -72,6 +72,13 @@ extern void loop(); volatile char run_loop = 0; #endif +void Arch::delay_us(unsigned char const us) +{ + for (int i = 0; i < us/10; i++) { + __delay_cycles(160); + } +} + void Arch::idle_loop(void) { while (1) { |