Comments (2)
Hi. Yes that makes sense to me THX. By the way great library saves a lot of time.
from ubxlib.
Hi there, and thanks for spotting this. You're quite right that the value of driveMode
ends up being different when the VInt GPIO pin is set, depending on whether there was a pinEnablePower
pin defined; a somewhat dangerous optimised construction on my part. I think the flow goes like this:
- the initial default for
pullMode
at the start of the function isU_PORT_GPIO_PULL_MODE_NONE
, - if there's a
pinPwrOn
it becomesU_PORT_GPIO_PULL_MODE_PULL_UP
, - if there's a
pinEnablePower
it becomesU_PORT_GPIO_PULL_MODE_NONE
, - for the final case, if there's a
pinVint
, it's not touched, so it will be whatever it was due to the presence ofpinPwrOn
orpinEnablePower
.
Now we only have a single board on our test system with a pinEnablePower
, so the vast majority of cases we test will have pinVInt
set to U_PORT_GPIO_PULL_MODE_PULL_UP
.
[caveat: I'm not a HW engineer!]
And that seems wrong to me. VInt is simply being monitored, it should not be pulled anywhere. Not that it seems to make a difference in our cases but it might in other HW setups.
To cut this rambling story short: I will test a change which explicitly sets all the goldarned IO config lines before each call to uPortGpioConfig()
; certainty much better than optimisation in this case. And for the pinVint
case the pull mode will be U_PORT_GPIO_PULL_MODE_NONE
. Does that make sense to you?
from ubxlib.
Related Issues (20)
- how to enable multiple selected messageId.id.pNmea msg types HOT 5
- capture all UBX data from GNSS module HOT 13
- Compiling in ubxlib triggers SecureFault in Trusted Firmware-M on nrf9160 HOT 12
- Cell Network Up Keep Going Callback Fails at Tick Wrap-Around HOT 1
- AT Client Character Wait Fails Once Ticks Wrap Beyond INT32_MAX HOT 2
- Some 64-bit milliseconds tick values were not migrated to 32-bit HOT 30
- Assistance Requested for Configuring ubxlib for LEAN_R8 on Linux HOT 131
- Problems selecting cipher suites HOT 16
- +CME ERROR: Operation not allowed HOT 11
- SARA-R510M8S: How to use cellular network and GNSS network simultaneously? HOT 5
- print ubxlib output to usb on nrf52840 dongle using Zephyr HOT 31
- SPI interface for short-range devices HOT 2
- uCellSockCleanup HOT 13
- Using pppd with LARA-R6 via USB HOT 31
- Function rand() do not provide a return status HOT 2
- C2C seems not to have a session counter HOT 2
- AssistNow for SARA-R510M8S HOT 4
- Support for NEO-F9P-15 Base & Rover HOT 11
- few tick timeout comparison and other issues/improvements: HOT 6
- Unable to connect to AWS following example HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ubxlib.