[En-Nut-Discussion] Nut/OS GPIO API Initial Design and Current Status

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Oct 16 13:44:37 CEST 2012

>>>>> "Ole" == Ole Reinhardt <ole.reinhardt at embedded-it.de> writes:

    Ole> state = read_state(port0) state |= pin1 state = read_state(port0)
    Ole> write_state(port0, state) state |= pin2 write_state(port0, state)

    Ole> So this is a race condition internally.

    Ole> In fact, if you write:

Is that perhaps connected to the errata 3.3:
3.3 APB.1: Access to the APB peripherals may not operate correctly
    when the APB bus's PCLK divider is set to 5 or more

Do these peripherals use APB? Is the clock divider >4?


Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the En-Nut-Discussion mailing list