File tree Expand file tree Collapse file tree 3 files changed +11
-20
lines changed Expand file tree Collapse file tree 3 files changed +11
-20
lines changed Original file line number Diff line number Diff line change 23
23
* Pinout STM32F103C8 dev board:
24
24
* http://wiki.stm32duino.com/images/a/ae/Bluepillpinout.gif
25
25
*
26
- * Wiring
26
+ * Wiring
27
27
* --------------------------------------------------
28
28
RFM69 CLK MISO MOSI CSN CE IRQ
29
29
SPI1 PA5 PA6 PA7 PA4 NA PA3 (default)
@@ -37,12 +37,12 @@ bool hwInit(void)
37
37
{
38
38
#if !defined(MY_DISABLED_SERIAL)
39
39
MY_SERIALDEVICE.begin (MY_BAUD_RATE);
40
- #if defined(MY_GATEWAY_SERIAL)
40
+ #if defined(MY_GATEWAY_SERIAL)
41
41
while (!MY_SERIALDEVICE) {}
42
42
#endif
43
43
#endif
44
44
45
- return true ;
45
+ return true ;
46
46
}
47
47
48
48
void hwReadConfigBlock (void *buf, void *addr, size_t length)
Original file line number Diff line number Diff line change 39
39
#define MY_DEBUGDEVICE MY_SERIALDEVICE
40
40
#endif
41
41
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
-
50
42
// SS default
51
43
#ifndef SS
52
44
#define SS PA4
Original file line number Diff line number Diff line change 25
25
__attribute__ ((constructor(101 ))) void premain()
26
26
{
27
27
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
29
29
#ifdef NVIC_PRIORITYGROUP_4
30
- HAL_NVIC_SetPriorityGrouping (NVIC_PRIORITYGROUP_4);
30
+ HAL_NVIC_SetPriorityGrouping (NVIC_PRIORITYGROUP_4);
31
31
#endif
32
32
#if (__CORTEX_M == 0x07U)
33
- // Defined in CMSIS core_cm7.h
33
+ // Defined in CMSIS core_cm7.h
34
34
#ifndef I_CACHE_DISABLED
35
- SCB_EnableICache ();
35
+ SCB_EnableICache ();
36
36
#endif
37
37
#ifndef D_CACHE_DISABLED
38
- SCB_EnableDCache ();
38
+ SCB_EnableDCache ();
39
39
#endif
40
40
#endif
41
41
42
- init ();
42
+ init ();
43
43
}
44
44
45
45
/*
46
46
* \brief Main entry point of Arduino application
47
47
*/
48
48
int main (void )
49
49
{
50
-
51
- initVariant ();
50
+ initVariant ();
52
51
53
52
_begin (); // Startup MySensors library
54
53
for (;;) {
55
54
_process (); // Process incoming data
56
55
#if defined(CORE_CALLBACK)
57
- CoreCallback ();
56
+ CoreCallback ();
58
57
#endif
59
58
if (loop) {
60
59
loop (); // Call sketch loop
You can’t perform that action at this time.
0 commit comments