-
Notifications
You must be signed in to change notification settings - Fork 178
porting update #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
porting update #435
Conversation
@AnotherButler @AnttiKauppila please review |
Copy edit file, mostly for active voice, branding and correct image links.
Update heading names and titles to better match template.
|
||
- If the modem is already ready to use via the UART, it may be possible to use `UARTCellularInterface` directly. Just pass its constructor the necessary pin information for the module connected to your board. | ||
You must define all pins. Implement `onboard_modem_api.h`. The target board must provide an implementation of the [onboard_modem_API](https://github.com/ARMmbed/mbed-os/blob/master/features/netsocket/cellular/onboard_modem_api.h). Please see the [example implementation ](https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/onboard_modem_api.c). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't like to link to GitHub, so we need to find all of the GitHub links in the Doxygen once it's generated.
|
||
- If using a different connection type, you must provide access to the connection by implementing the `FileHandle` API, and then you can pass your file handle for that connection to `PPPCellularInterface`. Either use it directly, or derive from it, and pass a file handle to its constructor in the same manner as `UARTCellularInterface`. | ||
Setup for some predefined targets is available in [CellularTargets.h](https://github.com/ARMmbed/mbed-os/blob/master/features/cellular/framework/common/CellularTargets.h). For a new target, you need to modify `CellularTargets.h`. In `CellularTargets.h`, you need to specify a cellular device in addition to UART pins connecting the Mbed OS CPU to the modem. For example, if you used a K64F to connect with the QUECTEL BG96, you need the following changes marked in between `// !!!!` in `CellularTargets.h`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query: Is there a reason we chose the K64F? Also, can we use a real example that's not board-specific?
No description provided.