From 11ae25cf1984823ef5e2419ce5170427345943fe Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Mon, 20 Apr 2020 15:29:07 -0400 Subject: [PATCH] Makefile fixes, part1 updates --- Makefile | 4 ++++ content/post/stm32-part1.md | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7ecf2a..b4b2bdd 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,10 @@ static-push: aws s3 sync --acl "public-read" --sse "AES256" ${STATIC_DIR}/ s3://${STATIC_BUCKET} .PHONY: static-push +css-push: + aws s3 cp --acl "public-read" --sse "AES256" public/dist/style.css s3://${WEB_BUCKET}/dist/style.css +.PHONY: css-push + run: static-pull -$(DOCKER_RUN) -it ${DOCKER_PORT} ${HUGO_IMAGE} -D server --bind=0.0.0.0 .PHONY: run diff --git a/content/post/stm32-part1.md b/content/post/stm32-part1.md index 8542c03..0cf7fcb 100644 --- a/content/post/stm32-part1.md +++ b/content/post/stm32-part1.md @@ -43,7 +43,8 @@ int main(void) { rcc_periph_clock_enable(RCC_TIM3); gpio_mode_setup(LED_PORT, GPIO_MODE_AF, GPIO_PUPD_NONE, LED_PIN_BLU | LED_PIN_GRN); - gpio_set_output_options(LED_PORT, GPIO_OTYPE_PP, GPIO_OSPEED_HIGH, LED_PIN_BLU | LED_PIN_GRN); + gpio_set_output_options(LED_PORT, GPIO_OTYPE_PP, GPIO_OSPEED_HIGH, + LED_PIN_BLU | LED_PIN_GRN); gpio_set_af(LED_PORT, GPIO_AF0, LED_PIN_BLU | LED_PIN_GRN); timer_set_mode(TIM3, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP);