Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
473 commits
Select commit Hold shift + click to select a range
ef3b422
spelling: intentionally
jsoref Jan 28, 2025
c0f95d0
spelling: internal
jsoref Jan 28, 2025
1414ea0
spelling: invalid
jsoref Jan 28, 2025
57fd176
spelling: invert
jsoref Jan 28, 2025
2437efd
spelling: issues
jsoref Jan 28, 2025
d78f6df
spelling: iterating
jsoref Jan 28, 2025
a35061e
spelling: iteration
jsoref Jan 29, 2025
4806c06
spelling: its
jsoref Jan 28, 2025
c01e9cf
spelling: javascript
jsoref Jan 28, 2025
cb0ad69
spelling: kernel
jsoref Jan 28, 2025
f26b13d
spelling: large
jsoref Jan 28, 2025
a503372
spelling: latest
jsoref Jan 28, 2025
087fa58
spelling: layer (?)
jsoref Jan 28, 2025
7ee4164
spelling: leaving
jsoref Jan 28, 2025
2ca6621
spelling: length
jsoref Jan 28, 2025
9a74f51
spelling: lifecycle
jsoref Jan 28, 2025
efb437b
spelling: light
jsoref Jan 28, 2025
4e17c71
spelling: limit
jsoref Jan 28, 2025
df09a16
spelling: load
jsoref Jan 28, 2025
dff7972
spelling: lowest
jsoref Jan 28, 2025
f8142aa
spelling: macos
jsoref Jan 28, 2025
0527df2
spelling: makes
jsoref Jan 28, 2025
04822e0
spelling: malformed
jsoref Jan 28, 2025
14c0197
spelling: many, many,
jsoref Jan 28, 2025
3103346
spelling: measurement
jsoref Jan 28, 2025
1e36e93
spelling: memory
jsoref Jan 28, 2025
4484069
spelling: messages
jsoref Jan 28, 2025
2d73a5d
spelling: metadata
jsoref Jan 28, 2025
8db950e
spelling: milliseconds
jsoref Jan 28, 2025
13f4c19
spelling: minimized
jsoref Jan 28, 2025
1478a09
spelling: minimum
jsoref Jan 28, 2025
607d0d3
spelling: mirrored
jsoref Jan 28, 2025
d755d29
spelling: more
jsoref Jan 28, 2025
7898b0c
spelling: movement
jsoref Jan 28, 2025
723223e
spelling: multiple
jsoref Jan 28, 2025
65efdcd
spelling: multiplication
jsoref Jan 28, 2025
47c7c80
spelling: multiplies
jsoref Jan 28, 2025
77b6289
spelling: nearest
jsoref Jan 28, 2025
808be07
spelling: necessarily
jsoref Jan 28, 2025
56f2f72
spelling: necessary
jsoref Jan 28, 2025
9985f1f
spelling: next
jsoref Jan 28, 2025
c2f7961
spelling: nonexistent
jsoref Jan 28, 2025
fa235e9
spelling: normalized
jsoref Jan 28, 2025
d9ec8a3
spelling: not
jsoref Jan 28, 2025
c2e8d1d
spelling: notification
jsoref Jan 28, 2025
489a1d5
spelling: notifications
jsoref Jan 28, 2025
ca40ee4
spelling: obfuscated
jsoref Jan 28, 2025
0f0c1cc
spelling: objects
jsoref Jan 28, 2025
3d34684
spelling: occurred
jsoref Jan 28, 2025
76f2f96
spelling: occurrence
jsoref Jan 28, 2025
9cf1456
spelling: occurrences
jsoref Jan 28, 2025
3f55864
spelling: occurring
jsoref Jan 28, 2025
6fcb2ed
spelling: occurs
jsoref Jan 28, 2025
b7b8abc
spelling: offset
jsoref Jan 28, 2025
651f82f
spelling: olson
jsoref Jan 28, 2025
a967d8f
spelling: onboard
jsoref Jan 28, 2025
0c55874
spelling: ongoing
jsoref Jan 28, 2025
a9dd33c
spelling: opposed
jsoref Jan 28, 2025
9af84e0
spelling: opt-in
jsoref Jan 28, 2025
3291600
spelling: optional
jsoref Jan 28, 2025
fce4b36
spelling: options
jsoref Jan 28, 2025
13de07f
spelling: or
jsoref Jan 28, 2025
f44e5e5
spelling: original
jsoref Jan 28, 2025
92b055a
spelling: orphans
jsoref Jan 28, 2025
2e76914
spelling: other
jsoref Jan 28, 2025
24100e2
spelling: output
jsoref Jan 28, 2025
b2075d3
spelling: overarching
jsoref Jan 28, 2025
1e3f63f
spelling: overflow
jsoref Jan 28, 2025
db1840c
spelling: overlap
jsoref Jan 29, 2025
3572d42
spelling: overridden
jsoref Jan 28, 2025
0a17a4a
spelling: pairability
jsoref Jan 28, 2025
bd132b4
spelling: palette
jsoref Jan 28, 2025
3343c3a
spelling: palettized
jsoref Jan 28, 2025
dc15069
spelling: param
jsoref Jan 29, 2025
8b9b599
spelling: parameter
jsoref Jan 28, 2025
46910d0
spelling: partway
jsoref Jan 28, 2025
d98fd94
spelling: passed
jsoref Jan 28, 2025
52580da
spelling: pathological
jsoref Jan 28, 2025
fcfff63
spelling: perceived
jsoref Jan 28, 2025
33edf22
spelling: performing
jsoref Jan 28, 2025
dd02b29
spelling: periodically
jsoref Jan 28, 2025
7d8b2dc
spelling: peripheral
jsoref Jan 28, 2025
0887be2
spelling: platform
jsoref Jan 28, 2025
27cbe4b
spelling: point
jsoref Jan 28, 2025
ab86d94
spelling: possibility
jsoref Jan 28, 2025
ed1e3c8
spelling: possible
jsoref Jan 28, 2025
e3602b5
spelling: potential
jsoref Jan 28, 2025
815e361
spelling: precise
jsoref Jan 28, 2025
8ca8cff
spelling: preexisting
jsoref Jan 28, 2025
4cad918
spelling: pretend
jsoref Jan 28, 2025
d527ad1
spelling: previous
jsoref Jan 28, 2025
d7c8734
spelling: previously
jsoref Jan 28, 2025
cd127de
spelling: prioritized
jsoref Jan 28, 2025
d4d8ed5
spelling: priority
jsoref Jan 28, 2025
e35b142
spelling: privileged
jsoref Jan 28, 2025
67713b7
spelling: probability
jsoref Jan 28, 2025
060d7cb
spelling: process
jsoref Jan 28, 2025
8c57480
spelling: processed
jsoref Jan 28, 2025
4329f3e
spelling: processing
jsoref Jan 28, 2025
32e4e88
spelling: processor
jsoref Jan 28, 2025
f287543
spelling: program
jsoref Jan 28, 2025
5ed0a14
spelling: programmatically
jsoref Jan 28, 2025
866f4f0
spelling: propagate
jsoref Jan 28, 2025
110e0fd
spelling: property
jsoref Jan 28, 2025
47af5bd
spelling: protocol
jsoref Jan 28, 2025
d56fb48
spelling: provider
jsoref Jan 28, 2025
d6ff983
spelling: quadrant
jsoref Jan 28, 2025
7420fcb
spelling: quicklaunch
jsoref Jan 28, 2025
a581875
spelling: reauth
jsoref Jan 28, 2025
a0222e9
spelling: receive
jsoref Jan 28, 2025
9f4d934
spelling: received
jsoref Jan 28, 2025
1b10188
spelling: receiving
jsoref Jan 28, 2025
c7851d5
spelling: reentrancy
jsoref Jan 28, 2025
3b92b65
spelling: referring
jsoref Jan 28, 2025
fc797cd
spelling: registering
jsoref Jan 28, 2025
5f98552
spelling: registry
jsoref Jan 28, 2025
bc2c239
spelling: regular
jsoref Jan 28, 2025
7d745d4
spelling: relation
jsoref Jan 28, 2025
0c55d53
spelling: relative
jsoref Jan 28, 2025
cfea0fc
spelling: reload
jsoref Jan 28, 2025
d9f57de
spelling: remaining
jsoref Jan 28, 2025
d0a5f03
spelling: remnants
jsoref Jan 28, 2025
1ac3b3c
spelling: reopened
jsoref Jan 28, 2025
e2cad1d
spelling: representation
jsoref Jan 28, 2025
6590c67
spelling: represented
jsoref Jan 28, 2025
1732aa3
spelling: request
jsoref Jan 28, 2025
71e60e3
spelling: requirement
jsoref Jan 28, 2025
0d9e35f
spelling: rescheduling
jsoref Jan 28, 2025
3d85a9c
spelling: resource
jsoref Jan 28, 2025
5d1081b
spelling: resources
jsoref Jan 28, 2025
0423ca8
spelling: respectively
jsoref Jan 28, 2025
0a61679
spelling: respond
jsoref Jan 28, 2025
c42dfbc
spelling: response
jsoref Jan 28, 2025
2062536
spelling: retrieval
jsoref Jan 28, 2025
656ba98
spelling: retrieve
jsoref Jan 28, 2025
466e7f7
spelling: retrieves
jsoref Jan 29, 2025
fa22912
spelling: retrieving
jsoref Jan 28, 2025
99187c5
spelling: returns
jsoref Jan 28, 2025
3faa3c0
spelling: robining
jsoref Jan 28, 2025
93135f6
spelling: saturday
jsoref Jan 28, 2025
173bdad
spelling: scanlines
jsoref Jan 28, 2025
c29f9fe
spelling: schedule
jsoref Jan 28, 2025
16f151f
spelling: scroll
jsoref Jan 29, 2025
eddc390
spelling: secondary
jsoref Jan 28, 2025
acad6e8
spelling: section
jsoref Jan 28, 2025
b33c3a7
spelling: semaphore
jsoref Jan 28, 2025
394c11d
spelling: sentinel
jsoref Jan 28, 2025
586db5b
spelling: separate
jsoref Jan 28, 2025
927251a
spelling: separator
jsoref Jan 28, 2025
c5495ec
spelling: serialized
jsoref Jan 28, 2025
6dbbbee
spelling: seriously
jsoref Jan 28, 2025
fc2f5a9
spelling: session
jsoref Jan 28, 2025
9ecddce
spelling: setup
jsoref Jan 28, 2025
5cb667a
spelling: shipping
jsoref Jan 28, 2025
1d3a78f
spelling: should
jsoref Jan 28, 2025
47319ea
spelling: shrunk
jsoref Jan 28, 2025
b8c84e0
spelling: shut
jsoref Jan 28, 2025
cbbaeba
spelling: similarly
jsoref Jan 28, 2025
608aac6
spelling: simultaneous
jsoref Jan 28, 2025
0666aa0
spelling: simultaneously
jsoref Jan 28, 2025
9dc350a
spelling: situations
jsoref Jan 28, 2025
ced5200
spelling: size
jsoref Jan 28, 2025
94240d3
spelling: smartstraps
jsoref Jan 28, 2025
faf96c3
spelling: space
jsoref Jan 29, 2025
848a68c
spelling: specific
jsoref Jan 28, 2025
9e6d15a
spelling: specifier
jsoref Jan 28, 2025
cd8520a
spelling: spectral
jsoref Jan 28, 2025
88ce796
spelling: stabilization
jsoref Jan 28, 2025
6fc8ed0
spelling: stabilized
jsoref Jan 28, 2025
56f907e
spelling: status
jsoref Jan 28, 2025
c2cf2fd
spelling: straight
jsoref Jan 28, 2025
edb0a78
spelling: strength
jsoref Jan 28, 2025
55d1f98
spelling: stress
jsoref Jan 28, 2025
f14d9da
spelling: strongly
jsoref Jan 28, 2025
0629617
spelling: structure
jsoref Jan 28, 2025
f7e6549
spelling: structured
jsoref Jan 28, 2025
da5daef
spelling: subscription
jsoref Jan 28, 2025
85257fc
spelling: subtract
jsoref Jan 28, 2025
836341f
spelling: subtracted
jsoref Jan 28, 2025
9bf2e4c
spelling: succeeds
jsoref Jan 28, 2025
56b1584
spelling: success
jsoref Jan 28, 2025
aee29ca
spelling: successful
jsoref Jan 28, 2025
9e89559
spelling: successfully
jsoref Jan 28, 2025
eadb5ca
spelling: successive
jsoref Jan 28, 2025
aacf4a9
spelling: suddenly
jsoref Jan 28, 2025
bcf5e6d
spelling: superseded
jsoref Jan 28, 2025
a169a70
spelling: supported
jsoref Jan 28, 2025
f2b0373
spelling: supports
jsoref Jan 28, 2025
6ba090d
spelling: suppressing
jsoref Jan 28, 2025
202215e
spelling: surprise
jsoref Jan 28, 2025
b32d22a
spelling: surprisingly
jsoref Jan 28, 2025
0a909d7
spelling: synchronization
jsoref Jan 28, 2025
979061a
spelling: synchronizing
jsoref Jan 28, 2025
53b7422
spelling: system
jsoref Jan 28, 2025
c477e68
spelling: targeted
jsoref Jan 28, 2025
ccca8fd
spelling: targeting
jsoref Jan 28, 2025
5cb061c
spelling: terminator
jsoref Jan 28, 2025
9077267
spelling: than
jsoref Jan 28, 2025
34b2a18
spelling: that
jsoref Jan 28, 2025
d09aca0
spelling: the
jsoref Jan 28, 2025
374b10c
spelling: thickness
jsoref Jan 28, 2025
79e6f0c
spelling: third
jsoref Jan 28, 2025
9485f1e
spelling: this
jsoref Jan 28, 2025
4ba1278
spelling: threshold
jsoref Jan 28, 2025
994d10f
spelling: timeouts
jsoref Jan 28, 2025
f257b7a
spelling: timestamp
jsoref Jan 28, 2025
913fa41
spelling: to
jsoref Jan 28, 2025
7594b4c
spelling: today
jsoref Jan 28, 2025
e53dc17
spelling: traceability
jsoref Jan 28, 2025
120c7e2
spelling: traditional
jsoref Jan 28, 2025
b7297fd
spelling: transformation
jsoref Jan 28, 2025
58c2274
spelling: transimpedance
jsoref Jan 28, 2025
4be1d9c
spelling: transparency
jsoref Jan 28, 2025
be54304
spelling: transparent
jsoref Jan 28, 2025
cceec5a
spelling: tries
jsoref Jan 29, 2025
cb44bb9
spelling: triggered
jsoref Jan 28, 2025
762142c
spelling: truncate
jsoref Jan 28, 2025
e38db99
spelling: twelfth
jsoref Jan 28, 2025
76f3819
spelling: typical
jsoref Jan 28, 2025
e5fbc9e
spelling: unfortunately
jsoref Jan 28, 2025
f6d5f8c
spelling: uninitialized
jsoref Jan 28, 2025
82ee3a2
spelling: unless
jsoref Jan 28, 2025
523e6cf
spelling: unnamed
jsoref Jan 28, 2025
c32466e
spelling: unnecessarily
jsoref Jan 28, 2025
445eb14
spelling: unsubscribe
jsoref Jan 28, 2025
0f74b40
spelling: unsubscribed
jsoref Jan 28, 2025
03c66ad
spelling: unsuccessful
jsoref Jan 28, 2025
58d50a7
spelling: unused
jsoref Jan 28, 2025
a679c3d
spelling: use
jsoref Jan 28, 2025
d37fe94
spelling: value
jsoref Jan 28, 2025
c1e8ef3
spelling: variable
jsoref Jan 28, 2025
0098e27
spelling: version
jsoref Jan 28, 2025
159e6cc
spelling: vertical
jsoref Jan 28, 2025
39c1e7b
spelling: vertically
jsoref Jan 28, 2025
36c9aac
spelling: violations
jsoref Jan 28, 2025
7499ab1
spelling: visible
jsoref Jan 28, 2025
3bde9c1
spelling: wakeup
jsoref Jan 28, 2025
7885833
spelling: watchbands
jsoref Jan 29, 2025
8ee2a95
spelling: when
jsoref Jan 28, 2025
b778cd6
spelling: whenever
jsoref Jan 28, 2025
09c53eb
spelling: where
jsoref Jan 28, 2025
fed3c7b
spelling: whether
jsoref Jan 28, 2025
be5dc94
spelling: whoami
jsoref Jan 28, 2025
4f5fbed
spelling: window
jsoref Jan 28, 2025
7049285
spelling: with
jsoref Jan 28, 2025
af088d0
spelling: within
jsoref Jan 28, 2025
a33fc19
spelling: workaround
jsoref Jan 28, 2025
bb79879
spelling: workarounds
jsoref Jan 28, 2025
718ea62
spelling: written
jsoref Jan 28, 2025
ecfd50f
spelling: yesterday
jsoref Jan 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion applib-targets/emscripten/emscripten_jerry_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ jerry_size_t jerry_object_to_string_to_utf8_char_buffer(const jerry_value_t obje
return len;
}

