1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef K24F_HAL_H
- #define K24F_HAL_H
- #ifdef USE_FULL_ASSERT
- #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
- void assert_failed(uint8_t* file, uint32_t line);
- #else
- #define assert_param(expr) ((void)0)
- #endif
- #include <stdint.h>
- void init_uart(void);
- void putch(char c);
- char getch(void);
- void trigger_setup(void);
- void trigger_low(void);
- void trigger_high(void);
- uint32_t get_rand(void);
- void HW_AES128_Init(void);
- void HW_AES128_LoadKey(uint8_t* key);
- void HW_AES128_Enc(uint8_t* pt);
- void HW_AES128_Enc_pretrigger(uint8_t* pt);
- void HW_AES128_Enc_posttrigger(uint8_t* pt);
- void HW_AES128_Dec(uint8_t *pt);
- #endif
|