Changeset 03fecae in rtems


Ignore:
Timestamp:
01/11/18 07:54:27 (6 years ago)
Author:
Christian Mauderer <Christian.Mauderer@…>
Branches:
5, master
Children:
538a0a8
Parents:
a3eec5c
git-author:
Christian Mauderer <Christian.Mauderer@…> (01/11/18 07:54:27)
git-committer:
Christian Mauderer <christian.mauderer@…> (02/12/18 13:25:02)
Message:

bsp/atsam: Add option to disable 32kHz XTAL.

Location:
c/src/lib/libbsp/arm/atsam
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/atsam/README

    ra3eec5c r03fecae  
    4444--------
    4545
     46Use ATSAM_SLOWCLOCK_USE_XTAL=0 to disable the usage of the external 32kHz
     47oscillator for the slow clock. This is useful for example for the SAM E70
     48Xplained kit.
     49
    4650Use ATSAM_CONSOLE_BAUD=XYZ to set the initial baud for console devices (default
    4751115200).
  • c/src/lib/libbsp/arm/atsam/configure.ac

    ra3eec5c r03fecae  
    7373See startup/pmc-config.c for available clock configurations.])
    7474
     75RTEMS_BSPOPTS_SET([ATSAM_SLOWCLOCK_USE_XTAL],[*],[1])
     76RTEMS_BSPOPTS_HELP([ATSAM_SLOWCLOCK_USE_XTAL],
     77[Use the external crystal as source for the slow clock instead of the internal
     78RC oscillator. Note that on the ATSAM the NRST pin seems to depend on the slow
     79clock as well as all watchdogs. If ATSAM_SLOWCLOCK_USE_XTAL is set to 1 without
     80a external crystal connected, the controller might hang in the switching process
     81without a working NRST pin. ])
     82
    7583RTEMS_BSPOPTS_SET([ATSAM_CHANGE_CLOCK_FROM_SRAM],[*],[0])
    7684RTEMS_BSPOPTS_HELP([ATSAM_CHANGE_CLOCK_FROM_SRAM],
  • c/src/lib/libbsp/arm/atsam/libraries/libboard/resources_v71/system_samv71.c

    ra3eec5c r03fecae  
    9494         */
    9595
     96#if ATSAM_SLOWCLOCK_USE_XTAL == 1
    9697        read_MOR = PMC->CKGR_MOR;
    9798        /* enable external crystal - enable RC OSC */
     
    105106                while (!(SUPC->SUPC_SR & SUPC_SR_OSCSEL));
    106107        }
     108#endif
    107109
    108110        /* Initialize main oscillator */
Note: See TracChangeset for help on using the changeset viewer.