Changeset 6b4ca31 in rtems
- Timestamp:
- 09/18/97 16:01:52 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8f367d6b
- Parents:
- a72e3dd
- Location:
- c/src/lib/libbsp/m68k/gen68360
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/m68k/gen68360/clock/ckinit.c
ra72e3dd r6b4ca31 52 52 rtems_device_minor_number rtems_clock_minor; 53 53 54 char M360DefaultWatchdogFeeder = 1; 55 54 56 /* 55 57 * Periodic interval timer interrupt handler 56 58 */ 59 57 60 rtems_isr 58 61 Clock_isr (rtems_vector_number vector) … … 63 66 */ 64 67 m360.dpram0[0]; 68 69 /* 70 * Feed the watchdog 71 * Application code can override this by 72 * setting M360DefaultWatchdogFeeder to zero. 73 */ 74 if (M360DefaultWatchdogFeeder) { 75 m360.swsr = 0x55; 76 m360.swsr = 0xAA; 77 } 65 78 66 79 /* -
c/src/lib/libbsp/m68k/gen68360/include/bsp.h
ra72e3dd r6b4ca31 122 122 void *M360AllocateBufferDescriptors( int count ); 123 123 void *M360AllocateRiscTimers( int count ); 124 extern char M360DefaultWatchdogFeeder; 124 125 125 126 m68k_isr_entry set_vector( -
c/src/lib/libbsp/m68k/gen68360/startup/init68360.c
ra72e3dd r6b4ca31 70 70 /* 71 71 * Step 8: Initialize system protection 72 * Disable watchdog FIXME: Should use watchdog!!!! 73 * Watchdog causes system reset 74 * Slowest watchdog timeout 75 * Disable double bus fault monitor 76 * Enable bus monitor external 77 * 1024 clocks for external timeout 78 */ 79 m360.sypcr = 0x74; 72 * Enable watchdog 73 * Watchdog causes system reset 74 * Next-to-slowest watchdog timeout 75 * (21 seconds with 25 MHz oscillator) 76 * Enable double bus fault monitor 77 * Enable bus monitor for external cycles 78 * 1024 clocks for external timeout 79 */ 80 m360.sypcr = 0xEC; 80 81 81 82 /* … … 369 370 /* 370 371 * Step 8: Initialize system protection 371 * Disable watchdog FIXME: Should use watchdog!!!! 372 * Watchdog causes system reset 373 * Slowest watchdog timeout 374 * Enable double bus fault monitor 375 * Enable bus monitor external 376 * 128 clocks for external timeout 377 */ 378 m360.sypcr = 0x7F; 372 * Enable watchdog 373 * Watchdog causes system reset 374 * Next-to-slowest watchdog timeout 375 * (21 seconds with 25 MHz oscillator) 376 * Enable double bus fault monitor 377 * Enable bus monitor for external cycles 378 * 1024 clocks for external timeout 379 */ 380 m360.sypcr = 0xEC; 379 381 380 382 /* … … 498 500 * Step 14: More system initialization 499 501 * SDCR (Serial DMA configuration register) 500 * Disable SDMA during FREEZE502 * Enable SDMA during FREEZE 501 503 * Give SDMA priority over all interrupt handlers 502 504 * Set DMA arbiration level to 4 … … 511 513 * SCCs priority grouped at top of table 512 514 */ 513 m360.sdcr = M360_SDMA_ FREEZE | M360_SDMA_SISM_7 | M360_SDMA_SAID_4;515 m360.sdcr = M360_SDMA_SISM_7 | M360_SDMA_SAID_4; 514 516 m360.cicr = (3 << 22) | (2 << 20) | (1 << 18) | (0 << 16) | 515 517 (4 << 13) | (0x1F << 8) | (128);
Note: See TracChangeset
for help on using the changeset viewer.