GCC optimalizace, zahada
Jaroslav Buchta
jaroslav.buchta na hascomp.cz
Sobota Listopad 4 12:15:27 CET 2017
Koukam, casto, ale z tohodle nic moc relevantniho nevykoukam. Proste je
BSRR 32b stejne jako BRR kde je vyuzita jen spodni pulka.
polozka struktury je volatile a uint32_t, cekal jsem, ze s tim nebudou
problemy.
typedef struct
{
__IO uint32_t MODER; /*!< GPIO port mode
register, Address offset: 0x00 */
__IO uint32_t OTYPER; /*!< GPIO port output type
register, Address offset: 0x04 */
__IO uint32_t OSPEEDR; /*!< GPIO port output speed
register, Address offset: 0x08 */
__IO uint32_t PUPDR; /*!< GPIO port pull-up/pull-down
register, Address offset: 0x0C */
__IO uint32_t IDR; /*!< GPIO port input data
register, Address offset: 0x10 */
__IO uint32_t ODR; /*!< GPIO port output data
register, Address offset: 0x14 */
__IO uint32_t BSRR; /*!< GPIO port bit set/reset
register, Address offset: 0x1A */
__IO uint32_t LCKR; /*!< GPIO port configuration lock
register, Address offset: 0x1C */
__IO uint32_t AFR[2]; /*!< GPIO alternate function
registers, Address offset: 0x20-0x24 */
__IO uint32_t BRR; /*!< GPIO bit reset
register, Address offset: 0x28 */
}GPIO_TypeDef;
Dne 04.11.2017 v 9:57 Jan Waclawek napsal(a):
>> A ten registr BSRR se da pouzivat i sestnactibitove?
> TAK SA UZ POZRITE DO TOHO **** HEADERU!
>
> wek
>
> _______________________________________________
> HW-list mailing list - sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
Další informace o konferenci Hw-list