// FIXME: PBL-43551 Propery CESU-8 => UTF-8 conversion.
// FIXME: PBL-43551 Property CESU-8 => UTF-8 conversion.
jerry_size_t jerry_object_to_string_to_char_buffer(const jerry_value_t object,
jerry_char_t *buffer_p,
jerry_size_t buffer_size) {
Expand Down
2 changes: 1 addition & 1 deletion applib-targets/emscripten/emscripten_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static bool prv_get_resource(uint32_t resource_id, Resource *res) {
if ((entry.resource_id != resource_id) ||
(entry.length == 0)) {
// empty resource
printf("%s: Invalid resourcel for %d\n", __FILE__, resource_id);
printf("%s: Invalid resource for %d\n", __FILE__, resource_id);
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion applib-targets/emscripten/emscripten_resources.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "resource/resource.h"

// transformed to int to avoid surpises between C->JS
// transformed to int to avoid surprises between C->JS
typedef int (*ResourceReadCb)(int offset, uint8_t *buf, int num_bytes);
typedef int (*ResourceGetSizeCb)(void);

Expand Down
2 changes: 1 addition & 1 deletion checkers/MutexChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace std {
}

/* This analyzer suffers from the major limitation that most of the mutexes in Pebble are globals,
* so all symbols and MemRegions refering to the mutexes are invalidated every time an unknown
* so all symbols and MemRegions referring to the mutexes are invalidated every time an unknown
* function is called. This analyzer instead associates mutexes with the declaration of their
* variables, which has the obvious limitation of not catching when mutexes are passed as
* arguments (which fortunately never? happens in pebble).
Expand Down
6 changes: 3 additions & 3 deletions docs/common.dox
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ This function affects subsequent calls to \ref rand() to produce a sequence of n
`setlocale` can be used to:
- set the app's locale to a specific locale: `setlocale(LC_ALL, "en_CA")`
- set the app's locale to the system locale: `setlocale(LC_ALL, "")`
- get the app's curent locale: `setlocale(LC_ALL, NULL)`
- get the app's current locale: `setlocale(LC_ALL, NULL)`

\param category The category of routines for which to set the locale
\param locale The ISO formatted locale to use, or "" for the system locale
\return the locale after the change is applied, NULL on failure (e.g. unsuported category)
\return the locale after the change is applied, NULL on failure (e.g. unsupported category)
\note Currently, we only support two categories: LC_ALL and LC_TIME

@}
Expand Down Expand Up @@ -421,7 +421,7 @@ original allocation or the new size into the newly allocated buffer.
\return The destination buffer dest

\fn char *strncat(char *dest, const char *src, size_t n)
\brief Concatenates up to n bytes from the string in src to the end of the string pointed by dest and null terminates dest. There should be no overlap of dest and src in memeory.
\brief Concatenates up to n bytes from the string in src to the end of the string pointed by dest and null terminates dest. There should be no overlap of dest and src in memory.
\param dest The destination buffer with enough space for src beyond the null character
\param src The source string
\param n The maximum number of bytes to copy
Expand Down
4 changes: 2 additions & 2 deletions docs/pulse2/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ with the target address and data. The receiver performs the write and
sends an acknowledgement with the address. If the sender doesn't receive
an acknowledgement within some timeout, it re-sends the write command.
Any number of write commands and acknowledgements can be in-flight
simulatneously. If a write completes but the acknowledgement is lost in
simultaneously. If a write completes but the acknowledgement is lost in
transit, the sender can re-send the same write command and the receiver
can naively overwrite the data without issue due to the idempotence of
flash writes.
Expand Down Expand Up @@ -149,7 +149,7 @@ Applications can choose to communicate with either best-effort datagram
service (like PULSEv1), or reliable datagram service that guarantees
in-order datagram delivery. Having the reliable transport available
made it very easy to implement prompt commands over PULSEv2. And it was
also suprisingly easy to implement a PULSEv2 transport for the Pebble
also surprisingly easy to implement a PULSEv2 transport for the Pebble
Protocol, which allows developers and test automation to interact with
bigboards using libpebble2 and pebble-tool, exactly like they can with
emulators and sealed watches connected to phones.
Expand Down
6 changes: 3 additions & 3 deletions docs/tasks.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FreeRTOS lets us create tasks, which are independant threads of execution. We create a few ourselves, and more are created internally by FreeRTOS. We have pre-emption enabled in our FreeRTOS configuration, so we must be mindful of which other tasks are mucking with the same data. This document describes the tasks that exist in our system.
FreeRTOS lets us create tasks, which are independent threads of execution. We create a few ourselves, and more are created internally by FreeRTOS. We have pre-emption enabled in our FreeRTOS configuration, so we must be mindful of which other tasks are mucking with the same data. This document describes the tasks that exist in our system.

FreeRTOS Tasks
==============
Expand All @@ -10,7 +10,7 @@ Timers that are registered using our timer infrastructure are executed on this t

"IDLE" - The idle task
----------------------
This is a special task used by the FreeRTOS scheduler. It's defined at it's own priority level which is at the lowest priority. If no other task is ready to run, either due to waiting on a semaphore or waiting using vTaskDelay (or something like that), the idle task is chosen to run instead.
This is a special task used by the FreeRTOS scheduler. It's defined at its own priority level which is at the lowest priority. If no other task is ready to run, either due to waiting on a semaphore or waiting using vTaskDelay (or something like that), the idle task is chosen to run instead.

We have modified FreeRTOS such that if we're in the idle task, we enter a lower power mode, either sleep or stop. Stop mode is special in that peripheral clocks are shut down when we go into stop and are not automatically turned back on when we leave stop mode. This means we have to go through and turn them all back on. This is what the `register_stop_mode_resume_callback` function does. It allows individual drivers to register callbacks that are called when we leave stop from the idle thread. This comes with a caveat though. Since the idle thread only ever runs when there's nothing else to run, the scheduler assumes that there is always a task to run. This means that if the idle task is stopped or delayed for any reason, the scheduler will explode. Therefore you are not permitted to do operations that may stop the task's execution from within the resume callback.

Expand All @@ -34,4 +34,4 @@ This task is created for the currently running app. No task is created for the l
Open Questions
==============

Which tasks are allowed to manipulate the window state? What if the launcher wants to push a notification window at the same time as an app pushes it's own window?
Which tasks are allowed to manipulate the window state? What if the launcher wants to push a notification window at the same time as an app pushes its own window?
2 changes: 1 addition & 1 deletion ftdi_reload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This script works around an issue in MacOS 10.9 (Mavericks) that causes
# This script works around an issue in macOS 10.9 (Mavericks) that causes
# it to go back to the original Apple USB FTDI drivers after a reboot.
sudo kextunload /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBFTDI.kext
sudo kextcache -system-prelinked-kernel
Expand Down
2 changes: 1 addition & 1 deletion ftdi_unload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This script works around an issue in MacOS 10.9 (Mavericks) that causes
# This script works around an issue in macOS 10.9 (Mavericks) that causes
# it to go back to the original Apple USB FTDI drivers after a reboot.
sudo kextunload /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBFTDI.kext
sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/src/board/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#define GPIO_Port_NULL ((GPIO_TypeDef *) 0)
#define GPIO_Pin_NULL ((uint16_t)0x0000)

// This is generated in order to faciliate the check within the IRQ_MAP macro below
// This is generated in order to facilitate the check within the IRQ_MAP macro below
enum {
#define IRQ_DEF(num, irq) IS_VALID_IRQ__##irq,
#include "irq_stm32f7.def"
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/src/drivers/display/boot_fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void display_init(void) {

// Work around an issue which some boards exhibit where the FPGA ring
// oscillator can start up with higher harmonics, massively overclocking the
// design and causing malfunction. When this occurrs, the draw-scene command
// design and causing malfunction. When this occurs, the draw-scene command
// will not work, asserting BUSY indefinitely but never updating the display.
// Other commands such as display-on and display-off are less affected by the
// overclocking, so the display can be turned on while the FPGA is in this
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/src/drivers/max14690_pmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ bool pmic_enable_battery_measure(void) {
bool pmic_disable_battery_measure(void) {
bool result = prv_set_mon_config_register(0);

// Releases the lock that was previously aquired in pmic_enable_battery_measure.
// Releases the lock that was previously acquired in pmic_enable_battery_measure.
prv_mon_config_unlock();

return result;
Expand Down
4 changes: 2 additions & 2 deletions platform/robert/boot/src/fw_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void fw_copy_check_update_fw(void) {
if (boot_bit_test(BOOT_BIT_NEW_FW_UPDATE_IN_PROGRESS)) {
dbgserial_putstr("Our previous firmware update failed, aborting update.");

// Pretend like the new firmware bit wasn't set afterall. We'll just run the
// Pretend like the new firmware bit wasn't set after all. We'll just run the
// previous code, whether that was normal firmware or the recovery firmware.
boot_bit_clear(BOOT_BIT_NEW_FW_UPDATE_IN_PROGRESS);
boot_bit_clear(BOOT_BIT_NEW_FW_AVAILABLE);
Expand All @@ -165,7 +165,7 @@ void fw_copy_check_update_fw(void) {
break;
case UPDATE_FW_ERROR_MICRO_FLASH_MANGLED:
// We've broken our internal flash when trying to update our normal
// firmware. Fall back immediately to the recovery firmare.
// firmware. Fall back immediately to the recovery firmware.
boot_bit_set(BOOT_BIT_FW_START_FAIL_STRIKE_ONE);
boot_bit_set(BOOT_BIT_FW_START_FAIL_STRIKE_TWO);
system_reset();
Expand Down
8 changes: 4 additions & 4 deletions platform/robert/boot/src/stm32f_flash_boot.ld
Original file line number Diff line number Diff line change
Expand Up @@ -70,28 +70,28 @@ SECTIONS
It is one task of the startup to copy the initial values from FLASH to RAM. */
.data : {
. = ALIGN(4);
/* This is used by the startup in order to initialize the .data secion */
/* This is used by the startup in order to initialize the .data section */
__data_start = .;

*(.data)
*(.data.*)

. = ALIGN(4);
__data_end = .; /* This is used by the startup in order to initialize the .data secion */
__data_end = .; /* This is used by the startup in order to initialize the .data section */
} >RAM AT>FLASH
__data_load_start = LOADADDR(.data);

/* This is the uninitialized data section */
.bss (NOLOAD) : {
. = ALIGN(4);
__bss_start = .; /* This is used by the startup in order to initialize the .bss secion */
__bss_start = .; /* This is used by the startup in order to initialize the .bss section */

*(.bss)
*(.bss.*)
*(COMMON)

. = ALIGN(4);
__bss_end = .; /* This is used by the startup in order to initialize the .bss secion */
__bss_end = .; /* This is used by the startup in order to initialize the .bss section */
} >RAM

.stack (NOLOAD) : {
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/src/util/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void delay_us(uint32_t us) {

void delay_ms(uint32_t millis) {
// delay_us(millis*1000) is not used because a long delay could easily
// overflow the veriable. Without the outer loop, a delay of even five
// overflow the variable. Without the outer loop, a delay of even five
// seconds would overflow.
while (millis--) {
delay_us(1000);
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/src/util/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ int ceil_log_two(uint32_t n);
)

/**
* Compute the next backoff interval using a bounded binary expoential backoff formula.
* Compute the next backoff interval using a bounded binary exponential backoff formula.
*
* @param[in,out] attempt The number of retries performed so far. This count will be incremented
* by the function.
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/src/vector_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ __attribute__((__noreturn__)) void Default_Handler(void) {

// All these functions are weak references to the Default_Handler,
// so if we define a handler in elsewhere in the firmware, these
// will be overriden
// will be overridden
#define ALIAS(sym) __attribute__((__weak__, __alias__(sym)))
ALIAS("Default_Handler") void NMI_Handler(void);
ALIAS("Default_Handler") void HardFault_Handler(void);
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/waftools/binary_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def build(bld):
sparse length encoding (see waftools/sparse_length_encoding.py).

The name of the array variable defaults to the source file name with all
characters that are invaid C identifiers replaced with underscores. The name
characters that are invalid C identifiers replaced with underscores. The name
can be explicitly specified by setting the *array_name* parameter.

This method overrides the processing by
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/waftools/objcopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

"""
Support for converting linked targets to ihex, srec or binary files using
objcopy. Use the 'objcopy' feature in conjuction with the 'cc' or 'cxx'
objcopy. Use the 'objcopy' feature in conjunction with the 'cc' or 'cxx'
feature. The 'objcopy' feature uses the following attributes:

objcopy_bfdname Target object format name (eg. ihex, srec, binary).
Expand Down
4 changes: 2 additions & 2 deletions platform/robert/boot/waftools/sparse_length_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def encode(source):
frequency.update(source)
# most_common() doesn't define what happens if there's a tie in frequency. Let's always pick
# the lowest value of that frequency to make the encoding predictable.
occurences = frequency.most_common()
escape = min(x[0] for x in occurences if x[1] == occurences[-1][1])
occurrences = frequency.most_common()
escape = min(x[0] for x in occurrences if x[1] == occurrences[-1][1])
yield escape
for b, g in groupby(source):
if b == b'\0':
Expand Down
2 changes: 1 addition & 1 deletion platform/robert/boot/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def options(opt):
help='Which board to build for (robert_bb, robert_bb2, cutts_bb, robert_evt)')
opt.add_option('--nowatchdog', action='store_true',
help='Disable automatic reboots when watchdog fires')
opt.add_option('--display_test', action='store_true', help='Enables the diplsay test loop')
opt.add_option('--display_test', action='store_true', help='Enables the display test loop')


def configure(conf):
Expand Down
4 changes: 2 additions & 2 deletions platform/silk/boot/src/fw_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void check_update_fw(void) {
if (boot_bit_test(BOOT_BIT_NEW_FW_UPDATE_IN_PROGRESS)) {
dbgserial_putstr("Our previous firmware update failed, aborting update.");

// Pretend like the new firmware bit wasn't set afterall. We'll just run the
// Pretend like the new firmware bit wasn't set after all. We'll just run the
// previous code, whether that was normal firmware or the recovery firmware.
boot_bit_clear(BOOT_BIT_NEW_FW_UPDATE_IN_PROGRESS);
boot_bit_clear(BOOT_BIT_NEW_FW_AVAILABLE);
Expand All @@ -170,7 +170,7 @@ void check_update_fw(void) {
break;
case UPDATE_FW_ERROR_MICRO_FLASH_MANGLED:
// We've broken our internal flash when trying to update our normal
// firmware. Fall back immediately to the recovery firmare.
// firmware. Fall back immediately to the recovery firmware.
boot_bit_set(BOOT_BIT_FW_START_FAIL_STRIKE_ONE);
boot_bit_set(BOOT_BIT_FW_START_FAIL_STRIKE_TWO);
system_reset();
Expand Down
10 changes: 5 additions & 5 deletions platform/silk/boot/src/stm32f_flash_boot.ld.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PROVIDE ( _Stack_Size = __Stack_Size ) ;

__Stack_Init = _estack - __Stack_Size ;

/*"PROVIDE" allows to easily override these values from an object file or the commmand line.*/
/*"PROVIDE" allows to easily override these values from an object file or the command line.*/
PROVIDE ( _Stack_Init = __Stack_Init ) ;

/*
Expand Down Expand Up @@ -96,28 +96,28 @@ SECTIONS
.data : AT ( _sidata )
{
. = ALIGN(4);
/* This is used by the startup in order to initialize the .data secion */
/* This is used by the startup in order to initialize the .data section */
_sdata = .;

*(.data)
*(.data.*)

. = ALIGN(4);
_edata = .; /* This is used by the startup in order to initialize the .data secion */
_edata = .; /* This is used by the startup in order to initialize the .data section */
} >RAM

/* This is the uninitialized data section */
.bss :
{
. = ALIGN(4);
_sbss = .; /* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* This is used by the startup in order to initialize the .bss section */

*(.bss)
*(.bss.*)
*(COMMON)

. = ALIGN(4);
_ebss = .; /* This is used by the startup in order to initialize the .bss secion */
_ebss = .; /* This is used by the startup in order to initialize the .bss section */
} >RAM

.stack :
Expand Down
2 changes: 1 addition & 1 deletion platform/silk/boot/src/util/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void NOINLINE delay_us(uint32_t us) {

void delay_ms(uint32_t millis) {
// delay_us(millis*1000) is not used because a long delay could easily
// overflow the veriable. Without the outer loop, a delay of even five
// overflow the variable. Without the outer loop, a delay of even five
// seconds would overflow.
while (millis--) {
delay_us(1000);
Expand Down
2 changes: 1 addition & 1 deletion platform/silk/boot/waftools/binary_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def build(bld):
file is treated as a raw binary file.

The name of the array variable defaults to the source file name with all
characters that are invaid C identifiers replaced with underscores. The name
characters that are invalid C identifiers replaced with underscores. The name
can be explicitly specified by setting the *array_name* parameter.

This method overrides the processing by
Expand Down
2 changes: 1 addition & 1 deletion platform/silk/boot/waftools/objcopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

"""
Support for converting linked targets to ihex, srec or binary files using
objcopy. Use the 'objcopy' feature in conjuction with the 'cc' or 'cxx'
objcopy. Use the 'objcopy' feature in conjunction with the 'cc' or 'cxx'
feature. The 'objcopy' feature uses the following attributes:

objcopy_bfdname Target object format name (eg. ihex, srec, binary).
Expand Down
2 changes: 1 addition & 1 deletion platform/snowy/boot/src/drivers/display/ice40lp.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void display_power_disable(void) {

//!
//! Write a single byte synchronously to the display. Use this
//! sparingly, as it will tie up the micro duing the write.
//! sparingly, as it will tie up the micro during the write.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be doing. All of my corrections are manual and this is an example where I picked one possible correction over another.

Thinking about it for a third time, it seems likely doing is the right word...

//!
void display_write_byte(uint8_t d) {
// Block until the tx buffer is empty
Expand Down
2 changes: 1 addition & 1 deletion platform/snowy/boot/src/drivers/display/snowy_boot_fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void display_init(void) {

// Work around an issue which some boards exhibit where the FPGA ring
// oscillator can start up with higher harmonics, massively overclocking the
// design and causing malfunction. When this occurrs, the draw-scene command
// design and causing malfunction. When this occurs, the draw-scene command
// will not work, asserting BUSY indefinitely but never updating the display.
// Other commands such as display-on and display-off are less affected by the
// overclocking, so the display can be turned on while the FPGA is in this
Expand Down
10 changes: 5 additions & 5 deletions platform/snowy/boot/src/drivers/flash/s29vs.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include "drivers/flash.h"

//! An address in the flash address spac
//! An address in the flash address space
typedef uint32_t FlashAddress;

//! This is the memory mapped region that's mapped to the parallel flash.
Expand All @@ -45,10 +45,10 @@ typedef enum S29VSCommand {
} S29VSCommand;

//! Arguments to the S29VSCommand_EraseSetup command
typedef enum S29VSCommandEraseAguments {
S29VSCommandEraseAguments_ChipErase = 0x10,
S29VSCommandEraseAguments_SectorErase = 0x30
} S29VSCommandEraseAguments;
typedef enum S29VSCommandEraseArguments {
S29VSCommandEraseArguments_ChipErase = 0x10,
S29VSCommandEraseArguments_SectorErase = 0x30
} S29VSCommandEraseArguments;

//! The bitset stored in the status register, see flash_s29vs_read_status_register
typedef enum S29VSStatusBit {
Expand Down
Loading