stm32f4_hal.h 560 B

1234567891011121314151617181920212223242526
  1. #ifndef STM32F4_HAL_H
  2. #define STM32F4_HAL_H
  3. //You probably don't need this from rest of code
  4. //#include "stm32f4_hal_lowlevel.h"
  5. #include <stdint.h>
  6. void init_uart(void);
  7. void putch(char c);
  8. char getch(void);
  9. uint32_t get_rand(void);
  10. void trigger_setup(void);
  11. void trigger_low(void);
  12. void trigger_high(void);
  13. void HW_AES128_Init(void);
  14. void HW_AES128_LoadKey(uint8_t* key);
  15. void HW_AES128_Enc_pretrigger(uint8_t* pt);
  16. void HW_AES128_Enc(uint8_t* pt);
  17. void HW_AES128_Enc_posttrigger(uint8_t* pt);
  18. void HW_AES128_Dec(uint8_t *pt);
  19. #endif // STM32F4_HAL_H