mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 22:17:01 +08:00
increase first start interrupt and default device in downlink.h
This commit is contained in:
@@ -120,7 +120,7 @@ void sys_time_arch_init( void ) {
|
|||||||
T0EMR = 0;
|
T0EMR = 0;
|
||||||
|
|
||||||
/* set first sys tick interrupt */
|
/* set first sys tick interrupt */
|
||||||
T0MR0 = sys_time.resolution_cpu_ticks;
|
T0MR0 = 4*sys_time.resolution_cpu_ticks;
|
||||||
|
|
||||||
/* enable timer 0 */
|
/* enable timer 0 */
|
||||||
T0TCR = TCR_ENABLE;
|
T0TCR = TCR_ENABLE;
|
||||||
|
|||||||
@@ -63,6 +63,12 @@
|
|||||||
#define DefaultChannel DOWNLINK_TRANSPORT
|
#define DefaultChannel DOWNLINK_TRANSPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// FIXME are DOWNLINK_AP|FBW_DEVICE distinction really necessary ?
|
||||||
|
// by default use AP_DEVICE if nothing is set ?
|
||||||
|
#ifndef DOWNLINK_DEVICE
|
||||||
|
#define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef DefaultDevice
|
#ifndef DefaultDevice
|
||||||
#define DefaultDevice DOWNLINK_DEVICE
|
#define DefaultDevice DOWNLINK_DEVICE
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user