File tree 3 files changed +16
-14
lines changed
3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,22 @@ void initVariant() { }
37
37
*/
38
38
int main ( void )
39
39
{
40
- initVariant ();
40
+ initVariant ();
41
41
42
42
#if defined(USBCON)
43
- usbd_interface_init ();
43
+ usbd_interface_init ();
44
44
#endif
45
45
46
- setup ();
46
+ setup ();
47
47
48
- for (;;)
49
- {
50
- CoreCallback ();
51
- loop ();
52
- if (serialEventRun) serialEventRun ();
53
- }
48
+ for (;;)
49
+ {
50
+ #if defined(CORE_CALLBACK)
51
+ CoreCallback ();
52
+ #endif
53
+ loop ();
54
+ if (serialEventRun) serialEventRun ();
55
+ }
54
56
55
- return 0 ;
57
+ return 0 ;
56
58
}
Original file line number Diff line number Diff line change 43
43
* list. Otherwise, your function should be called inside the loop() function of
44
44
* the sketch.
45
45
*/
46
-
46
+ #if defined( CORE_CALLBACK )
47
47
#ifdef __cplusplus
48
48
extern "C" {
49
49
#endif
@@ -107,5 +107,5 @@ void CoreCallback(void)
107
107
#ifdef __cplusplus
108
108
}
109
109
#endif
110
-
110
+ #endif // CORE_CALLBACK
111
111
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Original file line number Diff line number Diff line change 38
38
/* Define to prevent recursive inclusion -------------------------------------*/
39
39
#ifndef __CALLBACK_H
40
40
#define __CALLBACK_H
41
-
41
+ #if defined( CORE_CALLBACK )
42
42
#include "variant.h"
43
43
44
44
#ifdef __cplusplus
@@ -61,7 +61,7 @@ void CoreCallback(void);
61
61
#ifdef __cplusplus
62
62
}
63
63
#endif
64
-
64
+ #endif // CORE_CALLBACK
65
65
#endif /* __CALLBACK_H */
66
66
67
67
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
You can’t perform that action at this time.
0 commit comments