- Timestamp:
- 11/12/2017 05:27:43 PM (7 years ago)
- Branches:
- master
- Children:
- 66072f0
- Parents:
- 6f49665
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/lcdlbls.c
r6f49665 r2a87ef3 821 821 if (E_NULL NE (ep = findev(p_cur, t_cur, EV_ASGN, -1, -1))) { 822 822 823 ep->e_data1 = n; /* update old event */823 ep->e_data1 = (int8_t)n; /* update old event */ 824 824 825 825 } else if (E_NULL NE (ep = e_alc(E_SIZE2))) { 826 826 827 827 ep->e_type = EV_ASGN; /* create new event */ 828 ep->e_data1 = n;828 ep->e_data1 = (int8_t)n; 829 829 ep->e_time = t_cur; 830 830 p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd; … … 1020 1020 void selins(int16_t ival) 1021 1021 { 1022 registerint16_t n;1023 registerstruct s_entry *ep;1022 int16_t n; 1023 struct s_entry *ep; 1024 1024 1025 1025 for (n = 0; n < 12; n++) { … … 1028 1028 continue; 1029 1029 1030 ins2grp[n] = ival | (ins2grp[n] & 0xFF00);1030 ins2grp[n] = ival | (ins2grp[n] & (int16_t)0xFF00); 1031 1031 setv2gi(n); 1032 1032 … … 1035 1035 if (E_NULL NE (ep = findev(p_cur, t_cur, EV_INST, n, -1))) { 1036 1036 1037 ep->e_data2 = ival;1037 ep->e_data2 = (int8_t)ival; 1038 1038 1039 1039 } else if (E_NULL NE (ep = e_alc(E_SIZE2))) { 1040 1040 1041 1041 ep->e_type = EV_INST; 1042 ep->e_data1 = n;1043 ep->e_data2 = ival;1042 ep->e_data1 = (int8_t)n; 1043 ep->e_data2 = (int8_t)ival; 1044 1044 ep->e_time = t_cur; 1045 1045 p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd; … … 1212 1212 /* ++++++++++++++++++++++++++++ FPU interrupts disabled +++++++++++++++++++++ */ 1213 1213 1214 *(fpu + (smp->vp << 4) + FPU_TCV1) = val;1214 *(fpu + (smp->vp << 4) + FPU_TCV1) = (uint16_t)val; 1215 1215 1216 1216 setipl(oldi); … … 1236 1236 int16_t gs; 1237 1237 int16_t oldi; 1238 int16_t vmask, var; 1238 uint16_t vmask; 1239 int16_t var; 1239 1240 1240 1241 gs = (grp << 4) | src; /* calculate grp/src index */ … … 1246 1247 /* see if we have a change in the selected significant bits */ 1247 1248 1248 if ((( val = valents[gs].val) & vmask) EQ (ival & vmask)) {1249 if (((uint16_t)(val = valents[gs].val) & vmask) EQ ((uint16_t)ival & vmask)) { 1249 1250 1250 1251 /* make sure we always see a change to zero */ … … 1296 1297 /* ++++++++++++++++++++++++++++ FPU interrupts disabled +++++++++++++++++++++ */ 1297 1298 1298 *(fpu + (smp->vp << 4) + FPU_TCV1) = val;1299 *(fpu + (smp->vp << 4) + FPU_TCV1) = (uint16_t)val; 1299 1300 1300 1301 setipl(oldi); … … 1364 1365 /* ++++++++++++++++++++++++++++ FPU interrupts disabled +++++++++++++++++++++ */ 1365 1366 1366 *(fpu + (smp->vp << 4) + FPU_TCV1) = val;1367 *(fpu + (smp->vp << 4) + FPU_TCV1) = (uint16_t)val; 1367 1368 1368 1369 setipl(oldi); … … 1602 1603 for (i = 0; i < 14; i++) { 1603 1604 1604 sendeq( i, gain2eq(0));1605 sendeq((int8_t)i, gain2eq(0)); 1605 1606 BarCset(i, BGeq[i] = 0); 1606 1607 } … … 1619 1620 { 1620 1621 volatile uint16_t *fpu; 1621 int16_t val, oldi, mult; 1622 int16_t val, oldi; 1623 uint16_t mult; 1622 1624 int16_t nop; 1623 1625 … … 1663 1665 /* ++++++++++++++++++++++++++++ FPU interrupts disabled +++++++++++++++++++++ */ 1664 1666 1665 *(fpu + FPU_TCV2) = val;1667 *(fpu + FPU_TCV2) = (uint16_t)val; 1666 1668 ++nop; ++nop; ++nop; 1667 1669 *(fpu + FPU_TSF2) = mult; … … 1767 1769 barval = (((slval >> 5) - 500) << 6) / 252; 1768 1770 BGeq[bar] = barval; 1769 sendeq( bar, gain2eq(SL2GAIN(slval)));1771 sendeq((int8_t)bar, gain2eq(SL2GAIN(slval))); 1770 1772 BarCadj(bar, barval); 1771 1773 … … 1790 1792 timeval = ( ( (tmpomlt + 50) * tmpoval) / 100); 1791 1793 timeval = (int16_t)( (192000L / timeval) - 1); 1792 TIME_T2H = timeval >> 8;1793 TIME_T2L = timeval & 0x00FF;1794 TIME_T2H = (uint8_t)(timeval >> 8); 1795 TIME_T2L = (uint8_t)(timeval & 0x00FF); 1794 1796 } 1795 1797 … … 1802 1804 void settune(void) 1803 1805 { 1804 int16_t oldi, i, grp; 1806 uint16_t oldi; 1807 int16_t i, grp; 1805 1808 volatile uint16_t *fpu; 1806 1809 int32_t trval, trmax;
Note:
See TracChangeset
for help on using the changeset viewer.