Changeset 137


Ignore:
Timestamp:
Nov 25, 2015, 12:28:52 AM (7 years ago)
Author:
ertl-honda
Message:

サンプルの追加.

Location:
rtos_arduino/trunk
Files:
109 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/README.txt

    r136 r137  
    11=====================================================================
    22       TOPPERS RTE/RTOS compatible with Arduino libraries : RCA 
    3                                    Last Modified:2015 Nov 24 23:46:50
     3                                   Last Modified:2015 Nov 25 00:27:39
    44=====================================================================
    55
     
    304304#endif /* defined(ARDUINO_ARCH_SAMD) */   
    305305
     306
     307hardware/arduino/samd/cores/arduino/wiring_analog.c
     308å
     309ˆé ­ã«ä»¥ä¸‹ã‚’追加.
     310
     311// Wait for synchronization of registers between the clock domains
     312static __inline__ void syncDAC() __attribute__((always_inline, unused));
     313static void syncDAC() {
     314  while (DAC->STATUS.bit.SYNCBUSY == 1)
     315    ;
     316}
     317
    306318●TOPPERS対応
    307319/hardware/tools/CMSIS/CMSIS/Include/core_cm0plus.h : 646行目
  • rtos_arduino/trunk/arduino_lib/hardware/arduino/samd/cores/arduino/wiring_analog.c

    r136 r137  
    3030static int ADC_RESOLUTION = 12;
    3131static int DAC_RESOLUTION = 10;
     32
     33// Wait for synchronization of registers between the clock domains
     34static __inline__ void syncDAC() __attribute__((always_inline, unused));
     35static void syncDAC() {
     36  while (DAC->STATUS.bit.SYNCBUSY == 1)
     37    ;
     38}
    3239
    3340void analogReadResolution(int res) {
Note: See TracChangeset for help on using the changeset viewer.