You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ad...@apache.org on 2016/02/25 08:37:13 UTC
incubator-mynewt-site git commit: Pull request #7 from sterlinghughes
merged
Repository: incubator-mynewt-site
Updated Branches:
refs/heads/asf-site eb0d660bf -> 175a2c18b
Pull request #7 from sterlinghughes merged
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/175a2c18
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/175a2c18
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/175a2c18
Branch: refs/heads/asf-site
Commit: 175a2c18b3edd2699b45276d105cdf30ba019fa5
Parents: eb0d660
Author: aditihilbert <ad...@runtime.io>
Authored: Wed Feb 24 23:37:00 2016 -0800
Committer: aditihilbert <ad...@runtime.io>
Committed: Wed Feb 24 23:37:00 2016 -0800
----------------------------------------------------------------------
mkdocs/search_index.json | 36 ++--
os/get_started/introduction/index.html | 176 +++++++++----------
os/modules/imgmgr/imgmgr_module_init/index.html | 2 +-
os/modules/imgmgr/imgr_ver_parse/index.html | 2 +-
os/modules/imgmgr/imgr_ver_str/index.html | 2 +-
5 files changed, 101 insertions(+), 117 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/175a2c18/mkdocs/search_index.json
----------------------------------------------------------------------
diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json
index 6340da7..ec44ed5 100644
--- a/mkdocs/search_index.json
+++ b/mkdocs/search_index.json
@@ -42,7 +42,7 @@
},
{
"location": "/os/get_started/introduction/",
- "text": "Introduction\n\n\nWhat is Apache Mynewt?\n\n\nApache Mynewt is an Operating System for Microcontrollers (MCUs.) \n\n\nApache Mynewt is very well suited for developing constrained IoT \ndevices. Typical use cases for Apache Mynewt include:\n\n\n\n\nLights \n\n\nLocks\n\n\nWearables\n\n\n\n\nBasic components in the ecosystem\n\n\n\n\n\n\nNewtOS is an open-source RTOS (Real Time Operating System) that\nworks on a variety of hardware. The goal is to develop a pre-emptive,\nmultitasking OS that is highly modular, making it possible to mix\nand match components to enable desired features and capabilities\non multiple hardware architectures. Examples of components being\nworked on are the Core RTOS, a flash file system, utility functions,\na variety of board support packages, packages of microcontrollers\netc.\n\n\n\n\n\n\nNetwork protocol stacks such as Bluetooth Low Energy, and more\n\n\n\n\n\n\nNewt Tool helps you mix the specific packages for the combination\nof h
ardware and low-level embedded architecture features of the\nuser's choice and generate the corresponding run-time image based\non the NewtOS. It provides the infrastructure to manage and build\nfor different CPU architectures, memory units, board support packages\netc., allowing a user to formulate the contents according to the\nlow-level features needed by his or her project.\n\n\n\n\n\n\nTerminology\n\n\nA Mynewt user starts with a project in mind that defines the\napplication or utility that he or she wants to implement on an\nembedded device. Making an LED blink on an electronics prototyping\nboard is a common starter project. Enabling a BLE (Bluetooth Low\nEnergy) peripheral mode on a development board is a more complex\nproject. Specifying a project requires naming it, at the very least,\nand then adding the desired properties or attributes. In order to\nactualize a project, it needs to be applied to a target which is\nessentially a combination of some specified hardware and
the execution\nenvironment.\n\n\nIn the mynewt lifecycle, a project grows in a nest. A nest may house\nmultiple projects. The nest is, therefore, a repository where various\ncomponent packages for one or more projects reside. Each package\nis an egg (naturally!). However, in the world of Mynewt an egg may\nconsist of other eggs! For example, the starter project Blinky is\nan egg consisting of several constituent eggs that enable core\nfeatures. The egg form is suitable for elemental units of code as\nit explicitly exposes characteristics such as dependencies, versions,\ncapabilities, requirements etc., thus making assembling appropriate\ncomponents for a project and building an image for it easy to follow,\nmodular, and robust.\n\n\nA nest can be given any name. For example, you will see a nest named\n\"tadpole\" in Mynewt\n(\nhttps://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-tadpole.git\n).\nIt contains all the core libraries of the operating system for the\nnative platfor
m which currently supports compilation on Mac OS X.\nThe core libraries are contained in the form of eggs where an egg\nis a basic unit of implementation of any aspect of the RTOS. The\neggs are distributed in the following directory structure inside\nthe nest:\n\n\n\n\nlibs: contains the two eggs \nos\n and \ntestutil\n * hw: contains\nthree eggs - (i) \nhal\n which has the abstraction layer (HAL) API\ndefinitions that all BSP and MCU implementations must support, (ii)\n\n/mcu/native\n which in an MCU implementation for the native platform\n(a simulator, in this case), and (iii) \nbsp/native\n which is a BSP\nimplementation for the native platform * compiler: contains the\n\nsim\n egg which bundles the compiler specifications for the native\nplatform.\n\n\n\n\nLet's explore this sample nest a bit further. The \nlibs/os\n egg\ncontains code for scheduler, process/thread/memory management,\nsemaphores etc. It is the core RTOS which ports to all supported\nchip platforms.The \nlibs/te
stutil\n egg contains code for testing\npackages on hardware or simulated environment. The \nhw/hal\n egg\ncontains header files that provide abstraction for physical hardware\ncomponents such as GPIO (general purpose input/output), network\nadapters, timers, and UARTs. This \nhw/hal\n egg is an MCU peripheral\nabstraction designed to make it easy to port to different MCUs\n(microcontrollers). The \nhw/mcu/native\n egg contains code for\nmicrocontroller operations on the native platform. The \nhw/bsp/native\n\negg contains the board support package for the native platform. And\nfinally, the sixth egg \nsim\n contains the compiler specifications\nsuch as path and flags. Currently the compilation is supported on\nMac OS X.\n\n\nYou can see another nest in the mynewt ecosystem called the \"larva\".\nIt was spawned from the skeletal \"tadpole\" nest using the newt tool.\nSpawning is easy - \n$ newt create nest \nyour_nest_name\n. \"larva\"\nis the developer's test repository containing
all sorts of eggs\nbeing written and incubated, including ones to enhance the core\noperating system which should eventually make their way into the\n\"tadpole\" nest. There is a \nhatch_tadpole\n script to update the\n\"tadpole\" nest when the core OS related eggs in \"larva\" are ready.\n\n\nThere is a third nest named \"newt\" that contains all the eggs needed\nto support the build and release process of mynewt software. In the\nfuture, there will also be pre-built nests for certain common\nhardware devices to enable a user to quickly get started with a\nproject.",
+ "text": "Introduction\n\n\nWelcome to Apache Mynewt\n\n\nApache Mynewt is an Operating System that makes it easy to develop\napplications for Microcontroller environments where power and cost \nare driving factors. Examples of these devices are connected locks, \nlights, and wearables.\n\n\nMicrocontroller environments have a number of characteristics that \nmakes the operating system requirements for them unique: \n\n\n\n\n\n\nLow memory footprint: memory on these systems is anywhere from \n8-16KB on the low end to 16MB on the high end.\n\n\n\n\n\n\nReduced code size: code often runs out of flash, and total \navailable code size ranges from 64-128KB up to 16-32MB.\n\n\n\n\n\n\nLow processing speed: processor speeds are anywhere from 10-12MHz\nup to 160-200MHz. \n\n\n\n\n\n\nLow power operation: due to battery requirements, devices have to \noperate in mostly sleeping mode in order to achieve battery \nrequirements.\n\n\n\n\n\n\nHowever, with more and more devices gett
ing connected, the complexity\nof these systems is increasing. Typically, products built around \nthese microcontrollers have to deal with a number of tasks: \n\n\n\n\n\n\nNetworking Stacks: Bluetooth Low Energy and Thread\n\n\n\n\n\n\nPeripherals: PWM to drive motors, ADCs to measure sensor data, RTCs\nto keep time.\n\n\n\n\n\n\nScheduled Processing: actions must happen on a calendared or \nperiodic basis.\n\n\n\n\n\n\nApache Mynewt makes it easy to accomplish this, by providing a complete\nOperating System for constrained devices, including:\n\n\n\n\n\n\nA fully open-source Bluetooth Low Energy stack with both Host and \nController implementations. \n\n\n\n\n\n\nA pre-emptive, multi-tasking Real Time operating system kernel\n\n\n\n\n\n\nA Hardware Abstraction Layer (HAL) that abstracts the MCU's \nperipheral functions, allowing developers to easily write cross-platform\ncode.\n\n\n\n\n\n\nIn order to provide all this functionality, and operate in an extremely \nlow resource envir
onment, Mynewt provides a very fine-grained source \npackage management and build system, called Newt.\n\n\nWhen you start your Mynewt application, you first create a new \napplication with the newt tool: \n\n\n$ newt new my_app\nDownloading application skeleton from https://git-wip-us.apache.org/repos/asf/incubator-mynewt-tadpole.git... ok!\nApplication my_app successfully created in /Users/mynewt/dev/my_app\n$ \n\n\n\n\nThis new application contains the core of the operating system, \nand the HW abstraction layer. All of this fits into less than 5KB \nof compiled code size.\n\n\nOnce the application is created, you can then install the packages\nyou need, and Mynewt will automatically download them, and their \ndependencies into your application.\n\n\nAs an example, let's install a file system into the \"my_app\" application.\nFirst, we'll search for file system packages: \n\n\n$ newt pkg search fs\nPackage list larva has package fs/nffs@0.8.0\nPackage list larva has package fs/f
s@0.0.0\nPackage list larva has package project/ffs2native@0.0.0\n\n\n\n\nWe can then install the nffs package (Newtron Flash File System), using\nnewt: \n\n\n$ newt pkg install fs/nffs\nDownloading larva from https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/master... ok!\nInstalling fs/nffs\nInstalling fs/fs\nInstallation was a success!\n\n\n\n\nAnd it's that simple! Mynewt contains all the packages and reusable\nsoftware components you need to develop a device using a 32-bit \nMicrocontroller. And by providing a robust package management and \nbuild system, Mynewt allows you to scale from 5KB of code size, all \nthe way to MBs of compiled code size.",
"title": "Introduction"
},
{
@@ -51,19 +51,9 @@
"title": "Introduction"
},
{
- "location": "/os/get_started/introduction/#what-is-apache-mynewt",
- "text": "Apache Mynewt is an Operating System for Microcontrollers (MCUs.) Apache Mynewt is very well suited for developing constrained IoT \ndevices. Typical use cases for Apache Mynewt include: Lights Locks Wearables",
- "title": "What is Apache Mynewt?"
- },
- {
- "location": "/os/get_started/introduction/#basic-components-in-the-ecosystem",
- "text": "NewtOS is an open-source RTOS (Real Time Operating System) that\nworks on a variety of hardware. The goal is to develop a pre-emptive,\nmultitasking OS that is highly modular, making it possible to mix\nand match components to enable desired features and capabilities\non multiple hardware architectures. Examples of components being\nworked on are the Core RTOS, a flash file system, utility functions,\na variety of board support packages, packages of microcontrollers\netc. Network protocol stacks such as Bluetooth Low Energy, and more Newt Tool helps you mix the specific packages for the combination\nof hardware and low-level embedded architecture features of the\nuser's choice and generate the corresponding run-time image based\non the NewtOS. It provides the infrastructure to manage and build\nfor different CPU architectures, memory units, board support packages\netc., allowing a user to formulate the contents according to the\nlow-level features needed b
y his or her project.",
- "title": "Basic components in the ecosystem"
- },
- {
- "location": "/os/get_started/introduction/#terminology",
- "text": "A Mynewt user starts with a project in mind that defines the\napplication or utility that he or she wants to implement on an\nembedded device. Making an LED blink on an electronics prototyping\nboard is a common starter project. Enabling a BLE (Bluetooth Low\nEnergy) peripheral mode on a development board is a more complex\nproject. Specifying a project requires naming it, at the very least,\nand then adding the desired properties or attributes. In order to\nactualize a project, it needs to be applied to a target which is\nessentially a combination of some specified hardware and the execution\nenvironment. In the mynewt lifecycle, a project grows in a nest. A nest may house\nmultiple projects. The nest is, therefore, a repository where various\ncomponent packages for one or more projects reside. Each package\nis an egg (naturally!). However, in the world of Mynewt an egg may\nconsist of other eggs! For example, the starter project Blinky is\nan egg consisting o
f several constituent eggs that enable core\nfeatures. The egg form is suitable for elemental units of code as\nit explicitly exposes characteristics such as dependencies, versions,\ncapabilities, requirements etc., thus making assembling appropriate\ncomponents for a project and building an image for it easy to follow,\nmodular, and robust. A nest can be given any name. For example, you will see a nest named\n\"tadpole\" in Mynewt\n( https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-tadpole.git ).\nIt contains all the core libraries of the operating system for the\nnative platform which currently supports compilation on Mac OS X.\nThe core libraries are contained in the form of eggs where an egg\nis a basic unit of implementation of any aspect of the RTOS. The\neggs are distributed in the following directory structure inside\nthe nest: libs: contains the two eggs os and testutil * hw: contains\nthree eggs - (i) hal which has the abstraction layer (HAL) API\ndefini
tions that all BSP and MCU implementations must support, (ii) /mcu/native which in an MCU implementation for the native platform\n(a simulator, in this case), and (iii) bsp/native which is a BSP\nimplementation for the native platform * compiler: contains the sim egg which bundles the compiler specifications for the native\nplatform. Let's explore this sample nest a bit further. The libs/os egg\ncontains code for scheduler, process/thread/memory management,\nsemaphores etc. It is the core RTOS which ports to all supported\nchip platforms.The libs/testutil egg contains code for testing\npackages on hardware or simulated environment. The hw/hal egg\ncontains header files that provide abstraction for physical hardware\ncomponents such as GPIO (general purpose input/output), network\nadapters, timers, and UARTs. This hw/hal egg is an MCU peripheral\nabstraction designed to make it easy to port to different MCUs\n(microcontrollers). The hw/mcu/native egg contains code for
\nmicrocontroller operations on the native platform. The hw/bsp/native \negg contains the board support package for the native platform. And\nfinally, the sixth egg sim contains the compiler specifications\nsuch as path and flags. Currently the compilation is supported on\nMac OS X. You can see another nest in the mynewt ecosystem called the \"larva\".\nIt was spawned from the skeletal \"tadpole\" nest using the newt tool.\nSpawning is easy - $ newt create nest your_nest_name . \"larva\"\nis the developer's test repository containing all sorts of eggs\nbeing written and incubated, including ones to enhance the core\noperating system which should eventually make their way into the\n\"tadpole\" nest. There is a hatch_tadpole script to update the\n\"tadpole\" nest when the core OS related eggs in \"larva\" are ready. There is a third nest named \"newt\" that contains all the eggs needed\nto support the build and release process of mynewt software. In the\nfuture, there will al
so be pre-built nests for certain common\nhardware devices to enable a user to quickly get started with a\nproject.",
- "title": "Terminology"
+ "location": "/os/get_started/introduction/#welcome-to-apache-mynewt",
+ "text": "Apache Mynewt is an Operating System that makes it easy to develop\napplications for Microcontroller environments where power and cost \nare driving factors. Examples of these devices are connected locks, \nlights, and wearables. Microcontroller environments have a number of characteristics that \nmakes the operating system requirements for them unique: Low memory footprint: memory on these systems is anywhere from \n8-16KB on the low end to 16MB on the high end. Reduced code size: code often runs out of flash, and total \navailable code size ranges from 64-128KB up to 16-32MB. Low processing speed: processor speeds are anywhere from 10-12MHz\nup to 160-200MHz. Low power operation: due to battery requirements, devices have to \noperate in mostly sleeping mode in order to achieve battery \nrequirements. However, with more and more devices getting connected, the complexity\nof these systems is increasing. Typically, products built around \nthe
se microcontrollers have to deal with a number of tasks: Networking Stacks: Bluetooth Low Energy and Thread Peripherals: PWM to drive motors, ADCs to measure sensor data, RTCs\nto keep time. Scheduled Processing: actions must happen on a calendared or \nperiodic basis. Apache Mynewt makes it easy to accomplish this, by providing a complete\nOperating System for constrained devices, including: A fully open-source Bluetooth Low Energy stack with both Host and \nController implementations. A pre-emptive, multi-tasking Real Time operating system kernel A Hardware Abstraction Layer (HAL) that abstracts the MCU's \nperipheral functions, allowing developers to easily write cross-platform\ncode. In order to provide all this functionality, and operate in an extremely \nlow resource environment, Mynewt provides a very fine-grained source \npackage management and build system, called Newt. When you start your Mynewt application, you first create a new \napplication w
ith the newt tool: $ newt new my_app\nDownloading application skeleton from https://git-wip-us.apache.org/repos/asf/incubator-mynewt-tadpole.git... ok!\nApplication my_app successfully created in /Users/mynewt/dev/my_app\n$ This new application contains the core of the operating system, \nand the HW abstraction layer. All of this fits into less than 5KB \nof compiled code size. Once the application is created, you can then install the packages\nyou need, and Mynewt will automatically download them, and their \ndependencies into your application. As an example, let's install a file system into the \"my_app\" application.\nFirst, we'll search for file system packages: $ newt pkg search fs\nPackage list larva has package fs/nffs@0.8.0\nPackage list larva has package fs/fs@0.0.0\nPackage list larva has package project/ffs2native@0.0.0 We can then install the nffs package (Newtron Flash File System), using\nnewt: $ newt pkg install fs/nffs\nDownloading larva from https://git-
wip-us.apache.org/repos/asf/incubator-mynewt-larva/master... ok!\nInstalling fs/nffs\nInstalling fs/fs\nInstallation was a success! And it's that simple! Mynewt contains all the packages and reusable\nsoftware components you need to develop a device using a 32-bit \nMicrocontroller. And by providing a robust package management and \nbuild system, Mynewt allows you to scale from 5KB of code size, all \nthe way to MBs of compiled code size.",
+ "title": "Welcome to Apache Mynewt"
},
{
"location": "/os/get_started/project1/",
@@ -2967,13 +2957,13 @@
},
{
"location": "/os/modules/imgmgr/imgmgr_module_init/",
- "text": "console_init \n\n\n int\n imgmgr_module_init(void)\n\n\n\n\nRegisters image manager commands with newtmgr. This function should be called while initializing the project, preferably after newtmgr itself has been initialized.\n\n\nArguments\n\n\nN/A\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nExample\n\n\nint main(int argc, char **argv)\n{\n ...\n\n nmgr_task_init(NEWTMGR_TASK_PRIO, newtmgr_stack, NEWTMGR_TASK_STACK_SIZE);\n imgmgr_module_init();\n\n ...\n}",
+ "text": "imgmgr_module_init \n\n\n int\n imgmgr_module_init(void)\n\n\n\n\nRegisters image manager commands with newtmgr. This function should be called while initializing the project, preferably after newtmgr itself has been initialized.\n\n\nArguments\n\n\nN/A\n\n\nReturned values\n\n\nList any values returned.\nError codes?\n\n\nNotes\n\n\nExample\n\n\nint main(int argc, char **argv)\n{\n ...\n\n nmgr_task_init(NEWTMGR_TASK_PRIO, newtmgr_stack, NEWTMGR_TASK_STACK_SIZE);\n imgmgr_module_init();\n\n ...\n}",
"title": "imgmgr_module_init"
},
{
- "location": "/os/modules/imgmgr/imgmgr_module_init/#console_init",
+ "location": "/os/modules/imgmgr/imgmgr_module_init/#imgmgr_module_init",
"text": "int\n imgmgr_module_init(void) Registers image manager commands with newtmgr. This function should be called while initializing the project, preferably after newtmgr itself has been initialized.",
- "title": " console_init "
+ "title": " imgmgr_module_init "
},
{
"location": "/os/modules/imgmgr/imgmgr_module_init/#arguments",
@@ -2997,13 +2987,13 @@
},
{
"location": "/os/modules/imgmgr/imgr_ver_parse/",
- "text": "console_init \n\n\n int\n imgr_ver_parse(char *src, struct image_version *ver)\n\n\n\n\nParses character string containing image version number \nsrc\n and writes that to \nver\n. Version number string should be in format \n.\n.\n.\n. Major and minor numbers should be within range 0-255, revision between 0-65535 and build_number 0-4294967295.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nsrc\n\n\nPointer to C string that contains version number being parsed\n\n\n\n\n\n\nver\n\n\nImage version number structure containing the returned value\n\n\n\n\n\n\n\n\nReturned values\n\n\n0 on success and \n0 if version number string could not be parsed.\n\n\nNotes\n\n\nNumbers within the string are separated by \n.\n. The first number is the major number, and must be provided. Rest of the numbers (minor etc.) are optional.\n\n\nExample\n\n\nint main(int argc, char **argv)\n{\n struct image_version hdr_ver;\n int rc;\n ...\n\n
rc = imgr_ver_parse(argv[3], \nhdr_ver);\n if (rc != 0) {\n print_usage(stderr);\n return 1;\n }\n ...\n}",
+ "text": "imgr_ver_parse \n\n\n int\n imgr_ver_parse(char *src, struct image_version *ver)\n\n\n\n\nParses character string containing image version number \nsrc\n and writes that to \nver\n. Version number string should be in format \n.\n.\n.\n. Major and minor numbers should be within range 0-255, revision between 0-65535 and build_number 0-4294967295.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nsrc\n\n\nPointer to C string that contains version number being parsed\n\n\n\n\n\n\nver\n\n\nImage version number structure containing the returned value\n\n\n\n\n\n\n\n\nReturned values\n\n\n0 on success and \n0 if version number string could not be parsed.\n\n\nNotes\n\n\nNumbers within the string are separated by \n.\n. The first number is the major number, and must be provided. Rest of the numbers (minor etc.) are optional.\n\n\nExample\n\n\nint main(int argc, char **argv)\n{\n struct image_version hdr_ver;\n int rc;\n ...\n
\n rc = imgr_ver_parse(argv[3], \nhdr_ver);\n if (rc != 0) {\n print_usage(stderr);\n return 1;\n }\n ...\n}",
"title": "imgr_ver_parse"
},
{
- "location": "/os/modules/imgmgr/imgr_ver_parse/#console_init",
+ "location": "/os/modules/imgmgr/imgr_ver_parse/#imgr_ver_parse",
"text": "int\n imgr_ver_parse(char *src, struct image_version *ver) Parses character string containing image version number src and writes that to ver . Version number string should be in format . . . . Major and minor numbers should be within range 0-255, revision between 0-65535 and build_number 0-4294967295.",
- "title": " console_init "
+ "title": " imgr_ver_parse "
},
{
"location": "/os/modules/imgmgr/imgr_ver_parse/#arguments",
@@ -3027,13 +3017,13 @@
},
{
"location": "/os/modules/imgmgr/imgr_ver_str/",
- "text": "console_init \n\n\n int\n imgr_ver_str(struct image_version *ver, char *dst)\n\n\n\n\nTakes the version string from \nver\n and formats that into a printable string to \ndst\n. Caller must make sure that \ndst\n contains enough space to hold maximum lenght version string. The convenience defininition for max length version string is named \nIMGMGR_MAX_VER_STR\n.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nver\n\n\nImage version number structure containing the value being formatted\n\n\n\n\n\n\ndst\n\n\nPointer to C string where results will be stored\n\n\n\n\n\n\n\n\nReturned values\n\n\nFunction returns the number of characters filled into the destination string.\n\n\nNotes\n\n\nIf build number is \n0\n in image version structure, it will be left out of the string.\n\n\nExample\n\n\nstatic void\nimgr_ver_jsonstr(struct json_encoder *enc, char *key,\n struct image_version *ver)\n{\n char ver_str[IMGMGR_MAX_VER_STR];\n
int ver_len;\n ...\n ver_len = imgr_ver_str(ver, ver_str)\n ...\n}",
+ "text": "imgr_ver_str \n\n\n int\n imgr_ver_str(struct image_version *ver, char *dst)\n\n\n\n\nTakes the version string from \nver\n and formats that into a printable string to \ndst\n. Caller must make sure that \ndst\n contains enough space to hold maximum lenght version string. The convenience defininition for max length version string is named \nIMGMGR_MAX_VER_STR\n.\n\n\nArguments\n\n\n\n\n\n\n\n\nArguments\n\n\nDescription\n\n\n\n\n\n\n\n\n\n\nver\n\n\nImage version number structure containing the value being formatted\n\n\n\n\n\n\ndst\n\n\nPointer to C string where results will be stored\n\n\n\n\n\n\n\n\nReturned values\n\n\nFunction returns the number of characters filled into the destination string.\n\n\nNotes\n\n\nIf build number is \n0\n in image version structure, it will be left out of the string.\n\n\nExample\n\n\nstatic void\nimgr_ver_jsonstr(struct json_encoder *enc, char *key,\n struct image_version *ver)\n{\n char ver_str[IMGMGR_MAX_VER_STR];\n
int ver_len;\n ...\n ver_len = imgr_ver_str(ver, ver_str)\n ...\n}",
"title": "imgr_ver_str"
},
{
- "location": "/os/modules/imgmgr/imgr_ver_str/#console_init",
+ "location": "/os/modules/imgmgr/imgr_ver_str/#imgr_ver_str",
"text": "int\n imgr_ver_str(struct image_version *ver, char *dst) Takes the version string from ver and formats that into a printable string to dst . Caller must make sure that dst contains enough space to hold maximum lenght version string. The convenience defininition for max length version string is named IMGMGR_MAX_VER_STR .",
- "title": " console_init "
+ "title": " imgr_ver_str "
},
{
"location": "/os/modules/imgmgr/imgr_ver_str/#arguments",
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/175a2c18/os/get_started/introduction/index.html
----------------------------------------------------------------------
diff --git a/os/get_started/introduction/index.html b/os/get_started/introduction/index.html
index 657159c..6c37900 100644
--- a/os/get_started/introduction/index.html
+++ b/os/get_started/introduction/index.html
@@ -221,109 +221,103 @@
</div>
<h2 id="introduction">Introduction<a class="headerlink" href="#introduction" title="Permanent link">¶</a></h2>
-<h3 id="what-is-apache-mynewt">What is Apache Mynewt?<a class="headerlink" href="#what-is-apache-mynewt" title="Permanent link">¶</a></h3>
-<p>Apache Mynewt is an Operating System for Microcontrollers (MCUs.) </p>
-<p>Apache Mynewt is very well suited for developing constrained IoT
-devices. Typical use cases for Apache Mynewt include:</p>
+<h3 id="welcome-to-apache-mynewt">Welcome to Apache Mynewt<a class="headerlink" href="#welcome-to-apache-mynewt" title="Permanent link">¶</a></h3>
+<p>Apache Mynewt is an Operating System that makes it easy to develop
+applications for Microcontroller environments where power and cost
+are driving factors. Examples of these devices are connected locks,
+lights, and wearables.</p>
+<p>Microcontroller environments have a number of characteristics that
+makes the operating system requirements for them unique: </p>
<ul>
-<li>Lights </li>
-<li>Locks</li>
-<li>Wearables</li>
+<li>
+<p>Low memory footprint: memory on these systems is anywhere from
+8-16KB on the low end to 16MB on the high end.</p>
+</li>
+<li>
+<p>Reduced code size: code often runs out of flash, and total
+available code size ranges from 64-128KB up to 16-32MB.</p>
+</li>
+<li>
+<p>Low processing speed: processor speeds are anywhere from 10-12MHz
+up to 160-200MHz. </p>
+</li>
+<li>
+<p>Low power operation: due to battery requirements, devices have to
+operate in mostly sleeping mode in order to achieve battery
+requirements.</p>
+</li>
</ul>
-<h3 id="basic-components-in-the-ecosystem">Basic components in the ecosystem<a class="headerlink" href="#basic-components-in-the-ecosystem" title="Permanent link">¶</a></h3>
+<p>However, with more and more devices getting connected, the complexity
+of these systems is increasing. Typically, products built around
+these microcontrollers have to deal with a number of tasks: </p>
<ul>
<li>
-<p>NewtOS is an open-source RTOS (Real Time Operating System) that
-works on a variety of hardware. The goal is to develop a pre-emptive,
-multitasking OS that is highly modular, making it possible to mix
-and match components to enable desired features and capabilities
-on multiple hardware architectures. Examples of components being
-worked on are the Core RTOS, a flash file system, utility functions,
-a variety of board support packages, packages of microcontrollers
-etc.</p>
+<p>Networking Stacks: Bluetooth Low Energy and Thread</p>
</li>
<li>
-<p>Network protocol stacks such as Bluetooth Low Energy, and more</p>
+<p>Peripherals: PWM to drive motors, ADCs to measure sensor data, RTCs
+to keep time.</p>
</li>
<li>
-<p>Newt Tool helps you mix the specific packages for the combination
-of hardware and low-level embedded architecture features of the
-user's choice and generate the corresponding run-time image based
-on the NewtOS. It provides the infrastructure to manage and build
-for different CPU architectures, memory units, board support packages
-etc., allowing a user to formulate the contents according to the
-low-level features needed by his or her project.</p>
+<p>Scheduled Processing: actions must happen on a calendared or
+periodic basis.</p>
</li>
</ul>
-<h3 id="terminology">Terminology<a class="headerlink" href="#terminology" title="Permanent link">¶</a></h3>
-<p>A Mynewt user starts with a project in mind that defines the
-application or utility that he or she wants to implement on an
-embedded device. Making an LED blink on an electronics prototyping
-board is a common starter project. Enabling a BLE (Bluetooth Low
-Energy) peripheral mode on a development board is a more complex
-project. Specifying a project requires naming it, at the very least,
-and then adding the desired properties or attributes. In order to
-actualize a project, it needs to be applied to a target which is
-essentially a combination of some specified hardware and the execution
-environment.</p>
-<p>In the mynewt lifecycle, a project grows in a nest. A nest may house
-multiple projects. The nest is, therefore, a repository where various
-component packages for one or more projects reside. Each package
-is an egg (naturally!). However, in the world of Mynewt an egg may
-consist of other eggs! For example, the starter project Blinky is
-an egg consisting of several constituent eggs that enable core
-features. The egg form is suitable for elemental units of code as
-it explicitly exposes characteristics such as dependencies, versions,
-capabilities, requirements etc., thus making assembling appropriate
-components for a project and building an image for it easy to follow,
-modular, and robust.</p>
-<p>A nest can be given any name. For example, you will see a nest named
-"tadpole" in Mynewt
-(<a href="https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-tadpole.git">https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-tadpole.git</a>).
-It contains all the core libraries of the operating system for the
-native platform which currently supports compilation on Mac OS X.
-The core libraries are contained in the form of eggs where an egg
-is a basic unit of implementation of any aspect of the RTOS. The
-eggs are distributed in the following directory structure inside
-the nest:</p>
+<p>Apache Mynewt makes it easy to accomplish this, by providing a complete
+Operating System for constrained devices, including:</p>
<ul>
-<li>libs: contains the two eggs <code>os</code> and <code>testutil</code> * hw: contains
-three eggs - (i) <code>hal</code> which has the abstraction layer (HAL) API
-definitions that all BSP and MCU implementations must support, (ii)
-<code>/mcu/native</code> which in an MCU implementation for the native platform
-(a simulator, in this case), and (iii) <code>bsp/native</code> which is a BSP
-implementation for the native platform * compiler: contains the
-<code>sim</code> egg which bundles the compiler specifications for the native
-platform.</li>
+<li>
+<p>A fully open-source Bluetooth Low Energy stack with both Host and
+Controller implementations. </p>
+</li>
+<li>
+<p>A pre-emptive, multi-tasking Real Time operating system kernel</p>
+</li>
+<li>
+<p>A Hardware Abstraction Layer (HAL) that abstracts the MCU's
+peripheral functions, allowing developers to easily write cross-platform
+code.</p>
+</li>
</ul>
-<p>Let's explore this sample nest a bit further. The <code>libs/os</code> egg
-contains code for scheduler, process/thread/memory management,
-semaphores etc. It is the core RTOS which ports to all supported
-chip platforms.The <code>libs/testutil</code> egg contains code for testing
-packages on hardware or simulated environment. The <code>hw/hal</code> egg
-contains header files that provide abstraction for physical hardware
-components such as GPIO (general purpose input/output), network
-adapters, timers, and UARTs. This <code>hw/hal</code> egg is an MCU peripheral
-abstraction designed to make it easy to port to different MCUs
-(microcontrollers). The <code>hw/mcu/native</code> egg contains code for
-microcontroller operations on the native platform. The <code>hw/bsp/native</code>
-egg contains the board support package for the native platform. And
-finally, the sixth egg <code>sim</code> contains the compiler specifications
-such as path and flags. Currently the compilation is supported on
-Mac OS X.</p>
-<p>You can see another nest in the mynewt ecosystem called the "larva".
-It was spawned from the skeletal "tadpole" nest using the newt tool.
-Spawning is easy - <code>$ newt create nest <your_nest_name></code>. "larva"
-is the developer's test repository containing all sorts of eggs
-being written and incubated, including ones to enhance the core
-operating system which should eventually make their way into the
-"tadpole" nest. There is a <code>hatch_tadpole</code> script to update the
-"tadpole" nest when the core OS related eggs in "larva" are ready.</p>
-<p>There is a third nest named "newt" that contains all the eggs needed
-to support the build and release process of mynewt software. In the
-future, there will also be pre-built nests for certain common
-hardware devices to enable a user to quickly get started with a
-project.</p>
+<p>In order to provide all this functionality, and operate in an extremely
+low resource environment, Mynewt provides a very fine-grained source
+package management and build system, called Newt.</p>
+<p>When you start your Mynewt application, you first create a new
+application with the newt tool: </p>
+<pre><code class="no-highlight">$ newt new my_app
+Downloading application skeleton from https://git-wip-us.apache.org/repos/asf/incubator-mynewt-tadpole.git... ok!
+Application my_app successfully created in /Users/mynewt/dev/my_app
+$
+</code></pre>
+
+<p>This new application contains the core of the operating system,
+and the HW abstraction layer. All of this fits into less than 5KB
+of compiled code size.</p>
+<p>Once the application is created, you can then install the packages
+you need, and Mynewt will automatically download them, and their
+dependencies into your application.</p>
+<p>As an example, let's install a file system into the "my_app" application.
+First, we'll search for file system packages: </p>
+<pre><code class="no-highlight">$ newt pkg search fs
+Package list larva has package fs/nffs@0.8.0
+Package list larva has package fs/fs@0.0.0
+Package list larva has package project/ffs2native@0.0.0
+</code></pre>
+
+<p>We can then install the nffs package (Newtron Flash File System), using
+newt: </p>
+<pre><code class="no-highlight">$ newt pkg install fs/nffs
+Downloading larva from https://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/master... ok!
+Installing fs/nffs
+Installing fs/fs
+Installation was a success!
+</code></pre>
+
+<p>And it's that simple! Mynewt contains all the packages and reusable
+software components you need to develop a device using a 32-bit
+Microcontroller. And by providing a robust package management and
+build system, Mynewt allows you to scale from 5KB of code size, all
+the way to MBs of compiled code size.</p>
</div>
</div>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/175a2c18/os/modules/imgmgr/imgmgr_module_init/index.html
----------------------------------------------------------------------
diff --git a/os/modules/imgmgr/imgmgr_module_init/index.html b/os/modules/imgmgr/imgmgr_module_init/index.html
index 824176d..f2b00dc 100644
--- a/os/modules/imgmgr/imgmgr_module_init/index.html
+++ b/os/modules/imgmgr/imgmgr_module_init/index.html
@@ -376,7 +376,7 @@
<hr/>
</div>
- <h2 id="console_init"><font color="#F2853F" style="font-size:24pt"> console_init </font><a class="headerlink" href="#console_init" title="Permanent link">¶</a></h2>
+ <h2 id="imgmgr_module_init"><font color="#F2853F" style="font-size:24pt"> imgmgr_module_init </font><a class="headerlink" href="#imgmgr_module_init" title="Permanent link">¶</a></h2>
<pre><code class="no-highlight"> int
imgmgr_module_init(void)
</code></pre>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/175a2c18/os/modules/imgmgr/imgr_ver_parse/index.html
----------------------------------------------------------------------
diff --git a/os/modules/imgmgr/imgr_ver_parse/index.html b/os/modules/imgmgr/imgr_ver_parse/index.html
index ec736c8..5ebe089 100644
--- a/os/modules/imgmgr/imgr_ver_parse/index.html
+++ b/os/modules/imgmgr/imgr_ver_parse/index.html
@@ -376,7 +376,7 @@
<hr/>
</div>
- <h2 id="console_init"><font color="#F2853F" style="font-size:24pt"> console_init </font><a class="headerlink" href="#console_init" title="Permanent link">¶</a></h2>
+ <h2 id="imgr_ver_parse"><font color="#F2853F" style="font-size:24pt"> imgr_ver_parse </font><a class="headerlink" href="#imgr_ver_parse" title="Permanent link">¶</a></h2>
<pre><code class="no-highlight"> int
imgr_ver_parse(char *src, struct image_version *ver)
</code></pre>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/175a2c18/os/modules/imgmgr/imgr_ver_str/index.html
----------------------------------------------------------------------
diff --git a/os/modules/imgmgr/imgr_ver_str/index.html b/os/modules/imgmgr/imgr_ver_str/index.html
index 82af245..c185fc3 100644
--- a/os/modules/imgmgr/imgr_ver_str/index.html
+++ b/os/modules/imgmgr/imgr_ver_str/index.html
@@ -376,7 +376,7 @@
<hr/>
</div>
- <h2 id="console_init"><font color="#F2853F" style="font-size:24pt"> console_init </font><a class="headerlink" href="#console_init" title="Permanent link">¶</a></h2>
+ <h2 id="imgr_ver_str"><font color="#F2853F" style="font-size:24pt"> imgr_ver_str </font><a class="headerlink" href="#imgr_ver_str" title="Permanent link">¶</a></h2>
<pre><code class="no-highlight"> int
imgr_ver_str(struct image_version *ver, char *dst)
</code></pre>