You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/10/30 19:49:36 UTC
[1/2] incubator-mynewt-larva git commit: Expand a bit on how to get
console integrated to project.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master ce6008417 -> 209290bfa
Expand a bit on how to get console integrated to project.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/cabe413a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/cabe413a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/cabe413a
Branch: refs/heads/master
Commit: cabe413a52edfa1f8215aefba1e056234334bc58
Parents: ce60084
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Oct 30 11:03:14 2015 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Oct 30 11:03:14 2015 -0700
----------------------------------------------------------------------
libs/console/README.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/cabe413a/libs/console/README.md
----------------------------------------------------------------------
diff --git a/libs/console/README.md b/libs/console/README.md
index a6101e2..2b73d29 100644
--- a/libs/console/README.md
+++ b/libs/console/README.md
@@ -4,6 +4,9 @@
# full - contains actual implemetation
# stub - has stubs for the API
#
-# So write of a library can use console_printf(), and builder of a
-# project can stub that out.
+# You can write of a library which uses console_printf(), and builder of a
+# project can select which one they'll use.
+# For the library/egg, list in the egg.yml console as the required capability.
+# Project builder will then include either libs/console/full or
+# libs/console/stub as their choice.
#
[2/2] incubator-mynewt-larva git commit: Trap on divide-by-zero.
Posted by ma...@apache.org.
Trap on divide-by-zero.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/209290bf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/209290bf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/209290bf
Branch: refs/heads/master
Commit: 209290bfa508fbc020c7264b9cc90bc53ecbce0e
Parents: cabe413
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Oct 30 11:49:09 2015 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Oct 30 11:49:09 2015 -0700
----------------------------------------------------------------------
libs/os/src/arch/cortex_m4/os_arch_arm.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/209290bf/libs/os/src/arch/cortex_m4/os_arch_arm.c
----------------------------------------------------------------------
diff --git a/libs/os/src/arch/cortex_m4/os_arch_arm.c b/libs/os/src/arch/cortex_m4/os_arch_arm.c
index 13a8ca4..3cc7ca1 100755
--- a/libs/os/src/arch/cortex_m4/os_arch_arm.c
+++ b/libs/os/src/arch/cortex_m4/os_arch_arm.c
@@ -158,6 +158,10 @@ os_arch_task_stack_init(struct os_task *t, os_stack_t *stack_top, int size)
void
os_arch_init(void)
{
+ /*
+ * Trap on divide-by-zero.
+ */
+ SCB->CCR |= SCB_CCR_DIV_0_TRP_Msk;
os_init_idle_task();
}
@@ -227,9 +231,9 @@ os_arch_os_init(void)
/**
* os systick init
- *
+ *
* Initializes systick for the MCU
- *
+ *
* @param os_tick_usecs The number of microseconds in an os time tick
*/
static void
@@ -286,7 +290,7 @@ os_arch_os_start(void)
err = OS_ERR_IN_ISR;
if (__get_IPSR() == 0) {
- /*
+ /*
* The following switch statement is really just a sanity check to
* insure that the os initialization routine was called prior to the
* os start routine.