projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos/stm32f4: Place ARM.exidx sections after .text
[fw/altos]
/
src
/
avr
/
ao_pwmin.c
diff --git
a/src/avr/ao_pwmin.c
b/src/avr/ao_pwmin.c
index 5eb392a4d950df287b35b2ce8d41a3d6aecdd72d..2d83380f2d43aa64e0a5b938066883ec9ac2d554 100644
(file)
--- a/
src/avr/ao_pwmin.c
+++ b/
src/avr/ao_pwmin.c
@@
-26,8
+26,8
@@
* project payload developed at Challenger Middle School.
*/
* project payload developed at Challenger Middle School.
*/
-volatile
__data
uint16_t ao_icp3_count = 0;
-volatile
__data
uint16_t ao_icp3_last = 0;
+volatile uint16_t ao_icp3_count = 0;
+volatile uint16_t ao_icp3_last = 0;
uint16_t ao_icp3(void)
{
uint16_t ao_icp3(void)
{
@@
-39,7
+39,7
@@
uint16_t ao_icp3(void)
}
static void
}
static void
-ao_pwmin_display(void)
__reentrant
+ao_pwmin_display(void)
{
/* display the most recent value */
printf("icp 3: %5u\n", ao_icp3());
{
/* display the most recent value */
printf("icp 3: %5u\n", ao_icp3());
@@
-62,7
+62,7
@@
ISR(TIMER3_CAPT_vect)
ao_icp3_last = ao_icp3_this;
}
ao_icp3_last = ao_icp3_this;
}
-
__code
struct ao_cmds ao_pwmin_cmds[] = {
+
const
struct ao_cmds ao_pwmin_cmds[] = {
{ ao_pwmin_display, "p\0PWM input" },
{ 0, NULL },
};
{ ao_pwmin_display, "p\0PWM input" },
{ 0, NULL },
};