Comments (6)
Hi Simon
Thanks!
You are right! Can you initiate a pull request?
Maarten
From: Simon Haines [mailto:[email protected]]
Sent: Tuesday, April 26, 2016 09:25
To: MOSAIC-LoPoW/dash7-ap-open-source-stack [email protected]
Subject: [MOSAIC-LoPoW/dash7-ap-open-source-stack] EZR32 configurable oscillator source for timer (#29)
The EZR32LG timer has the LFXO hard-coded as the oscillator source for the RTC. I am bringing up a platform that does not have an external low-frequency crystal. The startLfxoForRtc() function in ezr32lg_timer.c should use the HW_USE_LFXO macro definition in platform.h to select the oscillator source for the timer.
Additionally, the HW_USE_HFXO macro is used in the __ezr32lg_mcu_init() function to select the oscillator source for the MCU. The file ezr32lg_mcu.c does not include platform.h (nor does any of its includes) and so never sees the HW_USE_HFXO definition, and always defaults to the HFRCO. Should the hal/chips/ezr32/CMakeLists.txt file include configuration parameters for oscillator selection?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/29
from sub-iot-stack.
Yes, I will add the HW_USE_LFXO/HFXO
options into hal/chips/ezr32/CMakeLists.txt
and generate a hal/chips/ezr32/inc/chip.h
file with the selected results (with the default to define these two macros). Unless you would prefer some other method?
from sub-iot-stack.
I will add Glenn to this discussion, he is the architect of the stack.
Glenn your opinion?
M
From: Simon Haines [mailto:[email protected]]
Sent: Tuesday, April 26, 2016 09:54
To: MOSAIC-LoPoW/dash7-ap-open-source-stack [email protected]
Cc: Weyn Maarten [email protected]; Comment [email protected]
Subject: Re: [MOSAIC-LoPoW/dash7-ap-open-source-stack] EZR32 configurable oscillator source for timer (#29)
Yes, I will add the HW_USE_LFXO/HFXO options into hal/chips/ezr32/CMakeLists.txt and generate a hal/chips/ezr32/inc/chip.h file with the selected results (with the default to define these two macros). Unless you would prefer some other method?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com//issues/29#issuecomment-214659309
from sub-iot-stack.
There is already a system in place to generate a header containing configuration parameters at the platform level, i think we can use this here as well.
See hal/platforms/EFM32GG_STK3700/CMakeLists.txt
for an example, specifically the PLATFORM_PARAM
, PLATFORM_OPTION
and PLATFORM_HEADER_DEFINE
commands. This wil generate a platform_defs.h
file in you build directory which contains those platform level config options. The chip implementation can then use these defines, based on the platform (board) used for building (ie platform having an external crystal or not).
from sub-iot-stack.
I assumed you wanted to keep /hal/chips/
decoupled from /hal/platforms/
as I couldn't find any existing dependency. By adding the dependency (including platform.h
), there is no need to create any CMake configuration option--either the platform has a LFXO or it doesn't.
from sub-iot-stack.
You are correct, it does not need to be configurable on a platform level and can be hardcoded in platform.h
. Thanks for the pull request!
from sub-iot-stack.
Related Issues (20)
- noise_logger.c compile fails - userbutton.h not found HOT 2
- sniffer.c compile fails - alp_cmd_handler.h not found HOT 1
- I2C on B_L072Z_LRWAN1 platform HOT 2
- Sensor Action example: assertion "is_fs_init_completed" failed HOT 1
- Sensor Action example: incorrect value in RTT logs HOT 4
- STM32 hw_get_unique_id() bug HOT 4
- Gateway software ? HOT 1
- RTT Logging does not work well with Sleep
- Performance results available? HOT 1
- Bug scheduling messages in the unsollicited response callback HOT 8
- Board resets when sending message using default access class at index 1 set to normal rate. HOT 6
- Scheduler hangs when scheduling a task through interrupt service routine HOT 1
- Unkown hardfault when running C++ on B-L072Z-LRWAN1 HOT 2
- Enforce .clang-format
- Assertion fail in timer_fired() HOT 5
- Some compiler flags that cause errors now that might be worth it to be fixed HOT 2
- ALP_ITF_ID_D7ASP interface config format doesn't seem to match spec (same with pyd7a impl) HOT 2
- alp_received_unsolicited_data_cb does not get called anymore HOT 5
- ALP layer: unsolicited commands are sent back in the response HOT 1
- Compilation Error while running make HOT 4
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 sub-iot-stack.