• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

shared_fooの不要ディレクトリ削除前のもの


Commit MetaInfo

Révision1e09fc84d5975771c5fbb2be289ab3699f68fba7 (tree)
l'heure2018-03-21 15:12:03
Auteurtakemasa <suikan@user...>
Commitertakemasa

Message de Log

Refactored the consntat name to distinguish the type cleary.

Change Summary

Modification

--- a/stm32_development/murasaki/NUCLEO-F746ZG.xml
+++ b/stm32_development/murasaki/NUCLEO-F746ZG.xml
@@ -12,8 +12,8 @@
1212 <targetDefinitions>
1313 <board id="nucleo-f746zg">
1414 <name>NUCLEO-F746ZG</name>
15- <dbgIF>SWD</dbgIF>
1615 <dbgIF>JTAG</dbgIF>
16+ <dbgIF>SWD</dbgIF>
1717 <dbgDEV>ST-Link</dbgDEV>
1818 <mcuId>stm32f746zgtx</mcuId>
1919 </board>
--- a/stm32_development/murasaki/Src/my_test.cpp
+++ b/stm32_development/murasaki/Src/my_test.cpp
@@ -44,20 +44,20 @@ void InitTestUart(UART_HandleTypeDef * uart_handle, SPI_HandleTypeDef * spi_hand
4444 murasaki::platform.logger = new murasaki::UartLogger(murasaki::platform.uart_console);
4545
4646 // Setting SPI slave devices.
47- murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kscpFallThenRise,
48- murasaki::kscpLatchThenShift,
47+ murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kspoFallThenRise,
48+ murasaki::ksphLatchThenShift,
4949 SPI_CS1_GPIO_Port,
5050 SPI_CS1_Pin);
51- murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kscpFallThenRise,
52- murasaki::kscpShiftThenLatch,
51+ murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kspoFallThenRise,
52+ murasaki::ksphShiftThenLatch,
5353 SPI_CS2_GPIO_Port,
5454 SPI_CS2_Pin);
55- murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kscpRiseThenFall,
56- murasaki::kscpLatchThenShift,
55+ murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kspoRiseThenFall,
56+ murasaki::ksphLatchThenShift,
5757 SPI_CS3_GPIO_Port,
5858 SPI_CS3_Pin);
59- murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kscpRiseThenFall,
60- murasaki::kscpShiftThenLatch,
59+ murasaki::platform.slave_1 = new murasaki::SpiSlaveSpecifier(murasaki::kspoRiseThenFall,
60+ murasaki::ksphShiftThenLatch,
6161 SPI_CS4_GPIO_Port,
6262 SPI_CS4_Pin);
6363 // Setting SPI master
--- a/stm32_development/murasaki/murasaki/murasaki_defs.hpp
+++ b/stm32_development/murasaki/murasaki/murasaki_defs.hpp
@@ -66,8 +66,8 @@ enum UartHardwareFlowControl
6666 */
6767 enum SpiClockPolarity
6868 {
69- kscpRiseThenFall = 0, //!< kscpRiseThenFall POL = 0
70- kscpFallThenRise //!< kscpFallThenrise POL = 1
69+ kspoRiseThenFall = 0, //!< kscpRiseThenFall POL = 0
70+ kspoFallThenRise //!< kscpFallThenrise POL = 1
7171 };
7272
7373 /**
@@ -78,8 +78,8 @@ enum SpiClockPolarity
7878 */
7979 enum SpiClockPhase
8080 {
81- kscpLatchThenShift = 0, //!< kscpLatchThenShift
82- kscpShiftThenLatch //!< kscpShiftThenLatch
81+ ksphLatchThenShift = 0, //!< kscpLatchThenShift PHA=0. The first edge is latching. The second edge is shifting.
82+ ksphShiftThenLatch //!< kscpShiftThenLatch PHA = 1. The first edge is shifting. The second edge is latching.
8383 };
8484
8585 /**
--- a/stm32_development/murasaki/murasaki/spimaster.cpp
+++ b/stm32_development/murasaki/murasaki/spimaster.cpp
@@ -61,9 +61,9 @@ bool SpiMaster::TransmitAndReceive(murasaki::AbstractSpiSlaveSpecifier* spi_spec
6161
6262 // Set clock POL of the SPI format.
6363 peripheral_->Init.CLKPolarity =
64- (spi_spec->GetCpol() == kscpRiseThenFall) ? SPI_POLARITY_LOW : SPI_POLARITY_HIGH;
64+ (spi_spec->GetCpol() == kspoRiseThenFall) ? SPI_POLARITY_LOW : SPI_POLARITY_HIGH;
6565 // Set clock PHA of the SPI format.
66- peripheral_->Init.CLKPhase = (spi_spec->GetCpha() == kscpLatchThenShift) ? SPI_PHASE_1EDGE : SPI_PHASE_2EDGE;
66+ peripheral_->Init.CLKPhase = (spi_spec->GetCpha() == ksphLatchThenShift) ? SPI_PHASE_1EDGE : SPI_PHASE_2EDGE;
6767
6868 MURASAKI_ASSERT(HAL_SPI_Init(peripheral_) == HAL_OK);
6969