Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
42054c3c
Commit
42054c3c
authored
Sep 03, 2015
by
Daniel Campora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cc3200: Add mphal error to raise hardware related exceptions.
parent
598aad21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
cc3200/hal/cc3200_hal.c
cc3200/hal/cc3200_hal.c
+4
-0
cc3200/hal/cc3200_hal.h
cc3200/hal/cc3200_hal.h
+1
-0
No files found.
cc3200/hal/cc3200_hal.c
View file @
42054c3c
...
...
@@ -128,6 +128,10 @@ void HAL_Delay(uint32_t delay) {
}
}
NORETURN
void
mp_hal_raise
(
int
errno
)
{
nlr_raise
(
mp_obj_new_exception_arg1
(
&
mp_type_OSError
,
mp_obj_new_int
(
errno
)));
}
void
mp_hal_set_interrupt_char
(
int
c
)
{
mpexception_set_interrupt_char
(
c
);
}
...
...
cc3200/hal/cc3200_hal.h
View file @
42054c3c
...
...
@@ -69,6 +69,7 @@ extern void HAL_SystemDeInit (void);
extern
void
HAL_IncrementTick
(
void
);
extern
uint32_t
HAL_GetTick
(
void
);
extern
void
HAL_Delay
(
uint32_t
delay
);
extern
NORETURN
void
mp_hal_raise
(
int
errno
);
extern
void
mp_hal_set_interrupt_char
(
int
c
);
int
mp_hal_stdin_rx_chr
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment