Europalab Devices produces a LoRaWAN transmitting client node, specialised for higher research of actuator and sensor assisted IoT networks. https://dev.europalab.com/nlnet/20200000/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

72 Zeilen
865B

  1. #include "main.h"
  2. void LED_Init()
  3. {
  4. LED_GPIO_CLK_ENABLE();
  5. GPIO_InitTypeDef GPIO_InitStruct;
  6. GPIO_InitStruct.Pin = LED_PIN;
  7. GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  8. GPIO_InitStruct.Pull = GPIO_PULLUP;
  9. GPIO_InitStruct.Speed = GPIO_SPEED_HIGH;
  10. HAL_GPIO_Init(LED_GPIO_PORT, &GPIO_InitStruct);
  11. }
  12. #ifndef UNIT_TEST
  13. int main(void)
  14. #else
  15. int app_main(void)
  16. #endif
  17. {
  18. HAL_Init();
  19. LED_Init();
  20. while (1)
  21. {
  22. HAL_GPIO_TogglePin(LED_GPIO_PORT, LED_PIN);
  23. HAL_Delay(1000);
  24. }
  25. }
  26. void SysTick_Handler(void)
  27. {
  28. HAL_IncTick();
  29. }
  30. void NMI_Handler(void)
  31. {
  32. }
  33. void HardFault_Handler(void)
  34. {
  35. while (1) {}
  36. }
  37. void MemManage_Handler(void)
  38. {
  39. while (1) {}
  40. }
  41. void BusFault_Handler(void)
  42. {
  43. while (1) {}
  44. }
  45. void UsageFault_Handler(void)
  46. {
  47. while (1) {}
  48. }
  49. void SVC_Handler(void)
  50. {
  51. }
  52. void DebugMon_Handler(void)
  53. {
  54. }
  55. void PendSV_Handler(void)
  56. {
  57. }