Last active
February 16, 2021 09:20
-
-
Save Ansis100/1249e6ea44d5f55af692770b26aea146 to your computer and use it in GitHub Desktop.
Failed MansOS atmega build with hacked I2C declarations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC main.c | |
In file included from ./../../../mos/include/stdmansos.h:62, | |
from main.c:28: | |
./../../../mos/include/print.h:38:20: warning: inline function 'PRINTF' declared but never defined | |
38 | extern inline void PRINTF(char *format, ...) PRINTF_LIKE; | |
| ^~~~~~ | |
In file included from ./../../../mos/include/stdmansos.h:37, | |
from main.c:28: | |
./../../../mos/include/light.h:43:20: warning: inline function 'lightInit' declared but never defined | |
43 | extern inline void lightInit(void); | |
| ^~~~~~~~~ | |
./../../../mos/include/light.h:38:24: warning: inline function 'lightRead' declared but never defined | |
38 | extern inline uint16_t lightRead(void); | |
| ^~~~~~~~~ | |
./../../../mos/include/light.h:36:20: warning: inline function 'lightOff' declared but never defined | |
36 | extern inline void lightOff(void); | |
| ^~~~~~~~ | |
./../../../mos/include/light.h:34:20: warning: inline function 'lightOn' declared but never defined | |
34 | extern inline void lightOn(void); | |
| ^~~~~~~ | |
In file included from ./../../../mos/include/i2c_soft.h:43, | |
from ./../../../mos/include/i2c.h:35, | |
from ./../../../mos/include/stdmansos.h:35, | |
from main.c:28: | |
./../../../mos/include/delay.h:46:20: warning: inline function 'mdelay' declared but never defined | |
46 | extern inline void mdelay(uint16_t miliseconds); | |
| ^~~~~~ | |
./../../../mos/include/delay.h:39:20: warning: inline function 'udelay' declared but never defined | |
39 | extern inline void udelay(uint16_t microseconds); | |
| ^~~~~~ | |
In file included from ./../../../mos/include/stdmansos.h:32, | |
from main.c:28: | |
./../../../mos/include/sleep.h:47:20: warning: inline function 'yield' declared but never defined | |
47 | extern inline void yield(void); | |
| ^~~~~ | |
In file included from ./../../../mos/include/stdmansos.h:31, | |
from main.c:28: | |
./../../../mos/include/defines.h:50:20: warning: inline function 'ATOMIC_END' declared but never defined | |
50 | extern inline void ATOMIC_END(Handle_t handle); | |
| ^~~~~~~~~~ | |
./../../../mos/include/defines.h:46:20: warning: inline function 'ATOMIC_START' declared but never defined | |
46 | extern inline void ATOMIC_START(Handle_t handle); | |
| ^~~~~~~~~~~~ | |
./../../../mos/include/defines.h:42:20: warning: inline function 'DISABLE_INTS' declared but never defined | |
42 | extern inline void DISABLE_INTS(void); | |
| ^~~~~~~~~~~~ | |
./../../../mos/include/defines.h:39:20: warning: inline function 'ENABLE_INTS' declared but never defined | |
39 | extern inline void ENABLE_INTS(void); | |
| ^~~~~~~~~~~ | |
CC ../../../mos/platforms/atmega/platform.c | |
In file included from ../../../mos/platforms/atmega/platform.h:30, | |
from ../../../mos/platforms/atmega/platform.c:27: | |
../../../mos/platforms/atmega/platform.c: In function 'initPlatform': | |
./../../../mos/chips/atmega/atmega_timers.h:121:20: error: 'CTC0' undeclared (first use in this function) | |
121 | TCCR0A = (1 << CTC0); \ | |
| ^~~~ | |
./../../../mos/chips/atmega/atmega_timers.h:112:5: note: in expansion of macro 'atmegaInitTimer0' | |
112 | atmegaInitTimer0(); \ | |
| ^~~~~~~~~~~~~~~~ | |
../../../mos/platforms/atmega/platform.c:35:5: note: in expansion of macro 'atmegaTimersInit' | |
35 | atmegaTimersInit(); | |
| ^~~~~~~~~~~~~~~~ | |
./../../../mos/chips/atmega/atmega_timers.h:121:20: note: each undeclared identifier is reported only once for each function it appears in | |
121 | TCCR0A = (1 << CTC0); \ | |
| ^~~~ | |
./../../../mos/chips/atmega/atmega_timers.h:112:5: note: in expansion of macro 'atmegaInitTimer0' | |
112 | atmegaInitTimer0(); \ | |
| ^~~~~~~~~~~~~~~~ | |
../../../mos/platforms/atmega/platform.c:35:5: note: in expansion of macro 'atmegaTimersInit' | |
35 | atmegaTimersInit(); | |
| ^~~~~~~~~~~~~~~~ | |
In file included from ./../../../mos/chips/atmega/atmega_int.h:31, | |
from ../../../mos/platforms/atmega/platform.h:27, | |
from ../../../mos/platforms/atmega/platform.c:27: | |
../../../mos/platforms/atmega/platform.c: At top level: | |
./../../../mos/include/defines.h:50:20: warning: inline function 'ATOMIC_END' declared but never defined | |
50 | extern inline void ATOMIC_END(Handle_t handle); | |
| ^~~~~~~~~~ | |
./../../../mos/include/defines.h:46:20: warning: inline function 'ATOMIC_START' declared but never defined | |
46 | extern inline void ATOMIC_START(Handle_t handle); | |
| ^~~~~~~~~~~~ | |
./../../../mos/include/defines.h:42:20: warning: inline function 'DISABLE_INTS' declared but never defined | |
42 | extern inline void DISABLE_INTS(void); | |
| ^~~~~~~~~~~~ | |
./../../../mos/include/defines.h:39:20: warning: inline function 'ENABLE_INTS' declared but never defined | |
39 | extern inline void ENABLE_INTS(void); | |
| ^~~~~~~~~~~ | |
make: *** [/home/ansis/Documents/MansOS/apps/demo/Blink/../../../mos/make/Makefile:365: build/atmega/mos/platforms/atmega/platform.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment