aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/bkp.c
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-01-26 22:05:41 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2011-01-26 22:05:41 -0500
commitf1b64e707d8aa7548954b110368a7eb46b827794 (patch)
tree176d7251bd06199ff8ba8a7a9d01745badabbb82 /libmaple/bkp.c
parente9af9d951a0341ea68ce88d7b5ee3b42b68494b6 (diff)
downloadlibrambutan-f1b64e707d8aa7548954b110368a7eb46b827794.tar.gz
librambutan-f1b64e707d8aa7548954b110368a7eb46b827794.zip
[WIP] Code review picked up some bugs/issues.
Diffstat (limited to 'libmaple/bkp.c')
-rw-r--r--libmaple/bkp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmaple/bkp.c b/libmaple/bkp.c
index 5b0ad4a..e89abd0 100644
--- a/libmaple/bkp.c
+++ b/libmaple/bkp.c
@@ -73,7 +73,7 @@ uint16 bkp_read(uint8 reg) {
if (addr != 0) {
return *addr;
}
- ASSERT(0);
+ ASSERT(0); /* nonexistent register */
return 0;
}
@@ -82,4 +82,5 @@ void bkp_write(uint8 reg, uint16 val) {
if (addr != 0) {
*addr = val;
}
+ ASSERT(0); /* nonexistent register */
}