-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add a new target DELTA_DFCM_NNN40 #866
Conversation
Merge remote-tracking branch 'upstream/master' Conflicts: libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/i2c_api.c workspace_tools/targets.py
"disk":"F:\\", | ||
"peripherals": ["24LC256"] | ||
} | ||
} |
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.
This file should probably not be checked in
…erit from NRF51822, add SWIO default setting in system_nrf51822.c and SWIO,VERF pin in PinName.h
| (GPIO_PIN_CNF_INPUT_Disconnect << GPIO_PIN_CNF_INPUT_Pos) | ||
| (GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos); | ||
|
||
NRF_GPIO->OUTCLR = (GPIO_OUTCLR_PIN19_Clear << GPIO_OUTCLR_PIN19_Pos); |
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.
In the DELTA DFCM_NNN40 module, the pin 19 is connected a RF switch, that controls antenna to radiate Bluetooth 4.0 or WiFi. Pull low to select Bluetooth 4.0 and Pull high to select WiFi.
We define the default setting is pull low to select Bluetooth 4.0.
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.
There's mbed init which is called after the main, where you can implement specific target functionality, like this. I would move this gpo pin change there.
There are some missing pieces.
You can send a separate pull request for above. I can merge this now as it is, but first, can you sign http://developer.mbed.org/contributor_agreement/ ? |
…ystem_nrf51822.c
…sion4_deta_dfcm_nnn40.uvproj.tmpl
What do I need to do now? wait? |
I see you added those changes, can you please edit years in files you edited? Like in the mbed overrides file, it states 2014 but was created a day ago. Same applies to files you edited, extend the year. One more, each toolchain has own script file where is a list of targets supported. Please add yours there, to gcc and uvision. |
…mbed_overrides.c,targets.py
Please correct the indentation in target.py. The error from Travis build:
Plus add your target here https://github.com/mbedmicro/mbed/blob/master/workspace_tools/export/gccarm.py and same for uvision |
Do I miss some thing? |
…elta_dfcm_nnn40.uvopt.tmpl
Yes ,you can remove it |
Great! Thank you very much 0xc0170 |
I'll merge this today. You can test your exporters, if everything works from master, like blinky and some other tests which are there. |
ok, thanks |
I don't see our target on mbed repository yet. |
It's going to be merged within minutes. I did not have time on Friday to finish merging, thanks for understanding. |
Add a new target DELTA_DFCM_NNN40
@Marcomissyou Hey, please be careful not to break other's platform. HRM1017 got problem by your pull request. |
Hi, I apologize for that. Sorry 2015-02-06 2:17 GMT+08:00 ytsuboi notifications@github.com:
|
@@ -67,7 +71,7 @@ void SystemInit(void) | |||
|
|||
// Start the external 32khz crystal oscillator. | |||
|
|||
#ifdef TARGET_HRM1017 | |||
#ifdef TARGET_DELTA_DFCM_NNN40 || TARGET_HRM1017 |
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.
should be
#if defined(TARGET_DELTA_DFCM_NNN40) || defined(TARGET_HRM1017)
Yes, as @xiongyihui wrote, that is the point. The patch for this issue was already sent. |
I wondered why preprocessor didn't notice, so tried reproduction.
It caused a warning! Why did you ignore this? |
Hi ytsuboi, I am not familiar with github, this is my first time to use it and first pull request to mbed repository. |
Okay. :-) |
Yes, I saw that warning. |
I overlooked it also 😟 Addition to warnings checking, It is a good practise to keep checking pull requests, to minimize this type of issues as one pull request can impact more targets, or even common code. I keep PR open for a while, for comments. |
Hi,
There is a new target( DELTA_DFCM_NNN40 ) that we want to add into your platform.
We are Delta company. And We manufacture a BLE WiFi combo module.
We use NRF51822 BLE+M0 chip. It is configured to 32MHz X'tal and use 32K RC crystal oscillator.
The module supports OTA update FW so it is necessary to create another target to support OTA like Nordic nRF51822 FOTA.
Thanks
Marco