Coder Social home page Coder Social logo

Comments (6)

rnestler avatar rnestler commented on July 20, 2024

Hi @nit1995

Since your Arduino board library seems to already provide these typedef's you can do as it states in the comments above the typedef

/**
 * Comment out the following block if your platform already provides the
 * type definitions u8, u16, u32, u64, s8, s16, s32, s64.
 */

And remove the typedef for u16.

from embedded-uart-sps.

nit1995 avatar nit1995 commented on July 20, 2024

Thank you. I did that and the program is compiling without errors. To what pins of the Arduino must we connect the UART Rx and Tx? I am using the arduino_sps3_example.ino?

from embedded-uart-sps.

rnestler avatar rnestler commented on July 20, 2024

That depends on what Arduino board your are using. See https://www.arduino.cc/reference/en/language/functions/communication/serial/.

from embedded-uart-sps.

abrauchli avatar abrauchli commented on July 20, 2024

@nit1995 I'm closing this since the issue is resolved.

Concerning the follow-up question with the pins to use, that's obviously hardware dependent and this driver is hardware-agnostic, so it's not a driver issue that should be raised here. There's a sample implementation for more or less one arduino but due to its generic nature it's not a ready-to use arduino driver. Assuming that this issue is related to #16 and you're running on the Feather 32u4 I'd guess the MISO/MOSI (https://www.adafruit.com/product/2771) pins would be adequate, on other Arduinos its sometimes the rx/tx pins, when they're not shared with USB..

As a closing word, our vision is to get generally better out-of-the-box Arduino support, but that's still down the road.

from embedded-uart-sps.

yukimach avatar yukimach commented on July 20, 2024

Hi,
I'm getting the:
conflicting declaration 'typedef uint16_t u16'

when i comment this out
// typedef uint16_t u16

I get
unknown type name 'u16'

Where am I going wrong?

from embedded-uart-sps.

rnestler avatar rnestler commented on July 20, 2024

@yukimach This shouldn't happen with the newer releases (>2.0.0) since we changed to using the uint16_t types directly. Please open a new issue if you still have any troubles.

from embedded-uart-sps.

Related Issues (20)

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.