📄 app.c
字号:
};#line 113typedef struct __nesc_unnamed4253 { uint8_t mux : 5; uint8_t adlar : 1; uint8_t refs : 2;} Atm128Admux_t;enum __nesc_unnamed4254 { ATM128_ADC_PRESCALE_2 = 0, ATM128_ADC_PRESCALE_2b, ATM128_ADC_PRESCALE_4, ATM128_ADC_PRESCALE_8, ATM128_ADC_PRESCALE_16, ATM128_ADC_PRESCALE_32, ATM128_ADC_PRESCALE_64, ATM128_ADC_PRESCALE_128, ATM128_ADC_PRESCALE};enum __nesc_unnamed4255 { ATM128_ADC_ENABLE_OFF = 0, ATM128_ADC_ENABLE_ON};enum __nesc_unnamed4256 { ATM128_ADC_START_CONVERSION_OFF = 0, ATM128_ADC_START_CONVERSION_ON};enum __nesc_unnamed4257 { ATM128_ADC_FREE_RUNNING_OFF = 0, ATM128_ADC_FREE_RUNNING_ON};enum __nesc_unnamed4258 { ATM128_ADC_INT_FLAG_OFF = 0, ATM128_ADC_INT_FLAG_ON};enum __nesc_unnamed4259 { ATM128_ADC_INT_ENABLE_OFF = 0, ATM128_ADC_INT_ENABLE_ON};#line 169typedef struct __nesc_unnamed4260 { uint8_t adps : 3; uint8_t adie : 1; uint8_t adif : 1; uint8_t adate : 1; uint8_t adsc : 1; uint8_t aden : 1;} Atm128Adcsra_t;#line 180typedef struct __nesc_unnamed4261 { uint8_t adts : 3; uint8_t mux5 : 1; uint8_t resv1 : 2; uint8_t acme : 1; uint8_t resv2 : 1;} Atm128Adcsrb_t;typedef uint8_t Atm128_ADCH_t;typedef uint8_t Atm128_ADCL_t;# 29 "/opt/tinyos-2.x/tos/lib/timer/Timer.h"typedef struct __nesc_unnamed4262 {#line 29 int notUsed;} #line 29TMilli;typedef struct __nesc_unnamed4263 {#line 30 int notUsed;} #line 30T32khz;typedef struct __nesc_unnamed4264 {#line 31 int notUsed;} #line 31TMicro;# 61 "/opt/tinyos-2.x/tos/chips/atm1281/timer/Atm128Timer.h"enum __nesc_unnamed4265 { ATM128_CLK8_OFF = 0x0, ATM128_CLK8_NORMAL = 0x1, ATM128_CLK8_DIVIDE_8 = 0x2, ATM128_CLK8_DIVIDE_32 = 0x3, ATM128_CLK8_DIVIDE_64 = 0x4, ATM128_CLK8_DIVIDE_128 = 0x5, ATM128_CLK8_DIVIDE_256 = 0x6, ATM128_CLK8_DIVIDE_1024 = 0x7};enum __nesc_unnamed4266 { ATM128_CLK16_OFF = 0x0, ATM128_CLK16_NORMAL = 0x1, ATM128_CLK16_DIVIDE_8 = 0x2, ATM128_CLK16_DIVIDE_64 = 0x3, ATM128_CLK16_DIVIDE_256 = 0x4, ATM128_CLK16_DIVIDE_1024 = 0x5, ATM128_CLK16_EXTERNAL_FALL = 0x6, ATM128_CLK16_EXTERNAL_RISE = 0x7};enum __nesc_unnamed4267 { AVR_CLOCK_OFF = 0, AVR_CLOCK_ON = 1, AVR_CLOCK_DIVIDE_8 = 2};enum __nesc_unnamed4268 { ATM128_TIMER_COMPARE_NORMAL = 0, ATM128_TIMER_COMPARE_TOGGLE, ATM128_TIMER_COMPARE_CLEAR, ATM128_TIMER_COMPARE_SET};enum __nesc_unnamed4269 { ATM128_WAVE8_NORMAL = 0, ATM128_WAVE8_PWM, ATM128_WAVE8_CTC, ATM128_WAVE8_PWM_FAST};enum __nesc_unnamed4270 { ATM128_WAVE16_NORMAL = 0, ATM128_WAVE16_PWM_8BIT, ATM128_WAVE16_PWM_9BIT, ATM128_WAVE16_PWM_10BIT, ATM128_WAVE16_CTC_COMPARE, ATM128_WAVE16_PWM_FAST_8BIT, ATM128_WAVE16_PWM_FAST_9BIT, ATM128_WAVE16_PWM_FAST_10BIT, ATM128_WAVE16_PWM_CAPTURE_LOW, ATM128_WAVE16_PWM_COMPARE_LOW, ATM128_WAVE16_PWM_CAPTURE_HIGH, ATM128_WAVE16_PWM_COMPARE_HIGH, ATM128_WAVE16_CTC_CAPTURE, ATM128_WAVE16_RESERVED, ATM128_WAVE16_PWM_FAST_CAPTURE, ATM128_WAVE16_PWM_FAST_COMPARE};enum __nesc_unnamed4271 { ATM128_COMPARE_OFF = 0, ATM128_COMPARE_TOGGLE, ATM128_COMPARE_CLEAR, ATM128_COMPARE_SET};#line 148#line 136typedef union __nesc_unnamed4272 { uint8_t flat; struct __nesc_unnamed4273 { uint8_t wgm00 : 1; uint8_t wgm01 : 1; uint8_t resv1 : 2; uint8_t com0b0 : 1; uint8_t com0b1 : 1; uint8_t com0a0 : 1; uint8_t com0a1 : 1; } bits;} Atm128_TCCR0A_t;#line 163#line 151typedef union __nesc_unnamed4274 { uint8_t flat; struct __nesc_unnamed4275 { uint8_t cs00 : 1; uint8_t cs01 : 1; uint8_t cs02 : 2; uint8_t wgm02 : 1; uint8_t resv1 : 2; uint8_t foc0b : 1; uint8_t foc0a : 1; } bits;} Atm128_TCCR0B_t;#line 175#line 166typedef union __nesc_unnamed4276 { uint8_t flat; struct __nesc_unnamed4277 { uint8_t toie0 : 1; uint8_t ocie0a : 1; uint8_t ocie0e : 1; uint8_t resv1 : 5; } bits;} Atm128_TIMSK0_t;#line 187#line 178typedef union __nesc_unnamed4278 { uint8_t flat; struct __nesc_unnamed4279 { uint8_t tov0 : 1; uint8_t ocf0a : 1; uint8_t ocf0b : 1; uint8_t resv1 : 5; } bits;} Atm128_TIFR0_t;#line 203#line 190typedef union __nesc_unnamed4280 { uint8_t flat; struct __nesc_unnamed4281 { uint8_t tcr2bub : 1; uint8_t tcr2aub : 1; uint8_t ocr2bub : 1; uint8_t ocr2aub : 1; uint8_t tcn2ub : 1; uint8_t as2 : 1; uint8_t exclk : 1; uint8_t resv1 : 1; } bits;} Atm128_ASSR_t;#line 216#line 206typedef union __nesc_unnamed4282 { uint8_t flat; struct __nesc_unnamed4283 { uint8_t wgm20 : 1; uint8_t wgm21 : 1; uint8_t resv1 : 2; uint8_t comb : 2; uint8_t coma : 2; } bits;} Atm128_TCCR2A_t;#line 229#line 219typedef union __nesc_unnamed4284 { uint8_t flat; struct __nesc_unnamed4285 { uint8_t cs : 3; uint8_t wgm22 : 1; uint8_t resv1 : 2; uint8_t foc2b : 1; uint8_t foc2a : 1; } bits;} Atm128_TCCR2B_t;#line 241#line 232typedef union __nesc_unnamed4286 { uint8_t flat; struct __nesc_unnamed4287 { uint8_t toie : 1; uint8_t ociea : 1; uint8_t ocieb : 1; uint8_t resv1 : 5; } bits;} Atm128_TIMSK2_t;#line 253#line 244typedef union __nesc_unnamed4288 { uint8_t flat; struct __nesc_unnamed4289 { uint8_t tov : 1; uint8_t ocfa : 1; uint8_t ocfb : 1; uint8_t resv1 : 5; } bits;} Atm128_TIFR2_t;#line 266#line 257typedef union __nesc_unnamed4290 { uint8_t flat; struct __nesc_unnamed4291 { uint8_t wgm01 : 2; uint8_t comc : 2; uint8_t comb : 2; uint8_t coma : 2; } bits;} Atm128_TCCRA_t;#line 279#line 269typedef union __nesc_unnamed4292 { uint8_t flat; struct __nesc_unnamed4293 { uint8_t cs : 3; uint8_t wgm23 : 2; uint8_t resv1 : 1; uint8_t ices : 1; uint8_t icnc : 1; } bits;} Atm128_TCCRB_t;#line 291#line 282typedef union __nesc_unnamed4294 { uint8_t flat; struct __nesc_unnamed4295 { uint8_t resv1 : 5; uint8_t focc : 1; uint8_t focb : 1; uint8_t foca : 1; } bits;} Atm128_TCCRC_t;#line 306#line 294typedef union __nesc_unnamed4296 { uint8_t flat; struct __nesc_unnamed4297 { uint8_t toie : 1; uint8_t ociea : 1; uint8_t ocieb : 1; uint8_t ociec : 1; uint8_t resv1 : 1; uint8_t icie : 1; uint8_t resv2 : 2; } bits;} Atm128_TIMSK_t;#line 321#line 309typedef union __nesc_unnamed4298 { uint8_t flat; struct __nesc_unnamed4299 { uint8_t tov : 1; uint8_t ocfa : 1; uint8_t ocfb : 1; uint8_t ocfc : 1; uint8_t resv1 : 1; uint8_t icf : 1; uint8_t resv2 : 2; } bits;} Atm128_TIFR_t;#line 333
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -