A while ago I tried to reconfigure a couple of saber fonts on a proffie saber and when I verified the configuration to see if it was ok to upload it said, “exit status 1” it did not say what was wrong with the config and I thought that the proffie board software I tried to config was broken. Fast forward to recently this week, I tried the same with a different proffie saber that I had got in the mail, I tried to config the saber with one sound and saber configuration and it said the same thing, “exit status 1” I have no idea what the problem is and Im wondering if you guys could help.
Is that really all it said?
Did you scroll up in the error window?
Maybe use the “copy error message” button and paste here?
sorry to respond so late, but i have all that it said when verifying the configuration.
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6697:22: note: mismatched types '__va_list' and 'int'
6697 | L"%f", __val);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h: In function 'std::wstring std::__cxx11::to_wstring(long double)':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6706:23: error: no matching function for call to '__to_xstring<std::wstring>(int (*)(wchar_t*, size_t, const wchar_t*, int), const int&, const wchar_t [4], long double&)'
6706 | L"%Lf", __val);
| ^
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6493,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\string:55,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_classes.h:40,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ios_base.h:41,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:42,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ext\string_conversions.h:99:5: note: candidate: 'template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int (*)(_CharT*, std::size_t, const _CharT*, __va_list), std::size_t, const _CharT*, ...)'
99 | __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ext\string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\string:55,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_classes.h:40,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ios_base.h:41,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:42,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6706:23: note: mismatched types '__va_list' and 'int'
6706 | L"%Lf", __val);
| ^
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:43,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\streambuf: In instantiation of 'class std::basic_streambuf<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\streambuf.tcc:160:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\streambuf:133:48: error: no type named 'int_type' in 'std::basic_streambuf<wchar_t>::traits_type' {aka 'struct std::char_traits<wchar_t>'}
133 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:50,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_facets.h:39,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:37,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h: At global scope:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:30:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
30 | int iswalpha (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:31:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
31 | int iswalnum (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:33:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
33 | int iswblank (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:35:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
35 | int iswcntrl (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:36:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
36 | int iswctype (wint_t, wctype_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:36:31: error: expected primary-expression before ')' token
36 | int iswctype (wint_t, wctype_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:36:31: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:37:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
37 | int iswdigit (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:38:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
38 | int iswgraph (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:39:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
39 | int iswlower (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:40:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
40 | int iswprint (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:41:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
41 | int iswpunct (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:42:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
42 | int iswspace (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:43:15: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
43 | int iswupper (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:44:16: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
44 | int iswxdigit (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:45:1: error: 'wint_t' does not name a type; did you mean 'ino_t'?
45 | wint_t towctrans (wint_t, wctrans_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:46:1: error: 'wint_t' does not name a type; did you mean 'ino_t'?
46 | wint_t towupper (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:47:1: error: 'wint_t' does not name a type; did you mean 'ino_t'?
47 | wint_t towlower (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:52:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
52 | extern int iswalpha_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:52:40: error: expected primary-expression before ')' token
52 | extern int iswalpha_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:52:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:53:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
53 | extern int iswalnum_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:53:40: error: expected primary-expression before ')' token
53 | extern int iswalnum_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:53:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:54:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
54 | extern int iswblank_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:54:40: error: expected primary-expression before ')' token
54 | extern int iswblank_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:54:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:55:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
55 | extern int iswcntrl_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:55:40: error: expected primary-expression before ')' token
55 | extern int iswcntrl_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:55:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
56 | extern int iswctype_l (wint_t, wctype_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:40: error: expected primary-expression before ',' token
56 | extern int iswctype_l (wint_t, wctype_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:50: error: expected primary-expression before ')' token
56 | extern int iswctype_l (wint_t, wctype_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:50: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:57:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
57 | extern int iswdigit_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:57:40: error: expected primary-expression before ')' token
57 | extern int iswdigit_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:57:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:58:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
58 | extern int iswgraph_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:58:40: error: expected primary-expression before ')' token
58 | extern int iswgraph_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:58:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:59:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
59 | extern int iswlower_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:59:40: error: expected primary-expression before ')' token
59 | extern int iswlower_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:59:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:60:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
60 | extern int iswprint_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:60:40: error: expected primary-expression before ')' token
60 | extern int iswprint_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:60:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:61:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
61 | extern int iswpunct_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:61:40: error: expected primary-expression before ')' token
61 | extern int iswpunct_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:61:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:62:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
62 | extern int iswspace_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:62:40: error: expected primary-expression before ')' token
62 | extern int iswspace_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:62:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:63:24: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
63 | extern int iswupper_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:63:40: error: expected primary-expression before ')' token
63 | extern int iswupper_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:63:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:64:25: error: 'wint_t' was not declared in this scope; did you mean 'ino_t'?
64 | extern int iswxdigit_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:64:41: error: expected primary-expression before ')' token
64 | extern int iswxdigit_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:64:41: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:65:8: error: 'wint_t' does not name a type; did you mean 'ino_t'?
65 | extern wint_t towctrans_l (wint_t, wctrans_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:66:8: error: 'wint_t' does not name a type; did you mean 'ino_t'?
66 | extern wint_t towupper_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:67:8: error: 'wint_t' does not name a type; did you mean 'ino_t'?
67 | extern wint_t towlower_l (wint_t, locale_t);
| ^~~~~~
| ino_t
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_facets.h:39,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:37,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:84:11: error: '::wint_t' has not been declared
84 | using ::wint_t;
| ^~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:101:11: error: '::towctrans' has not been declared
101 | using ::towctrans;
| ^~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:102:11: error: '::towlower' has not been declared
102 | using ::towlower;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:103:11: error: '::towupper' has not been declared
103 | using ::towupper;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:37,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_facets.h:1200:7: error: 'wint_t' does not name a type; did you mean 'ino_t'?
1200 | wint_t _M_widen[1 + static_cast<unsigned char>(-1)];
| ^~~~~~
| ino_t
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h: In instantiation of 'class std::basic_ios<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.tcc:181:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:77:54: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
77 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:39,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ostream: In instantiation of 'class std::basic_ostream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ostream.tcc:382:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ostream:63:44: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
63 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream: In instantiation of 'class std::basic_istream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:663:27: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:63:44: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
63 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:673:5: error: template-id 'ignore<>' for 'std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore(...)' does not match any template declaration
673 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:674:44: note: saw 1 'template<>', need 2 for specializing a member function template
674 | ignore(streamsize __n, int_type __delim);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream: In instantiation of 'class std::basic_istream<wchar_t>::sentry':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\istream.tcc:1074:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:697:43: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
697 | typedef typename _Traits::int_type __int_type;
| ^~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream: In instantiation of 'class std::basic_iostream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\istream.tcc:1093:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:833:44: error: no type named 'int_type' in 'struct std::char_traits<wchar_t>'
833 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of 'class std::__cxx11::basic_stringbuf<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:297:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:75:48: error: no type named 'int_type' in 'std::__cxx11::basic_stringbuf<wchar_t>::traits_type' {aka 'struct std::char_traits<wchar_t>'}
75 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of 'class std::__cxx11::basic_istringstream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:298:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:401:48: error: no type named 'int_type' in 'std::__cxx11::basic_istringstream<wchar_t>::traits_type' {aka 'struct std::char_traits<wchar_t>'}
401 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of 'class std::__cxx11::basic_ostringstream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:299:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:559:48: error: no type named 'int_type' in 'std::__cxx11::basic_ostringstream<wchar_t>::traits_type' {aka 'struct std::char_traits<wchar_t>'}
559 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of 'class std::__cxx11::basic_stringstream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:300:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:717:48: error: no type named 'int_type' in 'std::__cxx11::basic_stringstream<wchar_t>::traits_type' {aka 'struct std::char_traits<wchar_t>'}
717 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\talkie.h:1038:29: note: in expansion of macro 'NULL'
1038 | const uint8_t * ptrAddr = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\sound\talkie.h: In member function 'void Talkie::ReadFrame()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\talkie.h:825:19: note: in expansion of macro 'NULL'
825 | ptrAddr = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\sound\buffered_audio_stream.h: In member function 'void BufferedAudioStream<N>::clear()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: cannot convert 'void*' to 'ProffieOSAudioStream*'
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\buffered_audio_stream.h:56:17: note: in expansion of macro 'NULL'
56 | stream_.set(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\dynamic_mixer.h:5,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:11,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\common\atomic.h:57:14: note: initializing argument 1 of 'void POAtomic<T>::set(T) [with T = ProffieOSAudioStream*]'
57 | void set(T value) {
| ~~^~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\effect.h:6,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\common\file_reader.h: In member function 'char* FileReader::readString()':
C:\Users\Matt\Desktop\ProffieOS\common\file_reader.h:372:36: error: 'malloc' cannot be used as a function
372 | char* ret = (char*)malloc(space);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\effect.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'Effect*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\effect.h:9:23: note: in expansion of macro 'NULL'
9 | Effect* all_effects = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\sound\sound.h: In function 'void SetupStandardAudio()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'ProffieOSAudioStream*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:124:17: note: in expansion of macro 'NULL'
124 | dac.SetStream(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:575:46: note: initializing argument 1 of 'void LS_DAC::SetStream(ProffieOSAudioStream*)'
575 | void SetStream(class ProffieOSAudioStream* stream) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\common\config_file.h: In member function 'void ConfigFile::WriteToRootDir(const char*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'const char*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\common\config_file.h:158:58: note: in expansion of macro 'NULL'
158 | void WriteToRootDir(const char* basename) { WriteToDir(NULL, basename); }
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:130,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\common\config_file.h:149:31: note: initializing argument 1 of 'void ConfigFile::WriteToDir(const char*, const char*)'
149 | void WriteToDir(const char* dir, const char* basename) {
| ~~~~~~~~~~~~^~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h: In member function 'void HybridFont::RestartHum()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'Effect*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:306:32: note: in expansion of macro 'NULL'
306 | PlayMonophonic(getHum(), NULL, 0.2f);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:299:42: note: initializing argument 2 of 'void HybridFont::PlayMonophonic(Effect*, Effect*, float)'
299 | void PlayMonophonic(Effect* f, Effect* loop, float xfade = 0.003f) {
| ~~~~~~~~^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h: In member function 'virtual void HybridFont::SB_Off(SaberBase::OffType)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'Effect*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:555:31: note: in expansion of macro 'NULL'
555 | PlayMonophonic(effect, NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:299:42: note: initializing argument 2 of 'void HybridFont::PlayMonophonic(Effect*, Effect*, float)'
299 | void PlayMonophonic(Effect* f, Effect* loop, float xfade = 0.003f) {
| ~~~~~~~~^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'Effect*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:580:73: note: in expansion of macro 'NULL'
580 | if (SFX_boom) PlayMonophonic(getNext(hum_player_, &SFX_boom), NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:273:56: note: initializing argument 2 of 'void HybridFont::PlayMonophonic(const Effect::FileID&, Effect*, float)'
273 | void PlayMonophonic(const Effect::FileID& f, Effect* loop, float xfade = 0.003f) {
| ~~~~~~~~^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'Effect*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:581:65: note: in expansion of macro 'NULL'
581 | else PlayMonophonic(getNext(hum_player_, &SFX_clash), NULL); // Thermal-D fallback
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:273:56: note: initializing argument 2 of 'void HybridFont::PlayMonophonic(const Effect::FileID&, Effect*, float)'
273 | void PlayMonophonic(const Effect::FileID& f, Effect* loop, float xfade = 0.003f) {
| ~~~~~~~~^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\looped_swing_wrapper.h: In member function 'void LoopedSwingWrapper::Deactivate()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'SaberBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\looped_swing_wrapper.h:21:17: note: in expansion of macro 'NULL'
21 | SetDelegate(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:355:
C:\Users\Matt\Desktop\ProffieOS\common\saber_base_passthrough.h:8:31: note: initializing argument 1 of 'void SaberBasePassThrough::SetDelegate(SaberBase*)'
8 | void SetDelegate(SaberBase* delegate) {
| ~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\smooth_swing_v2.h: In member function 'void SmoothSwingV2::Deactivate()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'SaberBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\smooth_swing_v2.h:49:17: note: in expansion of macro 'NULL'
49 | SetDelegate(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:355:
C:\Users\Matt\Desktop\ProffieOS\common\saber_base_passthrough.h:8:31: note: initializing argument 1 of 'void SaberBasePassThrough::SetDelegate(SaberBase*)'
8 | void SetDelegate(SaberBase* delegate) {
| ~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h: In member function 'bool AnalogReader::Start()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'stm32l4_adc_callback_t' {aka 'void (*)(void*, long unsigned int)'} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h:97:43: note: in expansion of macro 'NULL'
97 | stm32l4_adc_enable(&stm32l4_adc, 0, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:38,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_adc.h:91:96: note: initializing argument 3 of 'bool stm32l4_adc_enable(stm32l4_adc_t*, uint32_t, stm32l4_adc_callback_t, void*, uint32_t)'
91 | extern bool stm32l4_adc_enable(stm32l4_adc_t *adc, uint32_t option, stm32l4_adc_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h: In member function 'void AnalogReader::loop()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'stm32l4_adc_callback_t' {aka 'void (*)(void*, long unsigned int)'} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h:129:40: note: in expansion of macro 'NULL'
129 | stm32l4_adc_enable(&stm32l4_adc, 0,NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:38,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_adc.h:91:96: note: initializing argument 3 of 'bool stm32l4_adc_enable(stm32l4_adc_t*, uint32_t, stm32l4_adc_callback_t, void*, uint32_t)'
91 | extern bool stm32l4_adc_enable(stm32l4_adc_t *adc, uint32_t option, stm32l4_adc_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\blade_base.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeEffect*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\blade_base.h:92:43: note: in expansion of macro 'NULL'
92 | BladeEffect* last_detected_blade_effect = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\styles\rgb_arg.h: In member function 'void RgbArgBase::init(int)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\styles\rgb_arg.h:39:29: note: in expansion of macro 'NULL'
39 | int b = strtol(tmp+1, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\functions\int_arg.h: In member function 'void IntArgBase::init(int)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\functions\int_arg.h:24:28: note: in expansion of macro 'NULL'
24 | value_ = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\pwm_pin.h: In function 'void {anonymous}::SetupTimer(uint32_t)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'stm32l4_timer_callback_t' {aka 'void (*)(void*, long unsigned int)'} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\pwm_pin.h:30:77: note: in expansion of macro 'NULL'
30 | stm32l4_timer_enable(&stm32l4_pwm[instance], divider -1, modulus -1, 0, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t*, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)'
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t *timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:13:28: note: in expansion of macro 'NULL'
13 | BladeBase* current_blade = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\stm32l4_ws2811.h: In member function 'void WS2811EngineSTM32L4::show()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'stm32l4_timer_callback_t' {aka 'void (*)(void*, long unsigned int)'} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\stm32l4_ws2811.h:281:43: note: in expansion of macro 'NULL'
281 | 0 /* TIMER_OPTION_COUNT_PRELOAD */, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t*, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)'
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t *timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'stm32l4_timer_callback_t' {aka 'void (*)(void*, long unsigned int)'} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\stm32l4_ws2811.h:422:43: note: in expansion of macro 'NULL'
422 | 0 /* TIMER_OPTION_COUNT_PRELOAD */, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t*, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)'
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t *timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h: In member function 'void WS2811_Blade::Power(bool)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:104:23: note: in expansion of macro 'NULL'
104 | current_blade = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:115:23: note: in expansion of macro 'NULL'
115 | current_blade = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h: In member function 'virtual void WS2811_Blade::Loop()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:251:50: note: in expansion of macro 'NULL'
251 | if (current_blade == this) current_blade = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SubBladeWrapper*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:153:43: note: in expansion of macro 'NULL'
153 | SubBladeWrapper* first_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SubBladeWrapper*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:154:42: note: in expansion of macro 'NULL'
154 | SubBladeWrapper* last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function 'BladeBase* SubBlade(int, int, BladeBase*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SubBladeWrapper*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:158:54: note: in expansion of macro 'NULL'
158 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:160:41: note: in expansion of macro 'NULL'
160 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:165:12: note: in expansion of macro 'NULL'
165 | return NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function 'BladeBase* SubBladeReverse(int, int, BladeBase*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SubBladeWrapper*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:195:54: note: in expansion of macro 'NULL'
195 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:197:41: note: in expansion of macro 'NULL'
197 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:202:12: note: in expansion of macro 'NULL'
202 | return NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function 'BladeBase* SubBladeWithStride(int, int, int, BladeBase*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SubBladeWrapper*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:236:54: note: in expansion of macro 'NULL'
236 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:238:41: note: in expansion of macro 'NULL'
238 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:243:12: note: in expansion of macro 'NULL'
243 | return NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function 'BladeBase* SubBladeZZ(int, int, int, int, BladeBase*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SubBladeWrapper*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:283:54: note: in expansion of macro 'NULL'
283 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:285:41: note: in expansion of macro 'NULL'
285 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'BladeBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:290:12: note: in expansion of macro 'NULL'
290 | return NULL;
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\preset.h:4,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:591:
C:\Users\Matt\Desktop\ProffieOS\common\malloc_helper.h: In function 'const char* mkstr(const char*)':
C:\Users\Matt\Desktop\ProffieOS\common\malloc_helper.h:106:36: error: 'malloc' cannot be used as a function
106 | char* ret = (char*)malloc(len + 1);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:595:
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function 'LSPtr<char> StyleParser::ResetArguments(const char*)':
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:235:39: error: 'malloc' cannot be used as a function
235 | char* ret = (char*) malloc(len + 1);
| ^
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function 'LSPtr<char> StyleParser::CopyArguments(const char*, const char*)':
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:249:39: error: 'malloc' cannot be used as a function
249 | char* ret = (char*) malloc(len + 1);
| ^
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function 'LSPtr<char> StyleParser::CopyArguments(const char*, const char*, int)':
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:292:106: error: 'malloc' cannot be used as a function
292 | char* ret = (char*) malloc(from_helper.partlen(0) + to_helper.partlen(1) + from_helper.partlen(2) + 1);
| ^
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function 'LSPtr<char> StyleParser::CopyArguments(const char*, const char*, const int*, size_t)':
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:349:39: error: 'malloc' cannot be used as a function
349 | char* ret = (char*) malloc(len + 1);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\Matt\Desktop\ProffieOS\config\ezera_config.h: At global scope:
C:\Users\Matt\Desktop\ProffieOS\config\ezera_config.h:57:2: error: expected '}' before ';' token
57 | };
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\Matt\Desktop\ProffieOS\config\ezera_config.h:27:20: note: to match this '{'
27 | Preset presets[] = {
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h: In member function 'virtual bool PropBase::chdir(const char*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'SaberBase*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:326:23: note: in expansion of macro 'NULL'
326 | SaberBase* font = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h: In member function 'virtual bool PropBase::Parse(const char*, const char*)':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1532:33: note: in expansion of macro 'NULL'
1532 | int32_t pos = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1538:33: note: in expansion of macro 'NULL'
1538 | int32_t pos = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1608:36: note: in expansion of macro 'NULL'
1608 | int32_t volume = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1630:32: note: in expansion of macro 'NULL'
1630 | int preset = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1636:32: note: in expansion of macro 'NULL'
1636 | int preset = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'char**' [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1645:38: note: in expansion of macro 'NULL'
1645 | size_t variation = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of 'long int strtol(const char*, char**, int)'
171 | long strtol (const char *__restrict __n, char **__restrict __end_PTR, int __base);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h: In member function 'virtual void TouchButton::Loop()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'TouchButton*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h:301:24: note: in expansion of macro 'NULL'
301 | current_button = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void*' to 'TouchButton*' [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h:321:44: note: in expansion of macro 'NULL'
321 | TouchButton* TouchButton::current_button = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\ir\stm32_ir.h: In member function 'void IrTransmitterSTM32::StartBurst()':
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void*' to 'stm32l4_timer_callback_t' {aka 'void (*)(void*, long unsigned int)'} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\ir\stm32_ir.h:52:41: note: in expansion of macro 'NULL'
52 | 0 /* TIMER_OPTION_COUNT_PRELOAD */, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t*, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)'
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t *timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
exit status 1
Compilation error: 'NULL' was not declared in this scope
You should post the config file you used that caused this error so we can take a look.
It doesn’t look like a typical error.
This is still not the complete error. It’s missing the beginning, which is the most interesting part.
The parts that are here are weird and unusual though, not sure what would be causing that.
You’ve lost the end of the preset. It’s missing a name argument and a closing brace.
add this on line 56
"induction"}
Your config file is missing a }
on line 56.
Not sure if that’s what’s causing the other errors though.
i have done what both you and NoSloppy have requested and this is what i got.
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ext\string_conversions.h:99:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int ()(_CharT, std::size_t, const _CharT*, __va_list), std::size_t, const _CharT*, …)’
99 | __to_xstring(int (__convf) (_CharT, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ext\string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\string:55,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_classes.h:40,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ios_base.h:41,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:42,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6697:22: note: mismatched types ‘__va_list’ and ‘int’
6697 | L"%f", __val);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h: In function ‘std::wstring std::__cxx11::to_wstring(long double)’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6706:23: error: no matching function for call to ‘__to_xstringstd::wstring(int ()(wchar_t, size_t, const wchar_t*, int), const int&, const wchar_t [4], long double&)’
6706 | L"%Lf", __val);
| ^
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6493,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\string:55,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_classes.h:40,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ios_base.h:41,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:42,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ext\string_conversions.h:99:5: note: candidate: ‘template<class _String, class _CharT> _String __gnu_cxx::__to_xstring(int ()(_CharT, std::size_t, const _CharT*, __va_list), std::size_t, const _CharT*, …)’
99 | __to_xstring(int (__convf) (_CharT, std::size_t, const _CharT*,
| ^~~~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ext\string_conversions.h:99:5: note: template argument deduction/substitution failed:
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\string:55,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_classes.h:40,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ios_base.h:41,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:42,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_string.h:6706:23: note: mismatched types ‘__va_list’ and ‘int’
6706 | L"%Lf", __val);
| ^
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:43,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\streambuf: In instantiation of ‘class std::basic_streambuf<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\streambuf.tcc:160:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\streambuf:133:48: error: no type named ‘int_type’ in ‘std::basic_streambuf<wchar_t>::traits_type’ {aka ‘struct std::char_traits<wchar_t>’}
133 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:50,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_facets.h:39,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:37,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h: At global scope:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:30:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
30 | int iswalpha (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:31:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
31 | int iswalnum (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:33:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
33 | int iswblank (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:35:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
35 | int iswcntrl (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:36:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
36 | int iswctype (wint_t, wctype_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:36:31: error: expected primary-expression before ‘)’ token
36 | int iswctype (wint_t, wctype_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:36:31: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:37:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
37 | int iswdigit (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:38:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
38 | int iswgraph (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:39:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
39 | int iswlower (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:40:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
40 | int iswprint (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:41:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
41 | int iswpunct (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:42:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
42 | int iswspace (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:43:15: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
43 | int iswupper (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:44:16: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
44 | int iswxdigit (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:45:1: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
45 | wint_t towctrans (wint_t, wctrans_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:46:1: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
46 | wint_t towupper (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:47:1: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
47 | wint_t towlower (wint_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:52:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
52 | extern int iswalpha_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:52:40: error: expected primary-expression before ‘)’ token
52 | extern int iswalpha_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:52:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:53:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
53 | extern int iswalnum_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:53:40: error: expected primary-expression before ‘)’ token
53 | extern int iswalnum_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:53:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:54:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
54 | extern int iswblank_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:54:40: error: expected primary-expression before ‘)’ token
54 | extern int iswblank_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:54:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:55:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
55 | extern int iswcntrl_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:55:40: error: expected primary-expression before ‘)’ token
55 | extern int iswcntrl_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:55:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
56 | extern int iswctype_l (wint_t, wctype_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:40: error: expected primary-expression before ‘,’ token
56 | extern int iswctype_l (wint_t, wctype_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:50: error: expected primary-expression before ‘)’ token
56 | extern int iswctype_l (wint_t, wctype_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:56:50: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:57:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
57 | extern int iswdigit_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:57:40: error: expected primary-expression before ‘)’ token
57 | extern int iswdigit_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:57:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:58:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
58 | extern int iswgraph_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:58:40: error: expected primary-expression before ‘)’ token
58 | extern int iswgraph_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:58:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:59:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
59 | extern int iswlower_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:59:40: error: expected primary-expression before ‘)’ token
59 | extern int iswlower_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:59:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:60:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
60 | extern int iswprint_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:60:40: error: expected primary-expression before ‘)’ token
60 | extern int iswprint_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:60:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:61:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
61 | extern int iswpunct_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:61:40: error: expected primary-expression before ‘)’ token
61 | extern int iswpunct_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:61:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:62:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
62 | extern int iswspace_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:62:40: error: expected primary-expression before ‘)’ token
62 | extern int iswspace_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:62:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:63:24: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
63 | extern int iswupper_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:63:40: error: expected primary-expression before ‘)’ token
63 | extern int iswupper_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:63:40: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:64:25: error: ‘wint_t’ was not declared in this scope; did you mean ‘ino_t’?
64 | extern int iswxdigit_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:64:41: error: expected primary-expression before ‘)’ token
64 | extern int iswxdigit_l (wint_t, locale_t);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:64:41: error: expression list treated as compound expression in initializer [-fpermissive]
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:65:8: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
65 | extern wint_t towctrans_l (wint_t, wctrans_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:66:8: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
66 | extern wint_t towupper_l (wint_t, locale_t);
| ^~~~~~
| ino_t
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\wctype.h:67:8: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
67 | extern wint_t towlower_l (wint_t, locale_t);
| ^~~~~~
| ino_t
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_facets.h:39,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:37,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:84:11: error: ‘::wint_t’ has not been declared
84 | using ::wint_t;
| ^~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:101:11: error: ‘::towctrans’ has not been declared
101 | using ::towctrans;
| ^~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:102:11: error: ‘::towlower’ has not been declared
102 | using ::towlower;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cwctype:103:11: error: ‘::towupper’ has not been declared
103 | using ::towupper;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:37,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\locale_facets.h:1200:7: error: ‘wint_t’ does not name a type; did you mean ‘ino_t’?
1200 | wint_t _M_widen[1 + static_cast(-1)];
| ^~~~~~
| ino_t
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ios:44,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h: In instantiation of ‘class std::basic_ios<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.tcc:181:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\basic_ios.h:77:54: error: no type named ‘int_type’ in ‘struct std::char_traits<wchar_t>’
77 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:39,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ostream: In instantiation of ‘class std::basic_ostream<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\ostream.tcc:382:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\ostream:63:44: error: no type named ‘int_type’ in ‘struct std::char_traits<wchar_t>’
63 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:38,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream: In instantiation of ‘class std::basic_istream<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:663:27: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:63:44: error: no type named ‘int_type’ in ‘struct std::char_traits<wchar_t>’
63 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:673:5: error: template-id ‘ignore<>’ for ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore(…)’ does not match any template declaration
673 | basic_istream<wchar_t>::
| ^~~~~~~~~~~~~~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:674:44: note: saw 1 ‘template<>’, need 2 for specializing a member function template
674 | ignore(streamsize __n, int_type __delim);
| ^
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream: In instantiation of ‘class std::basic_istream<wchar_t>::sentry’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\istream.tcc:1074:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:697:43: error: no type named ‘int_type’ in ‘struct std::char_traits<wchar_t>’
697 | typedef typename _Traits::int_type __int_type;
| ^~~~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream: In instantiation of ‘class std::basic_iostream<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\istream.tcc:1093:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\istream:833:44: error: no type named ‘int_type’ in ‘struct std::char_traits<wchar_t>’
833 | typedef typename _Traits::int_type int_type;
| ^~~~~~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\complex:45,
from C:\Users\Matt\Desktop\ProffieOS\sound\filter.h:3,
from C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:4,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of ‘class std::__cxx11::basic_stringbuf<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:297:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:75:48: error: no type named ‘int_type’ in ‘std::__cxx11::basic_stringbuf<wchar_t>::traits_type’ {aka ‘struct std::char_traits<wchar_t>’}
75 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of ‘class std::__cxx11::basic_istringstream<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:298:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:401:48: error: no type named ‘int_type’ in ‘std::__cxx11::basic_istringstream<wchar_t>::traits_type’ {aka ‘struct std::char_traits<wchar_t>’}
401 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of ‘class std::__cxx11::basic_ostringstream<wchar_t>’:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:299:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:559:48: error: no type named ‘int_type’ in ‘std::__cxx11::basic_ostringstream<wchar_t>::traits_type’ {aka ‘struct std::char_traits<wchar_t>’}
559 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream: In instantiation of ‘class std::cxx11::basic_stringstream<wchar_t>':
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\bits\sstream.tcc:300:25: required from here
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\sstream:717:48: error: no type named ‘int_type’ in 'std::cxx11::basic_stringstream<wchar_t>::traits_type’ {aka ‘struct std::char_traits<wchar_t>’}
717 | typedef typename traits_type::int_type int_type;
| ^~~~~~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘const uint8_t*’ {aka ‘const unsigned char*’} [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\talkie.h:1038:29: note: in expansion of macro ‘NULL’
1038 | const uint8_t * ptrAddr = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\sound\talkie.h: In member function ‘void Talkie::ReadFrame()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘const uint8_t*’ {aka ‘const unsigned char*’} [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\talkie.h:825:19: note: in expansion of macro ‘NULL’
825 | ptrAddr = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\sound\buffered_audio_stream.h: In member function ‘void BufferedAudioStream::clear()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: cannot convert ‘void*’ to ‘ProffieOSAudioStream*’
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\buffered_audio_stream.h:56:17: note: in expansion of macro ‘NULL’
56 | stream.set(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\dynamic_mixer.h:5,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:11,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\common\atomic.h:57:14: note: initializing argument 1 of ‘void POAtomic::set(T) [with T = ProffieOSAudioStream*]’
57 | void set(T value) {
| ^~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\effect.h:6,
from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\common\file_reader.h: In member function ‘char* FileReader::readString()’:
C:\Users\Matt\Desktop\ProffieOS\common\file_reader.h:372:36: error: ‘malloc’ cannot be used as a function
372 | char* ret = (char*)malloc(space);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\effect.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘Effect*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\effect.h:9:23: note: in expansion of macro ‘NULL’
9 | Effect* all_effects = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\sound\sound.h: In function ‘void SetupStandardAudio()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘ProffieOSAudioStream*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:124:17: note: in expansion of macro ‘NULL’
124 | dac.SetStream(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:12,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\dac.h:575:46: note: initializing argument 1 of ‘void LS_DAC::SetStream(ProffieOSAudioStream*)’
575 | void SetStream(class ProffieOSAudioStream* stream) {
| ~~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\common\config_file.h: In member function ‘void ConfigFile::WriteToRootDir(const char*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘const char*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\common\config_file.h:158:58: note: in expansion of macro ‘NULL’
158 | void WriteToRootDir(const char* basename) { WriteToDir(NULL, basename); }
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:130,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\common\config_file.h:149:31: note: initializing argument 1 of ‘void ConfigFile::WriteToDir(const char*, const char*)’
149 | void WriteToDir(const char* dir, const char* basename) {
| ~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h: In member function ‘void HybridFont::RestartHum()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘Effect*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:306:32: note: in expansion of macro ‘NULL’
306 | PlayMonophonic(getHum(), NULL, 0.2f);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:299:42: note: initializing argument 2 of ‘void HybridFont::PlayMonophonic(Effect*, Effect*, float)’
299 | void PlayMonophonic(Effect* f, Effect* loop, float xfade = 0.003f) {
| ^~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h: In member function ‘virtual void HybridFont::SB_Off(SaberBase::OffType)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘Effect*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:555:31: note: in expansion of macro ‘NULL’
555 | PlayMonophonic(effect, NULL);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:299:42: note: initializing argument 2 of ‘void HybridFont::PlayMonophonic(Effect*, Effect*, float)’
299 | void PlayMonophonic(Effect* f, Effect* loop, float xfade = 0.003f) {
| ^~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘Effect*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:580:73: note: in expansion of macro ‘NULL’
580 | if (SFX_boom) PlayMonophonic(getNext(hum_player, &SFX_boom), NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:273:56: note: initializing argument 2 of ‘void HybridFont::PlayMonophonic(const Effect::FileID&, Effect*, float)’
273 | void PlayMonophonic(const Effect::FileID& f, Effect* loop, float xfade = 0.003f) {
| ~~^~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘Effect*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:581:65: note: in expansion of macro ‘NULL’
581 | else PlayMonophonic(getNext(hum_player, &SFX_clash), NULL); // Thermal-D fallback
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\sound\sound.h:131,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:436:
C:\Users\Matt\Desktop\ProffieOS\sound\hybrid_font.h:273:56: note: initializing argument 2 of ‘void HybridFont::PlayMonophonic(const Effect::FileID&, Effect*, float)’
273 | void PlayMonophonic(const Effect::FileID& f, Effect* loop, float xfade = 0.003f) {
| ~~^~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\looped_swing_wrapper.h: In member function ‘void LoopedSwingWrapper::Deactivate()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘SaberBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\looped_swing_wrapper.h:21:17: note: in expansion of macro ‘NULL’
21 | SetDelegate(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:355:
C:\Users\Matt\Desktop\ProffieOS\common\saber_base_passthrough.h:8:31: note: initializing argument 1 of ‘void SaberBasePassThrough::SetDelegate(SaberBase*)’
8 | void SetDelegate(SaberBase* delegate) {
| ~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\sound\smooth_swing_v2.h: In member function ‘void SmoothSwingV2::Deactivate()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘SaberBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\sound\smooth_swing_v2.h:49:17: note: in expansion of macro ‘NULL’
49 | SetDelegate(NULL);
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:355:
C:\Users\Matt\Desktop\ProffieOS\common\saber_base_passthrough.h:8:31: note: initializing argument 1 of ‘void SaberBasePassThrough::SetDelegate(SaberBase*)’
8 | void SetDelegate(SaberBase* delegate) {
| ~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h: In member function ‘bool AnalogReader::Start()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘stm32l4_adc_callback_t’ {aka ‘void ()(void, long unsigned int)’} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h:97:43: note: in expansion of macro ‘NULL’
97 | stm32l4_adc_enable(&stm32l4_adc, 0, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:38,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_adc.h:91:96: note: initializing argument 3 of ‘bool stm32l4_adc_enable(stm32l4_adc_t*, uint32_t, stm32l4_adc_callback_t, void*, uint32_t)’
91 | extern bool stm32l4_adc_enable(stm32l4_adc_t adc, uint32_t option, stm32l4_adc_callback_t callback, void context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h: In member function ‘void AnalogReader::loop()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to ‘stm32l4_adc_callback_t’ {aka 'void ()(void*, long unsigned int)‘} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\common\analog_read.h:129:40: note: in expansion of macro ‘NULL’
129 | stm32l4_adc_enable(&stm32l4_adc, 0,NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:38,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_adc.h:91:96: note: initializing argument 3 of ‘bool stm32l4_adc_enable(stm32l4_adc_t*, uint32_t, stm32l4_adc_callback_t, void*, uint32_t)’
91 | extern bool stm32l4_adc_enable(stm32l4_adc_t adc, uint32_t option, stm32l4_adc_callback_t callback, void context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\blade_base.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void’ to 'BladeEffect’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\blade_base.h:92:43: note: in expansion of macro ‘NULL’
92 | BladeEffect* last_detected_blade_effect = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\styles\rgb_arg.h: In member function ‘void RgbArgBase::init(int)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘char**’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\styles\rgb_arg.h:39:29: note: in expansion of macro ‘NULL’
39 | int b = strtol(tmp+1, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\functions\int_arg.h: In member function ‘void IntArgBase::init(int)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to 'char’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\functions\int_arg.h:24:28: note: in expansion of macro ‘NULL’
24 | value = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char *__restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\pwm_pin.h: In function ‘void {anonymous}::SetupTimer(uint32_t)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to ‘stm32l4_timer_callback_t’ {aka 'void ()(void*, long unsigned int)’} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\pwm_pin.h:30:77: note: in expansion of macro ‘NULL’
30 | stm32l4_timer_enable(&stm32l4_pwm[instance], divider -1, modulus -1, 0, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of ‘bool stm32l4_timer_enable(stm32l4_timer_t*, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)’
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void’ to 'BladeBase’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:13:28: note: in expansion of macro ‘NULL’
13 | BladeBase* current_blade = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\stm32l4_ws2811.h: In member function ‘void WS2811EngineSTM32L4::show()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘stm32l4_timer_callback_t’ {aka ‘void ()(void, long unsigned int)’} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\stm32l4_ws2811.h:281:43: note: in expansion of macro ‘NULL’
281 | 0 /* TIMER_OPTION_COUNT_PRELOAD /, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)’
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to ‘stm32l4_timer_callback_t’ {aka 'void ()(void*, long unsigned int)‘} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\stm32l4_ws2811.h:422:43: note: in expansion of macro ‘NULL’
422 | 0 /* TIMER_OPTION_COUNT_PRELOAD /, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)’
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h: In member function ‘void WS2811_Blade::Power(bool)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void’ to 'BladeBase’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:104:23: note: in expansion of macro ‘NULL’
104 | current_blade = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:115:23: note: in expansion of macro ‘NULL’
115 | current_blade = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h: In member function ‘virtual void WS2811_Blade::Loop()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\ws2811_blade.h:251:50: note: in expansion of macro ‘NULL’
251 | if (current_blade == this) current_blade = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SubBladeWrapper*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:153:43: note: in expansion of macro ‘NULL’
153 | SubBladeWrapper* first_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SubBladeWrapper*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:154:42: note: in expansion of macro ‘NULL’
154 | SubBladeWrapper* last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function ‘BladeBase* SubBlade(int, int, BladeBase*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SubBladeWrapper*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:158:54: note: in expansion of macro ‘NULL’
158 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:160:41: note: in expansion of macro ‘NULL’
160 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:165:12: note: in expansion of macro ‘NULL’
165 | return NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function ‘BladeBase* SubBladeReverse(int, int, BladeBase*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SubBladeWrapper*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:195:54: note: in expansion of macro ‘NULL’
195 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:197:41: note: in expansion of macro ‘NULL’
197 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:202:12: note: in expansion of macro ‘NULL’
202 | return NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function ‘BladeBase* SubBladeWithStride(int, int, int, BladeBase*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SubBladeWrapper*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:236:54: note: in expansion of macro ‘NULL’
236 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:238:41: note: in expansion of macro ‘NULL’
238 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:243:12: note: in expansion of macro ‘NULL’
243 | return NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h: In function ‘BladeBase* SubBladeZZ(int, int, int, int, BladeBase*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SubBladeWrapper*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:283:54: note: in expansion of macro ‘NULL’
283 | first_subblade_wrapper = last_subblade_wrapper = NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:285:41: note: in expansion of macro ‘NULL’
285 | if (!first_subblade_wrapper) return NULL;
| ^~~~
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘BladeBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\blades\sub_blade.h:290:12: note: in expansion of macro ‘NULL’
290 | return NULL;
| ^~~~
In file included from C:\Users\Matt\Desktop\ProffieOS\common\preset.h:4,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:591:
C:\Users\Matt\Desktop\ProffieOS\common\malloc_helper.h: In function ‘const char* mkstr(const char*)’:
C:\Users\Matt\Desktop\ProffieOS\common\malloc_helper.h:106:36: error: ‘malloc’ cannot be used as a function
106 | char* ret = (char*)malloc(len + 1);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:595:
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function ‘LSPtr StyleParser::ResetArguments(const char*)’:
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:235:39: error: ‘malloc’ cannot be used as a function
235 | char* ret = (char*) malloc(len + 1);
| ^
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function ‘LSPtr StyleParser::CopyArguments(const char*, const char*)’:
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:249:39: error: ‘malloc’ cannot be used as a function
249 | char* ret = (char*) malloc(len + 1);
| ^
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function ‘LSPtr StyleParser::CopyArguments(const char*, const char*, int)’:
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:292:106: error: ‘malloc’ cannot be used as a function
292 | char* ret = (char*) malloc(from_helper.partlen(0) + to_helper.partlen(1) + from_helper.partlen(2) + 1);
| ^
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h: In member function ‘LSPtr StyleParser::CopyArguments(const char*, const char*, const int*, size_t)’:
C:\Users\Matt\Desktop\ProffieOS\styles\style_parser.h:349:39: error: ‘malloc’ cannot be used as a function
349 | char* ret = (char*) malloc(len + 1);
| ^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h: In member function ‘virtual bool PropBase::chdir(const char*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘SaberBase*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:326:23: note: in expansion of macro ‘NULL’
326 | SaberBase* font = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h: In member function ‘virtual bool PropBase::Parse(const char*, const char*)’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘char**’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1532:33: note: in expansion of macro ‘NULL’
1532 | int32_t pos = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to 'char’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1538:33: note: in expansion of macro ‘NULL’
1538 | int32_t pos = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to 'char’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1608:36: note: in expansion of macro ‘NULL’
1608 | int32_t volume = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to 'char’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1630:32: note: in expansion of macro ‘NULL’
1630 | int preset = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to 'char’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1636:32: note: in expansion of macro ‘NULL’
1636 | int preset = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from 'void’ to 'char’ [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\props\prop_base.h:1645:38: note: in expansion of macro ‘NULL’
1645 | size_t variation = strtol(arg, NULL, 0);
| ^~~~
In file included from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\cstdlib:75,
from c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\c++\9.3.1\stdlib.h:36,
from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/Arduino.h:25,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:159:
c:\users\matt\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\stdlib.h:171:60: note: initializing argument 2 of ‘long int strtol(const char*, char**, int)’
171 | long strtol (const char __restrict __n, char __restrict __end_PTR, int __base);
| ~~~~~~~~~~^
In file included from C:\Users\Matt\Desktop\ProffieOS\common\lsfs.h:278,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:406:
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h: In member function ‘virtual void TouchButton::Loop()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from 'void’ to 'TouchButton’ [-fpermissive]
72 | #define NULL ((void)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h:301:24: note: in expansion of macro ‘NULL’
301 | current_button = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h: At global scope:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:25: error: invalid conversion from ‘void*’ to ‘TouchButton*’ [-fpermissive]
72 | #define NULL ((void*)0)
| ^
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\buttons\stm32l4_touchbutton.h:321:44: note: in expansion of macro ‘NULL’
321 | TouchButton* TouchButton::current_button = NULL;
| ^~~~
C:\Users\Matt\Desktop\ProffieOS\ir\stm32_ir.h: In member function ‘void IrTransmitterSTM32::StartBurst()’:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/dosfs_core.h:72:17: error: invalid conversion from ‘void*’ to ‘stm32l4_timer_callback_t’ {aka ‘void ()(void, long unsigned int)’} [-fpermissive]
72 | #define NULL ((void*)0)
| ~^~~~~~~~~
| |
| void*
C:\Users\Matt\Desktop\ProffieOS\ir\stm32_ir.h:52:41: note: in expansion of macro ‘NULL’
52 | 0 /* TIMER_OPTION_COUNT_PRELOAD /, NULL, NULL, 0);
| ^~~~
In file included from C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6\cores\stm32l4/stm32l4_wiring_private.h:41,
from C:\Users\Matt\Desktop\ProffieOS\ProffieOS.ino:196:
C:\Users\Matt\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6/system/STM32L4xx/Include/stm32l4_timer.h:150:141: note: initializing argument 5 of 'bool stm32l4_timer_enable(stm32l4_timer_t, uint32_t, uint32_t, uint32_t, stm32l4_timer_callback_t, void*, uint32_t)’
150 | extern bool stm32l4_timer_enable(stm32l4_timer_t *timer, uint32_t prescaler, uint32_t period, uint32_t option, stm32l4_timer_callback_t callback, void *context, uint32_t events);
| ~~~~~~~~~~~~~~~~~~~~^
exit status 1
Compilation error: ‘NULL’ was not declared in this scope
Are you sure you edited the config correctly and saved it before trying to verify?
How about you post the fixed config as it is now?
With the number of issues that seem to be library related… would it be a bad idea to try uninstalling and reinstalling the arduino-proffieboard plugin, just to rule that out?
No, this would be a good idea.
I don’t actually know what the problem is, but with the extra }
, the config file compiles for me, so whatever the problem is it must either be in ProffieOS or the arduino-proffieboard files.
When going through the process of configuration I would use this video as a process to check if I was correct
hallo, i did try uninstalling and reinstalling Arduino and not much had changed ima post the codes for arduino saber configuration just to see if there is anything wrong with it there
/*
ProffieOS: Control software for lightsabers and other props.
http:/ /fredrik.hubbe.net/lightsaber/teensy_saber.html
Copyright (c) 2016-2019 Fredrik Hubinette
Additional copyright holders listed inline below.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*-----------------------------------------------------------------*\
| You can have multiple configuration files, and specify which one |
| to use here by removing the two slashes at the beginning. |
| **NOTE** Only ONE line should be left uncommented at a time! |
| Add the slashes to any that you are not using. |
\*-----------------------------------------------------------------*/
#define CONFIG_FILE "config/ezera_config.h"
// #define CONFIG_FILE "config/default_proffieboard_config.h"
// #define CONFIG_FILE "config/default_v3_config.h"
// #define CONFIG_FILE "config/crossguard_config.h"
// #define CONFIG_FILE "config/graflex_v1_config.h"
// #define CONFIG_FILE "config/prop_shield_fastled_v1_config.h"
// #define CONFIG_FILE "config/owk_v2_config.h"
// #define CONFIG_FILE "config/test_bench_config.h"
// #define CONFIG_FILE "config/toy_saber_config.h"
// #define CONFIG_FILE "config/proffieboard_v1_test_bench_config.h"
// #define CONFIG_FILE "config/proffieboard_v2_testing_config.h"
// #define CONFIG_FILE "config/td_proffieboard_config.h"
// #define CONFIG_FILE "config/proffieboard_v1_graflex.h"
// #define CONFIG_FILE "config/teensy_audio_shield_micom.h"
// #define CONFIG_FILE "config/proffieboard_v2_ob4.h"
// #define CONFIG_FILE "config/testconfig.h"
// #define CONFIG_FILE "config/test_bench_config.h"
#ifdef CONFIG_FILE_TEST
#undef CONFIG_FILE
#define CONFIG_FILE CONFIG_FILE_TEST
#endif
#ifndef CONFIG_FILE
#error Please set CONFIG_FILE as shown above.
#endif
#define CONFIG_TOP
#include CONFIG_FILE
#undef CONFIG_TOP
#ifndef BOOT_VOLUME
#define BOOT_VOLUME VOLUME
#endif
#ifdef SAVE_STATE
#define SAVE_VOLUME
#define SAVE_PRESET
#define SAVE_COLOR_CHANGE
#define SAVE_BLADE_DIMMING
#endif
#ifdef ENABLE_ALL_EDIT_OPTIONS
#define DYNAMIC_BLADE_LENGTH
#define DYNAMIC_BLADE_DIMMING
#define DYNAMIC_CLASH_THRESHOLD
#define SAVE_VOLUME
#define SAVE_BLADE_DIMMING
#define SAVE_CLASH_THRESHOLD
#define SAVE_COLOR_CHANGE
#endif
// #define ENABLE_DEBUG
#ifdef KEEP_SAVEFILES_WHEN_PROGRAMMING
#warning Your config file has KEEP_SAVEFILES_WHEN_PROGRAMMING in it. If you experience problems, please remove it and try again before asking for help. For more information, see: https://pod.hubbe.net/config/keeping-edits-when-uploading.html
#endif
//
// OVERVIEW
//
// Here explain some general code concepts to make it easier
// to understand the code below.
//
// Most things start with the ProbBase class. Depending on the
// configuration, this class is extended by the Saber class,
// the Detonator class, or some other class. The extended class
// is instantiated as "prop", and is responsible for handling
// button clicks, clashes, swings and other events. These events
// are then send to all registered SaberBase classes.
///
// Generally speaking, there are usually two registered SaberBase
// classes listening for events. One for sound and one for
// the blade. Sound and blade effects are generally executed
// separately by separate clases.
//
// Blades are generally handled by one of the child-classes of
// BladeBase. These classes know how many LEDs the current
// blade has, and how to set those LEDs to a given color, but
// they don't actually decide what the blade should look like.
// Instead they just call the current BladeStyle class and
// asks it to set the colors. The BladeStyle classes don't
// need to know what kind of blade is attached, although
// some combinations of BladeBases and BladeStyles just don't
// make any sense.
//
// Sounds are also abstracted. It starts with scanning a directory
// on the SD card for files that match known patterns of file names.
// The Effect class is responsible for keeping track of all numbered
// files that for a particular filename prefix.
//
// Once the directory has been scanned, we'll decide how to play
// sounds. In the past, there was one class for handling NEC style
// fonts and another for handling Plecter style fonts. However,
// both of those have now been merged into the HybridFont class
// which can do both. It is also capable of doing some mix and matching,
// so you can use a plecter style hum together with a NEC style
// swing if you so desire. The HybridFont class inherit from
// SaberBase and listen on on/off/clash/etc. events, just like
// BladeBase classes do.
//
// HybridFont tells the audio subsystem
// to trigger and mix sounds as aproperiate. The sound subsystem
// starts with an DMA channel which feeds data to a digital-to-analog
// converter. Once the data buffer is half-gone, and interrupt is
// triggered in the DAC class, which tries to fill it up by
// reading data from a int16_t AudioStream. Generally, that data
// stream is hooked up to the AudioDynamicMixer class. This
// class is responsible for taking multiple audio inputs,
// summing them up and then adjusting the volume to minimize
// clipping.
// TODO LIST:
// stab detect/effect
//
// Audio work items:
// select clash from force
// stab effect
// Blade stuff
// better clash
// Allow several blades to share power pins.
// If defined, DAC vref will be 3 volts, resulting in louder sound. (teensy only)
#define LOUD
// You can get better SD card performance by
// activating the USE_TEENSY3_OPTIMIZED_CODE define
// in SD.h in the teensy library, however, my sd card
// did not work with that define.
#include <Arduino.h>
#ifdef TEENSYDUINO
#include <DMAChannel.h>
#include <usb_dev.h>
#ifndef USE_TEENSY4
#include <kinetis.h>
#include <i2c_t3.h>
#else
// This is a hack to let me access the internal stuff..
#define private public
#include <Wire.h>
#undef private
#endif
#include <SD.h>
#include <SPI.h>
#ifdef abs
#undef abs
namespace {
template<typename T> constexpr auto abs(T x) -> decltype(-x) { return x < 0 ? -x : x; }
}
#endif
#else // TEENSYDUINO
#define digitalWriteFast digitalWrite
#endif // TEENSYDUINO
#ifdef ARDUINO_ARCH_STM32L4
// This is a hack to let me access the internal stuff..
#define private public
#include <Wire.h>
#undef private
#include <FS.h>
#include <stm32l4_wiring_private.h>
#include <stm32l4xx.h>
#include <armv7m.h>
#include <stm32l4_gpio.h>
#include <stm32l4_sai.h>
#include <stm32l4_dma.h>
#include <stm32l4_system.h>
#include <arm_math.h>
#include <STM32.h>
#define DMAChannel stm32l4_dma_t
#define DMAMEM
#define NVIC_SET_PRIORITY(X,Y) NVIC_SetPriority((X), (IRQn_Type)(Y))
#else // ARDUINO_ARCH_STM32L4
#define INPUT_ANALOG INPUT
#endif // ARDUINO_ARCH_STM32L4
#include <math.h>
#include <malloc.h>
#ifdef ENABLE_SERIALFLASH
// This is a hack to let me access the internal stuff..
#define private public
#define protected public
#include <SerialFlash.h>
#undef private
#undef protected
#endif
#ifdef ENABLE_SNOOZE
#define startup_early_hook DISABLE_startup_early_hook
#include <Snooze.h>
#undef startup_early_hook
SnoozeTimer snooze_timer;
SnoozeDigital snooze_digital;
SnoozeTouch snooze_touch;
SnoozeBlock snooze_config(snooze_touch, snooze_digital, snooze_timer);
#endif
const char version[] = "v7.14";
#include "common/common.h"
#include "common/state_machine.h"
#include "common/monitoring.h"
#include "common/stdout.h"
#include "common/errors.h"
Monitoring monitor;
DEFINE_COMMON_STDOUT_GLOBALS;
void PrintQuotedValue(const char *name, const char* str) {
STDOUT.print(name);
STDOUT.write('=');
if (str) {
while (*str) {
switch (*str) {
case '\n':
STDOUT.print("\\n");
break;
case '\t':
STDOUT.print("\\t");
break;
case '\\':
STDOUT.write('\\');
default:
STDOUT.write(*str);
}
++str;
}
}
STDOUT.write('\n');
}
#ifdef ENABLE_DEBUG
// This class is really useful for finding crashes
// basically, the pin you give it will be held high
// while this function is running. After that it will
// be set to low. If a crash occurs in this function
// it will stay high.
class ScopedPinTracer {
public:
explicit ScopedPinTracer(int pin) : pin_(pin) {
pinMode(pin_, OUTPUT);
digitalWriteFast(pin, HIGH);
}
~ScopedPinTracer() {
digitalWriteFast(pin_, LOW);
}
private:
int pin_;
};
class ScopedTracer3 {
public:
explicit ScopedTracer3(int code) {
pinMode(bladePowerPin1, OUTPUT);
pinMode(bladePowerPin2, OUTPUT);
pinMode(bladePowerPin3, OUTPUT);
digitalWriteFast(bladePowerPin1, !!(code & 1));
digitalWriteFast(bladePowerPin2, !!(code & 2));
digitalWriteFast(bladePowerPin3, !!(code & 4));
}
~ScopedTracer3() {
digitalWriteFast(bladePowerPin1, LOW);
digitalWriteFast(bladePowerPin2, LOW);
digitalWriteFast(bladePowerPin3, LOW);
}
};
#endif
#include "common/scoped_cycle_counter.h"
#include "common/profiling.h"
uint64_t audio_dma_interrupt_cycles = 0;
uint64_t pixel_dma_interrupt_cycles = 0;
uint64_t motion_interrupt_cycles = 0;
uint64_t wav_interrupt_cycles = 0;
uint64_t loop_cycles = 0;
#include "common/loop_counter.h"
#if defined(ENABLE_SSD1306) || defined(INCLUDE_SSD1306)
#define ENABLE_DISPLAY_CODE
#endif
#ifdef DOSFS_CONFIG_STARTUP_DELAY
#define PROFFIEOS_SD_STARTUP_DELAY DOSFS_CONFIG_STARTUP_DELAY
#else
#define PROFFIEOS_SD_STARTUP_DELAY 1000
#endif
#ifndef CONFIG_STARTUP_DELAY
#define CONFIG_STARTUP_DELAY 0
#endif
#if PROFFIEOS_SD_STARTUP_DELAY > CONFIG_STARTUP_DELAY
#define PROFFIEOS_STARTUP_DELAY PROFFIEOS_SD_STARTUP_DELAY
#else
#define PROFFIEOS_STARTUP_DELAY CONFIG_STARTUP_DELAY
#endif
#include "common/linked_list.h"
#include "common/looper.h"
#include "common/command_parser.h"
#include "common/monitor_helper.h"
CommandParser* parsers = NULL;
MonitorHelper monitor_helper;
#include "common/vec3.h"
#include "common/quat.h"
#include "common/ref.h"
#include "common/events.h"
#include "common/saber_base.h"
#include "common/saber_base_passthrough.h"
SaberBase* saberbases = NULL;
SaberBase::LockupType SaberBase::lockup_ = SaberBase::LOCKUP_NONE;
SaberBase::ColorChangeMode SaberBase::color_change_mode_ =
SaberBase::COLOR_CHANGE_MODE_NONE;
bool SaberBase::on_ = false;
uint32_t SaberBase::last_motion_request_ = 0;
uint32_t SaberBase::current_variation_ = 0;
float SaberBase::sound_length = 0.0;
int SaberBase::sound_number = -1;
float SaberBase::clash_strength_ = 0.0;
#ifdef DYNAMIC_BLADE_DIMMING
int SaberBase::dimming_ = 16384;
#endif
#include "common/box_filter.h"
// Returns the decimals of a number, ie 12.2134 -> 0.2134
float fract(float x) { return x - floorf(x); }
// clamp(x, a, b) makes sure that x is between a and b.
float clamp(float x, float a, float b) {
if (x < a) return a;
if (x > b) return b;
return x;
}
float Fmod(float a, float b) {
return a - floorf(a / b) * b;
}
int32_t clampi32(int32_t x, int32_t a, int32_t b) {
if (x < a) return a;
if (x > b) return b;
return x;
}
int16_t clamptoi16(int32_t x) {
return clampi32(x, -32768, 32767);
}
int32_t clamptoi24(int32_t x) {
return clampi32(x, -8388608, 8388607);
}
#include "common/sin_table.h"
void EnableBooster();
void EnableAmplifier();
bool AmplifierIsActive();
void MountSDCard();
const char* GetSaveDir();
#include "common/lsfs.h"
#include "common/strfun.h"
// Double-zero terminated array of search paths.
// No trailing slashes!
char current_directory[128];
const char* next_current_directory(const char* dir) {
dir += strlen(dir);
dir ++;
if (!*dir) return NULL;
return dir;
}
const char* last_current_directory() {
const char* ret = current_directory;
while (true) {
const char* tmp = next_current_directory(ret);
if (!tmp) return ret;
ret = tmp;
}
}
const char* previous_current_directory(const char* dir) {
if (dir == current_directory) return nullptr;
dir -= 2;
while (true) {
if (dir == current_directory) return current_directory;
if (!*dir) return dir + 1;
dir--;
}
}
#include "sound/sound.h"
#include "common/battery_monitor.h"
#include "common/color.h"
#include "common/range.h"
#include "common/fuse.h"
#include "common/config_file.h"
#include "blades/blade_base.h"
#include "blades/blade_wrapper.h"
class MicroEventTime {
void SetToNow() { micros_ = micros(); millis_ = millis(); }
uint32_t millis_since() { return millis() - millis_; }
uint32_t micros_since() {
if (millis_since() > (0xFFFF0000UL / 1000)) return 0xFFFFFFFFUL;
return micros() - micros_;
}
private:
uint32_t millis_;
uint32_t micros_;
};
template<class T, class U>
struct is_same_type { static const bool value = false; };
template<class T>
struct is_same_type<T, T> { static const bool value = true; };
// This really ought to be a typedef, but it causes problems I don't understand.
#define StyleAllocator class StyleFactory*
#include "styles/rgb.h"
#include "styles/rgb_arg.h"
#include "styles/charging.h"
#include "styles/fire.h"
#include "styles/sparkle.h"
#include "styles/gradient.h"
#include "styles/random_flicker.h"
#include "styles/random_per_led_flicker.h"
#include "styles/audio_flicker.h"
#include "styles/brown_noise_flicker.h"
#include "styles/hump_flicker.h"
#include "styles/rainbow.h"
#include "styles/color_cycle.h"
#include "styles/cylon.h"
#include "styles/ignition_delay.h"
#include "styles/retraction_delay.h"
#include "styles/pulsing.h"
#include "styles/blinking.h"
#include "styles/on_spark.h"
#include "styles/rgb_cycle.h"
#include "styles/clash.h"
#include "styles/lockup.h" // Also does "drag"
#include "styles/blast.h"
#include "styles/strobe.h"
#include "styles/inout_helper.h"
#include "styles/inout_sparktip.h"
#include "styles/colors.h"
#include "styles/mix.h"
#include "styles/style_ptr.h"
#include "styles/file.h"
#include "styles/stripes.h"
#include "styles/random_blink.h"
#include "styles/sequence.h"
#include "styles/byteorder.h"
#include "styles/rotate_color.h"
#include "styles/colorchange.h"
#include "styles/transition_pulse.h"
#include "styles/transition_effect.h"
#include "styles/transition_loop.h"
#include "styles/effect_sequence.h"
#include "styles/color_select.h"
#include "styles/remap.h"
#include "styles/edit_mode.h"
// functions
#include "functions/ifon.h"
#include "functions/change_slowly.h"
#include "functions/int.h"
#include "functions/int_arg.h"
#include "functions/int_select.h"
#include "functions/sin.h"
#include "functions/scale.h"
#include "functions/battery_level.h"
#include "functions/trigger.h"
#include "functions/bump.h"
#include "functions/smoothstep.h"
#include "functions/swing_speed.h"
#include "functions/sound_level.h"
#include "functions/blade_angle.h"
#include "functions/variation.h"
#include "functions/twist_angle.h"
#include "functions/layer_functions.h"
#include "functions/islessthan.h"
#include "functions/circular_section.h"
#include "functions/marble.h"
#include "functions/slice.h"
#include "functions/mult.h"
#include "functions/wavlen.h"
#include "functions/wavnum.h"
#include "functions/effect_position.h"
#include "functions/time_since_effect.h"
#include "functions/sum.h"
#include "functions/ramp.h"
#include "functions/center_dist.h"
#include "functions/linear_section.h"
#include "functions/hold_peak.h"
#include "functions/clash_impact.h"
#include "functions/effect_increment.h"
#include "functions/increment.h"
#include "functions/subtract.h"
#include "functions/divide.h"
#include "functions/isbetween.h"
#include "functions/clamp.h"
#include "functions/alt.h"
#include "functions/volume_level.h"
#include "functions/mod.h"
// transitions
#include "transitions/fade.h"
#include "transitions/join.h"
#include "transitions/concat.h"
#include "transitions/instant.h"
#include "transitions/delay.h"
#include "transitions/wipe.h"
#include "transitions/join.h"
#include "transitions/boing.h"
#include "transitions/random.h"
#include "transitions/colorcycle.h"
#include "transitions/wave.h"
#include "transitions/select.h"
#include "transitions/extend.h"
#include "transitions/center_wipe.h"
#include "transitions/sequence.h"
#include "transitions/blink.h"
#include "transitions/doeffect.h"
#include "transitions/loop.h"
#include "styles/legacy_styles.h"
//responsive styles
#include "styles/responsive_styles.h"
#include "styles/pov.h"
class NoLED;
#include "blades/power_pin.h"
#include "blades/drive_logic.h"
#include "blades/pwm_pin.h"
#include "blades/ws2811_blade.h"
#include "blades/fastled_blade.h"
#include "blades/simple_blade.h"
#include "blades/saviblade.h"
#include "blades/sub_blade.h"
#include "blades/dim_blade.h"
#include "blades/leds.h"
#include "blades/blade_id.h"
#include "common/preset.h"
#include "common/blade_config.h"
#include "common/current_preset.h"
#include "common/status_led.h"
#include "styles/style_parser.h"
#include "styles/length_finder.h"
#include "styles/show_color.h"
#include "styles/blade_shortener.h"
BladeConfig* current_config = nullptr;
class BladeBase* GetPrimaryBlade() {
#if NUM_BLADES == 0
return nullptr;
#else
return current_config->blade1;
#endif
}
const char* GetSaveDir() {
if (!current_config) return "";
if (!current_config->save_dir) return "";
return current_config->save_dir;
}
ArgParserInterface* CurrentArgParser;
#define CONFIG_STYLES
#include CONFIG_FILE
#undef CONFIG_STYLES
#define CONFIG_PRESETS
#include CONFIG_FILE
#undef CONFIG_PRESETS
#define CONFIG_PROP
#include CONFIG_FILE
#undef CONFIG_PROP
#ifndef PROP_TYPE
#include "props/saber.h"
#endif
PROP_TYPE prop;
#ifdef BLADE_ID_SCAN_MILLIS
bool ScanBladeIdNow() { return prop.ScanBladeIdNow(); }
#endif
#if 0
#include "scripts/test_motion_timeout.h"
#warning MOTION TEST SCRIPT ACTIVE
MotionTimeoutScript script;
#endif
#if 0
#include "scripts/v3_test_script.h"
#warning !!! V3 TEST SCRIPT ACTIVE !!!
V3TestScript script;
#endif
#include "buttons/floating_button.h"
#include "buttons/latching_button.h"
#include "buttons/button.h"
#ifdef TEENSYDUINO
#include "buttons/touchbutton.h"
#endif
#ifdef ARDUINO_ARCH_STM32L4
#include "buttons/stm32l4_touchbutton.h"
#endif
#include "buttons/rotary.h"
#include "buttons/pots.h"
#include "ir/ir.h"
#include "ir/receiver.h"
#include "ir/blaster.h"
#include "ir/print.h"
#include "ir/nec.h"
#include "ir/rc6.h"
#include "ir/stm32_ir.h"
#ifndef TEENSYDUINO
uint32_t startup_AHB1ENR;
uint32_t startup_AHB2ENR;
uint32_t startup_AHB3ENR;
uint32_t startup_APB1ENR1;
uint32_t startup_APB1ENR2;
uint32_t startup_APB2ENR;
uint32_t startup_MODER[4];
#endif
#define CONFIG_BUTTONS
#include CONFIG_FILE
#undef CONFIG_BUTTONS
#ifdef BLADE_DETECT_PIN
LatchingButtonTemplate<FloatingButtonBase<BLADE_DETECT_PIN>>
BladeDetect(BUTTON_BLADE_DETECT, BLADE_DETECT_PIN, "blade_detect");
#endif
#include "common/sd_test.h"
class I2CDevice;
class Commands : public CommandParser {
public:
enum PinType {
PinTypeFloating,
PinTypePulldown,
PinTypeCap,
PinTypeOther,
};
bool TestPin(int pin, PinType t) {
int ret = 0;
pinMode(pin, OUTPUT);
digitalWrite(pin, LOW);
delayMicroseconds(20);
ret <<= 1;
ret |= digitalRead(pin);
digitalWrite(pin, HIGH);
delayMicroseconds(20);
ret <<= 1;
ret |= digitalRead(pin);
// Discharge time
pinMode(pin, INPUT_PULLDOWN);
uint32_t start = micros();
uint32_t end;
while (digitalRead(pin)) {
end = micros();
if (end - start > 32768) break; // 32 millis
}
ret <<= 16;
ret |= (end - start);
pinMode(pin, INPUT_PULLUP);
delayMicroseconds(20);
ret <<= 1;
ret |= digitalRead(pin);
pinMode(pin, INPUT);
return ret;
}
bool Parse(const char* cmd, const char* e) override {
#ifdef ENABLE_SERIALFLASH
if (!strcmp(cmd, "ls")) {
char tmp[128];
SerialFlashChip::opendir();
uint32_t size;
while (SerialFlashChip::readdir(tmp, sizeof(tmp), size)) {
STDOUT.print(tmp);
STDOUT.print(" ");
STDOUT.println(size);
}
STDOUT.println("Done listing files.");
return true;
}
if (!strcmp(cmd, "rm")) {
if (SerialFlashChip::remove(e)) {
STDOUT.println("Removed.\n");
} else {
STDOUT.println("No such file.\n");
}
return true;
}
if (!strcmp(cmd, "format")) {
STDOUT.print("Erasing ... ");
SerialFlashChip::eraseAll();
while (!SerialFlashChip::ready());
STDOUT.println("Done");
return true;
}
#endif
#ifdef ENABLE_SD
#ifndef DISABLE_DIAGNOSTIC_COMMANDS
if (!strcmp(cmd, "dir")) {
LOCK_SD(true);
if (!e || LSFS::Exists(e)) {
for (LSFS::Iterator dir(e ? e : ""); dir; ++dir) {
STDOUT.print(dir.name());
STDOUT.print(" ");
STDOUT.println(dir.size());
}
STDOUT.println("Done listing files.");
} else {
STDOUT.println("No such directory.");
}
LOCK_SD(false);
return true;
}
#endif
#ifndef DISABLE_DIAGNOSTIC_COMMANDS
if (!strcmp(cmd, "cat") && e) {
LOCK_SD(true);
File f = LSFS::Open(e);
while (f.available()) {
STDOUT.write(f.read());
}
f.close();
LOCK_SD(false);
return true;
}
#endif
if (!strcmp(cmd, "del") && e) {
LOCK_SD(true);
LSFS::Remove(e);
LOCK_SD(false);
return true;
}
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "readalot")) {
uint8_t tmp[10];
LOCK_SD(true);
File f = LSFS::Open(e);
for (int i = 0; i < 10000; i++) {
f.seek(0);
f.read(tmp, 10);
f.seek(1000);
f.read(tmp, 10);
}
f.close();
LOCK_SD(false);
STDOUT.println("Done");
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifndef DISABLE_DIAGNOSTIC_COMMANDS
if (!strcmp(cmd, "sdtest")) {
SDTestHelper sdtester;
if (e && !strcmp(e, "all")) {
sdtester.TestDir("");
} else {
sdtester.TestFont();
}
return true;
}
#endif
#endif // ENABLE_SD
#if defined(ENABLE_SD) && defined(ENABLE_SERIALFLASH)
if (!strcmp(cmd, "cache")) {
LOCK_SD(true);
File f = LSFS::Open(e);
if (!f) {
STDOUT.println("File not found.");
return true;
}
int bytes = f.size();
if (!SerialFlashChip::create(e, bytes)) {
STDOUT.println("Not enough space on serial flash chip.");
return true;
}
SerialFlashFile o = SerialFlashChip::open(e);
while (bytes) {
char tmp[256];
int b = f.read(tmp, min(bytes, (int)NELEM(tmp)));
o.write(tmp, b);
bytes -= b;
}
LOCK_SD(false);
STDOUT.println("Cached!");
return true;
}
#endif
#ifndef DISABLE_DIAGNOSTIC_COMMANDS
if (!strcmp(cmd, "effects")) {
Effect::ShowAll();
return true;
}
#endif
#if 0
if (!strcmp(cmd, "df")) {
STDOUT.print(SerialFlashChip::capacity());
STDOUT.println(" bytes available.");
return true;
}
#endif
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "high") && e) {
pinMode(atoi(e), OUTPUT);
digitalWrite(atoi(e), HIGH);
STDOUT.println("Ok.");
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "low") && e) {
pinMode(atoi(e), OUTPUT);
digitalWrite(atoi(e), LOW);
STDOUT.println("Ok.");
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#if VERSION_MAJOR >= 4
if (!strcmp(cmd, "booster")) {
if (!strcmp(e, "on")) {
digitalWrite(boosterPin, HIGH);
STDOUT.println("Booster on.");
return true;
}
if (!strcmp(e, "off")) {
digitalWrite(boosterPin, LOW);
STDOUT.println("Booster off.");
return true;
}
}
#endif
#ifdef ENABLE_AUDIO
#if 0
if (!strcmp(cmd, "ton")) {
EnableAmplifier();
dac.SetStream(&saber_synth);
saber_synth.on_ = true;
return true;
}
if (!strcmp(cmd, "tof")) {
saber_synth.on_ = false;
return true;
}
#endif
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "dumpwav")) {
int16_t tmp[32];
wav_players[0].Stop();
wav_players[0].read(tmp, NELEM(tmp));
wav_players[0].Play(e);
for (int j = 0; j < 64; j++) {
int k = wav_players[0].read(tmp, NELEM(tmp));
for (int i = 0; i < k; i++) {
STDOUT.print(tmp[i]);
STDOUT.print(" ");
}
STDOUT.println("");
}
wav_players[0].Stop();
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "dumpwavplayer")) {
for (size_t i = 0; i < NELEM(wav_players); i++) {
if (e && atoi(e) != (int)i) continue;
wav_players[i].dump();
}
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#endif
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "sleep") && e) {
delay(atoi(e));
return true;
}
#endif
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "twiddle")) {
int pin = strtol(e, NULL, 0);
STDOUT.print("twiddling ");
STDOUT.println(pin);
pinMode(pin, OUTPUT);
for (int i = 0; i < 1000; i++) {
digitalWrite(pin, HIGH);
delay(10);
digitalWrite(pin, LOW);
delay(10);
}
STDOUT.println("done");
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "twiddle2")) {
int pin = strtol(e, NULL, 0);
STDOUT.print("twiddling ");
STDOUT.println(pin);
pinMode(pin, OUTPUT);
for (int i = 0; i < 1000; i++) {
for (int i = 0; i < 500; i++) {
digitalWrite(pin, HIGH);
delayMicroseconds(1);
digitalWrite(pin, LOW);
delayMicroseconds(1);
}
delay(10);
}
STDOUT.println("done");
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifndef DISABLE_DIAGNOSTIC_COMMANDS
if (!strcmp(cmd, "malloc")) {
STDOUT.print("alloced: ");
STDOUT.println(mallinfo().uordblks);
STDOUT.print("Free: ");
STDOUT.println(mallinfo().fordblks);
return true;
}
#endif
if (!strcmp(cmd, "make_default_console")) {
default_output = stdout_output;
return true;
}
#if 0
// Not finished yet
if (!strcmp(cmd, "selftest")) {
struct PinDefs { int8_t pin; PinType type; };
static PinDefs pin_defs[] = {
{ bladePowerPin1, PinTypePulldown },
{ bladePowerPin2, PinTypePulldown },
{ bladePowerPin3, PinTypePulldown },
{ bladePowerPin4, PinTypePulldown },
{ bladePowerPin5, PinTypePulldown },
{ bladePowerPin6, PinTypePulldown },
{ bladePin, PinTypeOther },
{ blade2Pin, PinTypeFloating },
{ blade3Pin, PinTypeFloating },
{ blade4Pin, PinTypeFloating },
{ blade5Pin, PinTypeFloating },
{ amplifierPin, PinTypeFloating },
{ boosterPin, PinTypeFloating },
{ powerButtonPin, PinTypeFloating },
{ auxPin, PinTypeFloating },
{ aux2Pin, PinTypeFloating },
{ rxPin, PinTypeOther },
{ txPin, PinTypeFloating },
};
for (size_t test_index = 0; test_index < NELEM(pin_defs); test_index++) {
int pin = pin_defs[test_index].pin;
for (size_t i = 0; i < NELEM(pin_defs); i++)
pinMode(pin_defs[i].pin, INPUT);
// test
for (size_t i = 0; i < NELEM(pin_defs); i++) {
pinMode(pin_defs[i].pin, OUTPUT);
digitalWrite(pin_defs[i].pin, HIGH);
// test
digitalWrite(pin_defs[i].pin, LOW);
// test
pinMode(pin_defs[i].pin, INPUT);
}
}
}
#endif
#ifndef DISABLE_DIAGNOSTIC_COMMANDS
if (!strcmp(cmd, "top")) {
#ifdef TEENSYDUINO
if (!(ARM_DWT_CTRL & ARM_DWT_CTRL_CYCCNTENA)) {
ARM_DEMCR |= ARM_DEMCR_TRCENA;
ARM_DWT_CTRL |= ARM_DWT_CTRL_CYCCNTENA;
STDOUT.println("Cycle counting enabled, top will work next time.");
return true;
}
#endif
#ifdef ARDUINO_ARCH_STM32L4
if (!(DWT->CTRL & DWT_CTRL_CYCCNTENA_Msk)) {
CoreDebug->DEMCR |= 1<<24; // DEMCR_TRCENA_Msk;
DWT->CTRL |= DWT_CTRL_CYCCNTENA_Msk;
STDOUT.println("Cycle counting enabled, top will work next time.");
return true;
}
#endif
// TODO: list cpu usage for various objects.
float total_cycles =
(float)(audio_dma_interrupt_cycles +
pixel_dma_interrupt_cycles +
motion_interrupt_cycles +
wav_interrupt_cycles +
Looper::CountCycles() +
CountProfileCycles());
STDOUT.print("Audio DMA: ");
STDOUT.print(audio_dma_interrupt_cycles * 100.0f / total_cycles);
STDOUT.println("%");
STDOUT.print("Wav reading: ");
STDOUT.print(wav_interrupt_cycles * 100.0f / total_cycles);
STDOUT.println("%");
STDOUT.print("Pixel DMA: ");
STDOUT.print(pixel_dma_interrupt_cycles * 100.0f / total_cycles);
STDOUT.println("%");
STDOUT.print("LOOP: ");
STDOUT.print(loop_cycles * 100.0f / total_cycles);
STDOUT.println("%");
STDOUT.print("Motion: ");
STDOUT.print(motion_interrupt_cycles * 100.0f / total_cycles);
STDOUT.println("%");
STDOUT.print("Global loops / second: ");
global_loop_counter.Print();
STDOUT.println("");
STDOUT.print("High frequency loops / second: ");
hf_loop_counter.Print();
STDOUT.println("");
SaberBase::DoTop(total_cycles);
Looper::LoopTop(total_cycles);
DumpProfileLocations(total_cycles);
noInterrupts();
audio_dma_interrupt_cycles = 0;
pixel_dma_interrupt_cycles = 0;
motion_interrupt_cycles = 0;
wav_interrupt_cycles = 0;
interrupts();
return true;
}
#endif
if (!strcmp(cmd, "version")) {
STDOUT << version
<< "\n" CONFIG_FILE "\nprop: " TOSTRING(PROP_TYPE) "\nbuttons: " TOSTRING(NUM_BUTTONS) "\ninstalled: "
<< install_time << "\n";
return true;
}
if (!strcmp(cmd, "reset")) {
#ifdef TEENSYDUINO
SCB_AIRCR = 0x05FA0004;
#endif
#ifdef ARDUINO_ARCH_STM32L4
STM32.reset();
#endif
STDOUT.println("Reset failed.");
return true;
}
#ifdef ARDUINO_ARCH_STM32L4
if (!strcmp(cmd, "shutdown")) {
STDOUT.println("Sleeping 10 seconds.\n");
STM32.stop(100000);
return true;
}
if (!strcmp(cmd, "RebootDFU")) {
stm32l4_system_dfu();
return true;
}
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "dumpfusor")) {
fusor.dump();
return true;
}
#endif
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "stm32info")) {
STDOUT.print("VBAT: ");
STDOUT.println(STM32.getVBAT());
STDOUT.print("VREF: ");
STDOUT.println(STM32.getVREF());
STDOUT.print("TEMP: ");
STDOUT.println(STM32.getTemperature());
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "i2cstate")) {
extern void DumpI2CState();
DumpI2CState();
SaberBase::DumpMotionRequest();
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "portstates")) {
GPIO_TypeDef *GPIO;
for (int i = 0; i < 4; i++) {
switch (i) {
case 0:
GPIO = (GPIO_TypeDef *)GPIOA_BASE;
STDOUT.print("PORTA: ");
break;
case 1:
GPIO = (GPIO_TypeDef *)GPIOB_BASE;
STDOUT.print("PORTB: ");
break;
case 2:
GPIO = (GPIO_TypeDef *)GPIOC_BASE;
STDOUT.print("PORTC: ");
break;
case 3:
GPIO = (GPIO_TypeDef *)GPIOH_BASE;
STDOUT.print("PORTH: ");
break;
}
for (int j = 15; j >= 0; j--) {
uint32_t now = (GPIO->MODER >> (j * 2)) & 3;
uint32_t saved = (startup_MODER[i] >> (j * 2)) & 3;
STDOUT.print((now == saved ? "ioga" : "IOGA")[now]);
if (!(j & 3)) STDOUT.print(" ");
}
STDOUT.print(" ");
for (int j = 15; j >= 0; j--) {
uint32_t now = (GPIO->PUPDR >> (j * 2)) & 3;
STDOUT.print("-ud?"[now]);
if (!(j & 3)) STDOUT.print(" ");
}
STDOUT.print(" ");
for (int j = 15; j >= 0; j--) {
uint32_t now = ((GPIO->IDR >> j) & 1) | (((GPIO->ODR >> j) & 1) << 1);
STDOUT.print("lhLH"[now]);
if (!(j & 3)) STDOUT.print(" ");
}
STDOUT.print(" ");
for (int j = 15; j >= 0; j--) {
int afr = 0xf & (GPIO->AFR[j >> 3] >> ((j & 7) * 4));
STDOUT.print("0123456789ABCDEF"[afr]);
if (!(j & 3)) STDOUT.print(" ");
}
STDOUT.println("");
}
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "CLK")) {
if (e) {
uint32_t c = atoi(e) * 1000000;
stm32l4_system_sysclk_configure(c, c/2, c/2);
}
STDOUT.print("Clocks: hse=");
STDOUT.print(stm32l4_system_hseclk());
STDOUT.print(" lse=");
STDOUT.print(stm32l4_system_lseclk());
STDOUT.print(" sys=");
STDOUT.print(stm32l4_system_sysclk());
STDOUT.print(" f=");
STDOUT.print(stm32l4_system_fclk());
STDOUT.print(" h=");
STDOUT.print(stm32l4_system_hclk());
STDOUT.print(" p1=");
STDOUT.print(stm32l4_system_pclk1());
STDOUT.print(" p2=");
STDOUT.print(stm32l4_system_pclk2());
STDOUT.print(" sai=");
STDOUT.println(stm32l4_system_saiclk());
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
if (!strcmp(cmd, "whatispowered")) {
STDOUT.print("ON: ");
#define PRINTIFON(REG, BIT) do { \
if (RCC->REG & RCC_##REG##_##BIT##EN) { \
STDOUT.print(" " #BIT); \
if (!(startup_##REG & RCC_##REG##_##BIT##EN)) STDOUT.print("+"); \
} \
} while(0)
PRINTIFON(AHB1ENR,FLASH);
PRINTIFON(AHB1ENR,DMA1);
PRINTIFON(AHB1ENR,DMA2);
PRINTIFON(AHB2ENR,GPIOA);
PRINTIFON(AHB2ENR,GPIOB);
#ifdef GPIOC_BASE
PRINTIFON(AHB2ENR,GPIOC);
#endif
#ifdef GPIOD_BASE
PRINTIFON(AHB2ENR,GPIOD);
#endif
#ifdef GPIOE_BASE
PRINTIFON(AHB2ENR,GPIOE);
#endif
#if defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(AHB2ENR,GPIOF);
PRINTIFON(AHB2ENR,GPIOG);
#endif
PRINTIFON(AHB2ENR,GPIOH);
#if defined(STM32L496xx)
PRINTIFON(AHB2ENR,GPIOI);
#endif
PRINTIFON(AHB2ENR,ADC);
PRINTIFON(APB1ENR1,DAC1);
#if defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(AHB2ENR,OTGFS);
#else
PRINTIFON(APB1ENR1,USBFS);
#endif
PRINTIFON(APB2ENR,USART1);
PRINTIFON(APB1ENR1,USART2);
#if defined(STM32L433xx) || defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB1ENR1,USART3);
#endif
#if defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB1ENR1,UART4);
PRINTIFON(APB1ENR1,UART5);
#endif
PRINTIFON(APB1ENR2,LPUART1);
PRINTIFON(APB1ENR1,I2C1);
#if defined(STM32L433xx) || defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB1ENR1,I2C2);
#endif
PRINTIFON(APB1ENR1,I2C3);
#if defined(STM32L496xx)
PRINTIFON(APB1ENR2,I2C4);
#endif
PRINTIFON(APB2ENR,SPI1);
#if defined(STM32L433xx) || defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB1ENR1,SPI2);
#endif
PRINTIFON(APB1ENR1,SPI3);
PRINTIFON(APB1ENR1,CAN1);
#if defined(STM32L496xx)
PRINTIFON(APB1ENR1,CAN2);
#endif
PRINTIFON(AHB3ENR,QSPI);
#if defined(STM32L433xx) || defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB2ENR,SDMMC1);
#endif
PRINTIFON(APB2ENR,SAI1);
#if defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB2ENR,SAI2);
PRINTIFON(APB2ENR,DFSDM1);
#endif
PRINTIFON(APB2ENR,TIM1);
PRINTIFON(APB1ENR1,TIM2);
#ifdef TIM3_BASE
PRINTIFON(APB1ENR1,TIM3);
#endif
#ifdef TIM4_BASE
PRINTIFON(APB1ENR1,TIM4);
#endif
#ifdef TIM5_BASE
PRINTIFON(APB1ENR1,TIM5);
#endif
PRINTIFON(APB1ENR1,TIM6);
#ifdef TIM7_BASE
PRINTIFON(APB1ENR1,TIM7);
#endif
#ifdef TIM8_BASE
PRINTIFON(APB2ENR,TIM8);
#endif
PRINTIFON(APB2ENR,TIM15);
PRINTIFON(APB2ENR,TIM16);
#if defined(STM32L476xx) || defined(STM32L496xx)
PRINTIFON(APB2ENR,TIM17);
#endif
PRINTIFON(APB1ENR1,LPTIM1);
PRINTIFON(APB1ENR2,LPTIM2);
// Not sure what CPUs implement these
PRINTIFON(AHB1ENR, CRC);
PRINTIFON(AHB1ENR, TSC);
PRINTIFON(AHB2ENR, RNG);
#ifdef LCD_BASE
PRINTIFON(APB1ENR1, LCD);
#endif
PRINTIFON(APB1ENR1, RTCAPB);
PRINTIFON(APB1ENR1, WWDG);
PRINTIFON(APB1ENR1, CRS);
PRINTIFON(APB1ENR1, CAN1);
PRINTIFON(APB1ENR1, PWR);
PRINTIFON(APB1ENR1, OPAMP);
#ifdef SWPMI1_BASE
PRINTIFON(APB1ENR2, SWPMI1);
#endif
PRINTIFON(APB2ENR, SYSCFG);
PRINTIFON(APB2ENR, FW);
STDOUT.println("");
STDOUT.print("VBUS: ");
STDOUT.println(stm32l4_gpio_pin_read(GPIO_PIN_PB2));
STDOUT.print("USBD connected: ");
STDOUT.println(USBD_Connected());
return true;
}
#endif // ENABLE_DEVELOPER_COMMANDS
#ifdef ENABLE_DEVELOPER_COMMANDS
#ifdef HAVE_STM32L4_DMA_GET
if (!strcmp(cmd, "dmamap")) {
for (int channel = 0; channel < 16; channel++) {
stm32l4_dma_t *dma = stm32l4_dma_get(channel);
if (dma) {
STDOUT.print(" DMA");
STDOUT.print( 1 +(channel / 8) );
STDOUT.print("_CH");
STDOUT.print( channel % 8 );
STDOUT.print(" = ");
STDOUT.println(dma->channel >> 4, HEX);
}
}
return true;
}
#endif // HAVE_STM32L4_DMA_GET
#endif // ENABLE_DEVELOPER_COMMANDS
#endif // TEENSYDUINO
return false;
}
};
StaticWrapper<Commands> commands;
#include "common/serial.h"
#if defined(ENABLE_MOTION) || defined(ENABLE_DISPLAY_CODE)
#include "common/i2cdevice.h"
I2CBus i2cbus;
#endif
#ifdef ENABLE_SSD1306
#include "display/ssd1306.h"
#ifndef DISPLAY_POWER_PINS
#define DISPLAY_POWER_PINS PowerPINS<>
#endif
StandardDisplayController<128, uint32_t> display_controller;
SSD1306Template<128, uint32_t, DISPLAY_POWER_PINS> display(&display_controller);
#endif
#ifdef INCLUDE_SSD1306
#include "display/ssd1306.h"
#endif
#ifdef ENABLE_MOTION
#include "motion/motion_util.h"
#include "motion/mpu6050.h"
#include "motion/lsm6ds3h.h"
#include "motion/fxos8700.h"
#include "motion/fxas21002.h"
// Define this to record clashes to sd card as CSV files
// #define CLASH_RECORDER
#ifdef GYRO_CLASS
// Can also be gyro+accel.
StaticWrapper<GYRO_CLASS> gyroscope;
#endif
#ifdef ACCEL_CLASS
StaticWrapper<ACCEL_CLASS> accelerometer;
#endif
#endif // ENABLE_MOTION
#include "sound/amplifier.h"
#include "common/sd_card.h"
#include "common/booster.h"
void setup() {
#if VERSION_MAJOR >= 4
#define SAVE_RCC(X) startup_##X = RCC->X
SAVE_RCC(AHB1ENR);
SAVE_RCC(AHB2ENR);
SAVE_RCC(AHB3ENR);
SAVE_RCC(APB1ENR1);
SAVE_RCC(APB1ENR2);
SAVE_RCC(APB2ENR);
#define SAVE_MODER(PORT, X) startup_MODER[X] = ((GPIO_TypeDef *)GPIO##PORT##_BASE)->MODER
SAVE_MODER(A, 0);
SAVE_MODER(B, 1);
SAVE_MODER(C, 2);
SAVE_MODER(H, 3);
// TODO enable/disable as needed
pinMode(boosterPin, OUTPUT);
digitalWrite(boosterPin, HIGH);
#endif
Serial.begin(115200);
#if VERSION_MAJOR >= 4
// TODO: Figure out if we need this.
// Serial.blockOnOverrun(false);
#endif
// Wait for all voltages to settle.
// Accumulate some entrypy while we wait.
uint32_t now = millis();
while (millis() - now < PROFFIEOS_STARTUP_DELAY) {
#ifndef NO_BATTERY_MONITOR
srand((rand() * 917823) ^ LSAnalogRead(batteryLevelPin));
#endif
#ifdef BLADE_DETECT_PIN
// Figure out if blade is connected or not.
// Note that if PROFFIEOS_STARTUP_DELAY is smaller than
// the settle time for BladeDetect, this won't work properly.
BladeDetect.Warmup();
#endif
}
#ifdef ENABLE_SERIALFLASH
SerialFlashChip::begin(serialFlashSelectPin);
#endif
#ifdef ENABLE_SD
bool sd_card_found = LSFS::Begin();
if (!sd_card_found) {
if (sdCardSelectPin >= 0 && sdCardSelectPin < 255) {
STDOUT.println("No sdcard found.");
pinMode(sdCardSelectPin, OUTPUT);
digitalWrite(sdCardSelectPin, 0);
delayMicroseconds(2);
pinMode(sdCardSelectPin, INPUT);
delayMicroseconds(2);
if (digitalRead(sdCardSelectPin) != HIGH) {
STDOUT.println("SD select not pulled high!");
}
}
#if VERSION_MAJOR >= 4
stm32l4_gpio_pin_configure(GPIO_PIN_PA5, (GPIO_PUPD_PULLUP | GPIO_OSPEED_HIGH | GPIO_MODE_INPUT));
delayMicroseconds(10);
if (!stm32l4_gpio_pin_read(GPIO_PIN_PA5)) {
STDOUT.println("SCK won't go high!");
}
stm32l4_gpio_pin_configure(GPIO_PIN_PA5, (GPIO_PUPD_PULLDOWN | GPIO_OSPEED_HIGH | GPIO_MODE_INPUT));
delayMicroseconds(10);
if (stm32l4_gpio_pin_read(GPIO_PIN_PA5)) {
STDOUT.println("SCK won't go low!");
}
#endif
} else {
STDOUT.println("Sdcard found..");
}
#endif
Looper::DoSetup();
// Time to identify the blade.
prop.FindBlade();
SaberBase::DoBoot();
#if defined(ENABLE_SD)
if (!sd_card_found) ProffieOSErrors::sd_card_not_found();
#endif // ENABLE_SD
}
#ifdef MTP_RX_ENDPOINT
void mtp_yield() { Looper::DoLoop(); }
void mtp_lock_storage(bool lock) {
AudioStreamWork::LockSD(lock);
}
#include "mtp/mtpd.h"
MTPD mtpd;
#ifdef ENABLE_SD
#include "mtp/mtp_storage_sd.h"
MTPStorage_SD sd_storage(&mtpd);
#endif
#ifdef ENABLE_SERIALFLASH
#include "mtp/mtp_storage_serialflash.h"
MTPStorage_SerialFlash serialflash_storage(&mtpd);
#endif
#endif // MTP_RX_ENDPOINT
#include "common/clock_control.h"
void loop() {
#ifdef MTP_RX_ENDPOINT
mtpd.loop();
#endif
Looper::DoLoop();
}
#define CONFIG_BOTTOM
#include CONFIG_FILE
#undef CONFIG_BOTTOM
#define PROFFIEOS_DEFINE_FUNCTION_STAGE
#include "common/errors.h"
This is ProffieOS.ino, not your config file.
According to this, your config file is called ezera_config.h
Uninstalling Arduino won’t do much good here. You need to uninstall the plugin specifically, via the plugin/boards manager in Arduino.
But then also, to confirm it’s not your config, as Fredrik said, we’d need a copy of how it is right now.
Also, if you have an error message, please always post the error message if you’ve changed things and it seemingly still isn’t working, that way we can catch if anything has changed in the error messages, and move from there accordingly.