Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UIT2_MovingAverage UIT2_AllpassReverb UIT2_CombReverb UIT2_FIR_LPF_Symmetry ... more
Revision 11:a764fe59d343, committed 2014-11-27
- Comitter:
- MikamiUitOpen
- Date:
- Thu Nov 27 08:42:59 2014 +0000
- Parent:
- 10:c326d04aa6b8
- Child:
- 12:479d18a09e87
- Commit message:
- 12
Changed in this revision
| DAC_MCP4922.cpp | Show annotated file Show diff for this revision Revisions of this file |
| tim4_slaveSelect.hpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/DAC_MCP4922.cpp Thu Nov 13 03:41:24 2014 +0000 +++ b/DAC_MCP4922.cpp Thu Nov 27 08:42:59 2014 +0000 @@ -1,7 +1,7 @@ //------------------------------------------------------ // Class for single DAC in MCP4922 // -// 2014/11/12, Copyright (c) 2014 MIKAMI, Naoki +// 2014/11/27, Copyright (c) 2014 MIKAMI, Naoki //------------------------------------------------------ #include "DAC_MCP4922.hpp"
--- a/tim4_slaveSelect.hpp Thu Nov 13 03:41:24 2014 +0000
+++ b/tim4_slaveSelect.hpp Thu Nov 27 08:42:59 2014 +0000
@@ -3,7 +3,7 @@
//
// Default pin assignments: PB_6 (D10)
// PB_7, PB_8 (D15), and PB_9 (D14) also can be used
-// 2014/09/28, Copyright (c) 2014 MIKAMI, Naoki
+// 2014/11/22, Copyright (c) 2014 MIKAMI, Naoki
//------------------------------------------------------
#ifndef TIM4_SLAVESELECT_HPP
@@ -39,8 +39,16 @@
// Generate slave select
void SlaveSelect()
{
- myTim_->CNT = 1; // Set counter 1
+ myTim_->CNT = 0; // Set counter 0
myTim_->CR1 |= TIM_CR1_CEN; // Enable TIM4
+ __NOP();
+ __NOP();
+ __NOP();
+ __NOP();
+#ifdef __STM32F411xE_H
+ __NOP();
+ __NOP();
+#endif // __STM32F411xE_H
}
private:
TIM_TypeDef* myTim_;