Giter Site home page Giter Site logo

dsbrut's People

Contributors

fleshgordo avatar gohai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dsbrut's Issues

tutorials 2021

Hi any tutorials going in 2021? I tried to run the make file but I get the following:

`make -C arm7
make[1]: Entering directory '/opt/devkitpro/examples/nds/term/arm7'
template.c
linking term.arm7.elf
built ... term.arm7
make[1]: Leaving directory '/opt/devkitpro/examples/nds/term/arm7'
make -C arm9
make[1]: Entering directory '/opt/devkitpro/examples/nds/term/arm9'
bt.c
C:/devkitPro/examples/nds/term/arm9/source/bt.c: In function 'bt_scan':
C:/devkitPro/examples/nds/term/arm9/source/bt.c:317:5: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 47 [-Wstringop-truncation]
317 | strncpy(devices[num_devices].addr, line, 12);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/bt.c:329:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
329 | strncpy(devices[num_devices].cod, end+1, strlen(end+1)-2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/bt.c:329:46: note: length computed here
329 | strncpy(devices[num_devices].cod, end+1, strlen(end+1)-2);
| ^~~~~~~~~~~~~
main.c
C:/devkitPro/examples/nds/term/arm9/source/main.c: In function 'main':
C:/devkitPro/examples/nds/term/arm9/source/main.c:77:11: warning: '~' on a boolean expression [-Wbool-operation]
77 | echo = ~echo;
| ^
C:/devkitPro/examples/nds/term/arm9/source/main.c:77:11: note: did you mean to use logical not?
77 | echo = ~echo;
| ^
| !
C:/devkitPro/examples/nds/term/arm9/source/main.c:83:24: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32' {aka 'long unsigned int'} [-Wformat=]
83 | iprintf("\nsetting %u bps..", bps_list[bps_list_index]);
| ~^ ~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int uint32 {aka long unsigned int}
| %lu
C:/devkitPro/examples/nds/term/arm9/source/main.c:101:25: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=]
101 | sprintf(tmstr, "%010u", (uint32)tm);
| ~~~~^ ~~~~~~~~~~
| | |
| | long unsigned int
| unsigned int
| %010lu
C:/devkitPro/examples/nds/term/arm9/source/main.c:37:9: warning: variable 'spi_rate' set but not used [-Wunused-but-set-variable]
37 | uint32 spi_rate;
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/main.c:103:5: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
103 | strncpy(fn+8, ".log", 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/main.c:102:5: warning: 'strncpy' output may be truncated copying 8 bytes from a string of length 8 [-Wstringop-truncation]
102 | strncpy(fn, tmstr+2, 8);
| ^~~~~~~~~~~~~~~~~~~~~~~
spi_driver.c
In file included from C:/devkitPro/libnds/include/nds.h:238,
from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:12:
C:/devkitPro/libnds/include/nds/card.h:98:23: error: expected identifier before '(' token
98 | #define CARD_SPI_BUSY (1<<7)
| ^
C:/devkitPro/examples/nds/term/arm9/source/spi.h:20:3: note: in expansion of macro 'CARD_SPI_BUSY'
20 | CARD_SPI_BUSY = 1
| ^~~~~~~~~~~~~
In file included from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:15:
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'read_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:64:9: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
64 | if ( !CARD_SPI_BUSY_TEST) {
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: note: each undeclared identifier is reported only once for each function it appears in
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:64:9: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
64 | if ( !CARD_SPI_BUSY_TEST) {
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:65:18: error: 'CARD_EEPDATA' undeclared (first use in this function); did you mean 'CARD_SEC_DAT'?
65 | *read_byte = CARD_EEPDATA;
| ^~~~~~~~~~~~
| CARD_SEC_DAT
In file included from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:15:
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'readBlocking_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:29:38: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
29 | #define CARD_SPI_WAIT_IDLE() while ( CARD_SPI_BUSY_TEST);
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:86:3: note: in expansion of macro 'CARD_SPI_WAIT_IDLE'
86 | CARD_SPI_WAIT_IDLE();
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:88:16: error: 'CARD_EEPDATA' undeclared (first use in this function); did you mean 'CARD_SEC_DAT'?
88 | *read_byte = CARD_EEPDATA;
| ^~~~~~~~~~~~
| CARD_SEC_DAT
In file included from C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:15:
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'write_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_internals.h:26:29: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
26 | #define CARD_SPI_BUSY_TEST (CARD_CR1 & CARD_SPI_BUSY_BIT)
| ^~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:109:9: note: in expansion of macro 'CARD_SPI_BUSY_TEST'
109 | if ( !CARD_SPI_BUSY_TEST) {
| ^~~~~~~~~~~~~~~~~~
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:121:5: error: 'CARD_EEPDATA' undeclared (first use in this function); did you mean 'CARD_SEC_DAT'?
121 | CARD_EEPDATA = byte;
| ^~~~~~~~~~~~
| CARD_SEC_DAT
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c: In function 'disable_cardSPI':
C:/devkitPro/examples/nds/term/arm9/source/spi_driver.c:186:3: error: 'CARD_CR1' undeclared (first use in this function); did you mean 'CARD_WR'?
186 | CARD_CR1 = 0;
| ^~~~~~~~
| CARD_WR
make[2]: *** [/opt/devkitpro/devkitARM/base_rules:85: spi_driver.o] Error 1
make[1]: *** [Makefile:99: build] Error 2
make[1]: Leaving directory '/opt/devkitpro/examples/nds/term/arm9'
make: *** [Makefile:35: arm9/term.elf] Error 2

C:\devkitPro\examples\nds\term>`

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.