Skip to content

Move IDW01M1 driver under COMPONENT #4

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

Merged
merged 2 commits into from
Jul 29, 2019
Merged

Move IDW01M1 driver under COMPONENT #4

merged 2 commits into from
Jul 29, 2019

Conversation

MarceloSalazar
Copy link

This PR tides up the IDW01M1 driver to be picked up only when compiling for the NUCLEO_F411.
Example:

| Module                                        |           .text |       .data |          .bss |
|-----------------------------------------------|-----------------|-------------|---------------|
| [fill]                                        |       566(+566) |     21(+21) |     141(+141) |
| [lib]/c.a                                     |   45398(+45398) | 2472(+2472) |       89(+89) |
| [lib]/gcc.a                                   |     4244(+4244) |       0(+0) |         0(+0) |
| [lib]/misc                                    |       224(+224) |       4(+4) |       28(+28) |
| [lib]/nosys.a                                 |         32(+32) |       0(+0) |         0(+0) |
| [lib]/stdc++.a                                |           8(+8) |       0(+0) |         0(+0) |
| drivers/COMPONENT_WIFI_IDW01M1                |   12556(+12556) |       0(+0) |   3592(+3592) |
| main.o                                        |       944(+944) |       1(+1) |       16(+16) |
| mbed-cloud-client/factory-configurator-client |     5908(+5908) |       0(+0) |       18(+18) |
| mbed-cloud-client/mbed-client                 |   53024(+53024) |     22(+22) |       12(+12) |
| mbed-cloud-client/mbed-client-pal             |   11798(+11798) |       0(+0) |     171(+171) |
| mbed-cloud-client/source                      |     7912(+7912) |       5(+5) |       24(+24) |
| mbed-cloud-client/update-client-hub           |   23546(+23546) |   136(+136) |   6268(+6268) |
| mbed-os/components                            |     6630(+6630) |       0(+0) |         4(+4) |
| mbed-os/drivers                               |     5264(+5264) |       0(+0) |     340(+340) |
| mbed-os/events                                |     1806(+1806) |       0(+0) |   4936(+4936) |
| mbed-os/features                              | 116082(+116082) |   199(+199) |   9681(+9681) |
| mbed-os/hal                                   |     1708(+1708) |       4(+4) |       66(+66) |
| mbed-os/platform                              |     5952(+5952) |   276(+276) |   2741(+2741) |
| mbed-os/rtos                                  |   10944(+10944) |   168(+168) |   6237(+6237) |
| mbed-os/targets                               |   12726(+12726) |       4(+4) |     460(+460) |
| mbed_cloud_dev_credentials.o                  |           0(+0) |       0(+0) |         0(+0) |
| update_default_resources.o                    |           0(+0) |       0(+0) |         0(+0) |
| Subtotals                                     | 327272(+327272) | 3312(+3312) | 34824(+34824) |

When using other target (e.g. K64), the IDW01M1 is ignored.

This is a small but very useful trick to tide up the drivers during the mbed compile process and I'd suggest to be used as a reference for other cases in the future ;-)

@teetak01

@MarceloSalazar
Copy link
Author

@teetak01 changes done - feel free to merge it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants