Skip to content

Commit 2dc24a0

Browse files
KooLruvirtual-maker
authored andcommitted
Fix coding style mistakes
1 parent 16f7c68 commit 2dc24a0

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

hal/architecture/STM32/MyHwSTM32.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Pinout STM32F103C8 dev board:
2424
* http://wiki.stm32duino.com/images/a/ae/Bluepillpinout.gif
2525
*
26-
* Wiring
26+
* Wiring
2727
* --------------------------------------------------
2828
RFM69 CLK MISO MOSI CSN CE IRQ
2929
SPI1 PA5 PA6 PA7 PA4 NA PA3 (default)
@@ -37,12 +37,12 @@ bool hwInit(void)
3737
{
3838
#if !defined(MY_DISABLED_SERIAL)
3939
MY_SERIALDEVICE.begin(MY_BAUD_RATE);
40-
#if defined(MY_GATEWAY_SERIAL)
40+
#if defined(MY_GATEWAY_SERIAL)
4141
while (!MY_SERIALDEVICE) {}
4242
#endif
4343
#endif
4444

45-
return true;
45+
return true;
4646
}
4747

4848
void hwReadConfigBlock(void *buf, void *addr, size_t length)

hal/architecture/STM32/MyHwSTM32.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@
3939
#define MY_DEBUGDEVICE MY_SERIALDEVICE
4040
#endif
4141

42-
#ifndef MY_STM32_TEMPERATURE_OFFSET
43-
#define MY_STM32_TEMPERATURE_OFFSET (0.0f)
44-
#endif
45-
46-
#ifndef MY_STM32_TEMPERATURE_GAIN
47-
#define MY_STM32_TEMPERATURE_GAIN (1.0f)
48-
#endif
49-
5042
// SS default
5143
#ifndef SS
5244
#define SS PA4

hal/architecture/STM32/MyMainSTM32.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,35 @@
2525
__attribute__((constructor(101))) void premain()
2626
{
2727

28-
// Required by FreeRTOS, see http://www.freertos.org/RTOS-Cortex-M3-M4.html
28+
// Required by FreeRTOS, see http://www.freertos.org/RTOS-Cortex-M3-M4.html
2929
#ifdef NVIC_PRIORITYGROUP_4
30-
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
30+
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
3131
#endif
3232
#if (__CORTEX_M == 0x07U)
33-
// Defined in CMSIS core_cm7.h
33+
// Defined in CMSIS core_cm7.h
3434
#ifndef I_CACHE_DISABLED
35-
SCB_EnableICache();
35+
SCB_EnableICache();
3636
#endif
3737
#ifndef D_CACHE_DISABLED
38-
SCB_EnableDCache();
38+
SCB_EnableDCache();
3939
#endif
4040
#endif
4141

42-
init();
42+
init();
4343
}
4444

4545
/*
4646
* \brief Main entry point of Arduino application
4747
*/
4848
int main(void)
4949
{
50-
51-
initVariant();
50+
initVariant();
5251

5352
_begin(); // Startup MySensors library
5453
for(;;) {
5554
_process(); // Process incoming data
5655
#if defined(CORE_CALLBACK)
57-
CoreCallback();
56+
CoreCallback();
5857
#endif
5958
if (loop) {
6059
loop(); // Call sketch loop

0 commit comments

Comments
 (0)